FileManager.h 564 B

123456789101112131415161718192021222324252627
  1. #pragma once
  2. #include <map>
  3. #include <string>
  4. #include "CircleBuff.h"
  5. using namespace std;
  6. class FileManager
  7. {
  8. HANDLE m_Mutex;
  9. map<string, HANDLE> m_FileMap;
  10. public:
  11. FileManager();
  12. virtual ~FileManager();
  13. bool PrepFilePath(const char *pFileName);
  14. bool PrepLogFile(LOGFILESTATUS &Pattern, const char *pFileName);
  15. //bool SaveLogFile(Logger_Pattern &Pattern, const char *pFileName, const char *pContext, size_t ContextSize);
  16. bool SaveContextToFile(const char *pFileName, const char *pContext, size_t ContextSize);
  17. };
  18. extern FileManager g_Filemanager;