]> granicus.if.org Git - icinga2/blob - lib/cli/daemonutility.hpp
add some object locking to the Dump method (which could theoreticylly suffer from...
[icinga2] / lib / cli / daemonutility.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef DAEMONUTILITY_H
4 #define DAEMONUTILITY_H
5
6 #include "cli/i2-cli.hpp"
7 #include "config/configitem.hpp"
8 #include "base/string.hpp"
9 #include <boost/program_options.hpp>
10
11 namespace icinga
12 {
13
14 /**
15  * @ingroup cli
16  */
17 class DaemonUtility
18 {
19 public:
20         static bool ValidateConfigFiles(const std::vector<std::string>& configs, const String& objectsFile = String());
21         static bool LoadConfigFiles(const std::vector<std::string>& configs, std::vector<ConfigItem::Ptr>& newItems,
22                 const String& objectsFile = String(), const String& varsfile = String());
23 };
24
25 }
26
27 #endif /* DAEMONULITIY_H */