version 1.3, 2002/02/13 19:11:32
|
version 1.4, 2002/04/19 20:50:33
|
|
|
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 |
|
|
{ | { |
newValue = ""; | newValue = ""; |
} | } |
if ( Tracer::isValid ( newValue ) ) |
if ( Tracer::isValidComponents ( newValue ) ) |
{ | { |
_traceComponents->currentValue = newValue; | _traceComponents->currentValue = newValue; |
} | } |
|
|
_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; |
} | } |
|
|
{ | { |
newValue = ""; | newValue = ""; |
} | } |
if ( Tracer::isValid ( newValue ) ) |
if ( Tracer::isValidComponents ( newValue ) ) |
{ | { |
_traceComponents->plannedValue= newValue; | _traceComponents->plannedValue= newValue; |
} | } |
|
|
_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; |
} | } |
|
|
// | // |
// 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); |
|
|
// 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()); |
|
|
// | // |
// 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; |
} | } |
|
|
// 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; |
} | } |
|
|
// | // |
// 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); |
} | } |
|
|
// 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); |
} | } |