version 1.33, 2008/05/07 19:41:42
|
version 1.34, 2008/05/15 17:24:34
|
|
|
// mode | // mode |
//////////////////////////////////////////////////////////////////////////////// | //////////////////////////////////////////////////////////////////////////////// |
| |
Uint32 TraceFileHandler::setFileName(const char* fileName) |
Uint32 TraceFileHandler::setMessageDestination(const char* fileName) |
{ | { |
// If a file is already open, close it | // If a file is already open, close it |
if (_fileHandle) | if (_fileHandle) |
|
|
_baseFileName = 0; | _baseFileName = 0; |
#endif | #endif |
| |
if (!isValidFilePath(fileName)) |
if (!isValidMessageDestination(fileName)) |
{ | { |
return 1; | return 1; |
} | } |
|
|
return fileHandle; | return fileHandle; |
} | } |
| |
Boolean TraceFileHandler::isValidFilePath(const char* filePath) |
Boolean TraceFileHandler::isValidMessageDestination(const char* filePath) |
{ | { |
String fileName = String(filePath); | String fileName = String(filePath); |
| |