Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members

sysLog.h

00001 
00007 #ifndef SYSLOG_H
00008 #define SYSLOG_H
00009 
00010 #include <stdio.h>
00011 
00012 class SysLog {
00013 
00014         protected:
00018         SysLog();
00019         
00023                 ~SysLog();
00024 
00025         public:
00029         enum status {
00031             OPEN = 1,
00033             CLOSED = 0,  
00035             RECORDING = 2,
00037             ERROR = -1
00038 
00039         };
00040 
00046                 int openSysLog();
00047                 
00053                 int closeSysLog();
00054                 
00061                 int copySysLog(char * newFile);
00062                 
00069                 int sysLogWrite(char * message);
00070                 
00075                 char * getSysLogName();
00076 
00081                 struct tm *logTime;             
00082 
00087                 static SysLog * theInstance();
00088 
00089     private:
00091         char * sysLogName;
00092 
00094         static int sysLogHandle;        
00095 
00097         status LogStatus;
00098                 
00099 };
00100 
00101 #endif

Generated on Fri Mar 25 23:48:45 2005 for CS498EmbeddedSystemsProgramming by doxygen 1.3.6