(file) Return to TracePropertyOwner.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Config

Diff for /pegasus/src/Pegasus/Config/TracePropertyOwner.cpp between version 1.3 and 1.4

version 1.3, 2002/02/13 19:11:32 version 1.4, 2002/04/19 20:50:33
Line 190 
Line 190 
         FileSystem::translateSlashes(pegasusHome);         FileSystem::translateSlashes(pegasusHome);
  
         ArrayDestroyer<char> fileName(pegasusHome.allocateCString());         ArrayDestroyer<char> fileName(pegasusHome.allocateCString());
         if (Tracer::isValid(fileName.getPointer()))          if (Tracer::isValidFileName(fileName.getPointer()))
         {         {
             Uint32 retCode = Tracer::setTraceFile(fileName.getPointer());             Uint32 retCode = Tracer::setTraceFile(fileName.getPointer());
             // Check whether the filepath was set             // Check whether the filepath was set
Line 379 
Line 379 
         {         {
             newValue = "";             newValue = "";
         }         }
         if ( Tracer::isValid ( newValue ) )          if ( Tracer::isValidComponents ( newValue ) )
         {         {
             _traceComponents->currentValue = newValue;             _traceComponents->currentValue = newValue;
         }         }
Line 407 
Line 407 
         _traceFilePath->currentValue = _traceFilePath->defaultValue;         _traceFilePath->currentValue = _traceFilePath->defaultValue;
  
         ArrayDestroyer<char> fileName(value.allocateCString());         ArrayDestroyer<char> fileName(value.allocateCString());
         if ( Tracer::isValid( fileName.getPointer() ) )          if ( Tracer::isValidFileName( fileName.getPointer() ) )
         {         {
             _traceFilePath->currentValue = value;             _traceFilePath->currentValue = value;
         }         }
Line 443 
Line 443 
         {         {
             newValue = "";             newValue = "";
         }         }
         if ( Tracer::isValid ( newValue ) )          if ( Tracer::isValidComponents ( newValue ) )
         {         {
             _traceComponents->plannedValue= newValue;             _traceComponents->plannedValue= newValue;
         }         }
Line 467 
Line 467 
         _traceFilePath->plannedValue = _traceFilePath->defaultValue;         _traceFilePath->plannedValue = _traceFilePath->defaultValue;
  
         ArrayDestroyer<char> fileName(value.allocateCString());         ArrayDestroyer<char> fileName(value.allocateCString());
         if (Tracer::isValid(fileName.getPointer()))          if (Tracer::isValidFileName(fileName.getPointer()))
         {         {
             _traceFilePath->plannedValue = value;             _traceFilePath->plannedValue = value;
         }         }
Line 507 
Line 507 
         //         //
         // Check if the components are valid, if not throw exception         // Check if the components are valid, if not throw exception
         //         //
         if ( Tracer::isValid ( newValue, invalidComponents ) )          if ( Tracer::isValidComponents ( newValue, invalidComponents ) )
         {         {
             _traceComponents->currentValue = newValue;             _traceComponents->currentValue = newValue;
             Tracer::setTraceComponents(_traceComponents->currentValue);             Tracer::setTraceComponents(_traceComponents->currentValue);
Line 538 
Line 538 
         // Check if the filepath are valid, if not throw exception         // Check if the filepath are valid, if not throw exception
         //         //
         ArrayDestroyer<char> fileName(value.allocateCString());         ArrayDestroyer<char> fileName(value.allocateCString());
         if (Tracer::isValid(fileName.getPointer()))          if (Tracer::isValidFileName(fileName.getPointer()))
         {         {
             _traceFilePath->currentValue = value;             _traceFilePath->currentValue = value;
             Tracer::setTraceFile(fileName.getPointer());             Tracer::setTraceFile(fileName.getPointer());
Line 574 
Line 574 
         //         //
         // Check if the components are valid, if not throw exception         // Check if the components are valid, if not throw exception
         //         //
         if (Tracer::isValid(newValue,invalidComponents))          if (Tracer::isValidComponents(newValue,invalidComponents))
         {         {
             _traceComponents->plannedValue = newValue;             _traceComponents->plannedValue = newValue;
         }         }
Line 603 
Line 603 
         // Check if the file path is valid, if not throw exception         // Check if the file path is valid, if not throw exception
         //         //
         ArrayDestroyer<char> fileName(value.allocateCString());         ArrayDestroyer<char> fileName(value.allocateCString());
         if (Tracer::isValid(fileName.getPointer()))          if (Tracer::isValidFileName(fileName.getPointer()))
         {         {
             _traceFilePath->plannedValue = value;             _traceFilePath->plannedValue = value;
         }         }
Line 635 
Line 635 
         //         //
         // Check if the trace components are valid         // Check if the trace components are valid
         //         //
         if (!Tracer::isValid(newValue,invalidComponents))          if (!Tracer::isValidComponents(newValue,invalidComponents))
         {         {
             throw InvalidPropertyValue(name, invalidComponents);             throw InvalidPropertyValue(name, invalidComponents);
         }         }
Line 662 
Line 662 
         // Check if the file path is valid         // Check if the file path is valid
         //         //
         ArrayDestroyer<char> fileName(value.allocateCString());         ArrayDestroyer<char> fileName(value.allocateCString());
         if (!Tracer::isValid(fileName.getPointer()))          if (!Tracer::isValidFileName(fileName.getPointer()))
         {         {
             throw InvalidPropertyValue(name, value);             throw InvalidPropertyValue(name, value);
         }         }


Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2