1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef CONFIGCOMPILERCONTEXT_H
4 #define CONFIGCOMPILERCONTEXT_H
6 #include "config/i2-config.hpp"
7 #include "base/dictionary.hpp"
8 #include <boost/thread/mutex.hpp>
17 class ConfigCompilerContext
20 void OpenObjectsFile(const String& filename);
21 void WriteObject(const Dictionary::Ptr& object);
22 void CancelObjectsFile();
23 void FinishObjectsFile();
25 static ConfigCompilerContext *GetInstance();
29 String m_ObjectsTempFile;
30 std::fstream *m_ObjectsFP{nullptr};
32 mutable boost::mutex m_Mutex;
37 #endif /* CONFIGCOMPILERCONTEXT_H */