123456789101112131415161718192021222324252627 |
- #pragma once
- #include <map>
- #include <string>
- #include "CircleBuff.h"
- using namespace std;
- class FileManager
- {
- HANDLE m_Mutex;
- map<string, HANDLE> m_FileMap;
- public:
- FileManager();
- virtual ~FileManager();
- bool PrepFilePath(const char *pFileName);
- bool PrepLogFile(LOGFILESTATUS &Pattern, const char *pFileName);
- //bool SaveLogFile(Logger_Pattern &Pattern, const char *pFileName, const char *pContext, size_t ContextSize);
- bool SaveContextToFile(const char *pFileName, const char *pContext, size_t ContextSize);
- };
- extern FileManager g_Filemanager;
|