You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
1.7 KiB

7 years ago
​
​
​
​
​
​
​
​
​
​
​
3 years ago
​
​
7 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef __OBJECTFILELOGGINGSERVICE_H_INCL__
  2. #define __OBJECTFILELOGGINGSERVICE_H_INCL__
  3. #include <time.h>
  4. #include "../base/basicFunctionality.h"
  5. #include "../base/basicLoggingService.h"
  6. /**
  7. * TODO: Add class description
  8. *
  9. * @author Gagua
  10. */
  11. #define MAX_LOG_FILE_SIZE 4194304 //4Mega
  12. #define MAX_LOG_FILE_BACKUPS 4
  13. class objectFileLoggingService : public basicLoggingService {
  14. private:
  15. bool m_bLogging;
  16. char m_pFileName[MAX_PATH_LEN];
  17. public:
  18. // Constructor
  19. objectFileLoggingService( const char *FileName );
  20. objectFileLoggingService( CSTR FileName );
  21. // Destructor
  22. ~objectFileLoggingService(){};
  23. void logMessage( CSTR Msg );
  24. void logMessage( const char *Msg );
  25. // Copy constructor
  26. // TODO: Uncomment the copy constructor when you need it.
  27. //objectFileLoggingService(const objectFileLoggingService& src);
  28. // Assignment operator
  29. // TODO: Uncomment the assignment operator when you need it.
  30. //objectFileLoggingService& operator=(const objectFileLoggingService& src);
  31. };
  32. // TODO: Uncomment the copy constructor when you need it.
  33. //inline objectFileLoggingService::objectFileLoggingService(const objectFileLoggingService& src)
  34. //{
  35. // // TODO: copy
  36. //}
  37. // TODO: Uncomment the assignment operator when you need it.
  38. //inline objectFileLoggingService& objectFileLoggingService::operator=(const objectFileLoggingService& rhs)
  39. //{
  40. // if (this == &rhs) {
  41. // return *this;
  42. // }
  43. //
  44. // // TODO: assignment
  45. //
  46. // return *this;
  47. //}
  48. #endif // __OBJECTFILELOGGINGSERVICE_H_INCL__