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.

64 lines
1.5 KiB

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