(file) Return to TraceFileHandler.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/TraceFileHandler.h between version 1.14 and 1.15

version 1.14, 2007/03/16 17:16:50 version 1.15, 2008/05/15 17:24:34
Line 39 
Line 39 
 #include <cstdio> #include <cstdio>
 #include <Pegasus/Common/String.h> #include <Pegasus/Common/String.h>
 #include <Pegasus/Common/Linkage.h> #include <Pegasus/Common/Linkage.h>
   #include <Pegasus/Common/TraceHandler.h>
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
 /** TraceFileHandler implements logging of messages to file /** TraceFileHandler implements logging of messages to file
  */  */
  
 class PEGASUS_COMMON_LINKAGE TraceFileHandler  class PEGASUS_COMMON_LINKAGE TraceFileHandler: public TraceHandler
 { {
 private: private:
  
Line 80 
Line 81 
  
 public: public:
  
     /** Writes message to file.      /** Writes message with format string to the tracing facility
         Implementation of this function is platform specific  
         @param    message  message to be written         @param    message  message to be written
         @param    fmt      printf style format string         @param    fmt      printf style format string
         @param    argList  variable argument list         @param    argList  variable argument list
      */      */
     void handleMessage(const char* message,const char* fmt,va_list argList);      virtual void handleMessage(const char* message,
                                  const char* fmt,
                                  va_list argList);
  
     /** Writes message to file.      /** Writes simple message to the tracing facility.
         Implementation of this function is platform specific  
         @param    message  message to be written         @param    message  message to be written
      */      */
     void handleMessage(const char* message);      virtual void handleMessage(const char* message);
  
  
     /** Sets the filename to the given filename and opens the file in append      /** Sets and prepares the destination (e.g. traceFileName) for the
         mode          trace handler.
         @param    fileName full path of the file          @param    destination tracer destination, e.g. file
         @return   0        if the function is successful in opening the file          @return   0           if the function is successful
                   1        if an error occurs while opening the file                    1           if an error occurs
      */      */
     Uint32 setFileName(const char* fileName);      virtual Uint32 setMessageDestination(const char* traceFileName);
  
     /** Validates the File Path for the trace File     /** Validates the File Path for the trace File
         @param    filePath full path of the file         @param    filePath full path of the file
         @return   1        if the file path is valid         @return   1        if the file path is valid
                   0        if the file path is invalid                   0        if the file path is invalid
      */      */
     Boolean isValidFilePath(const char* filePath);      virtual Boolean isValidMessageDestination(const char* traceFileName);
  
     TraceFileHandler();     TraceFileHandler();
  
     ~TraceFileHandler();      virtual ~TraceFileHandler();
  
 private: private:
  


Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2