mirror of https://github.com/Icinga/icinga2.git
parent
c30d64a261
commit
93d390873d
|
@ -17,20 +17,26 @@
|
|||
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. *
|
||||
******************************************************************************/
|
||||
|
||||
#ifndef DAEMONUTILIT_H
|
||||
#define DAEMONUTILIT_H
|
||||
#ifndef DAEMONUTILITY_H
|
||||
#define DAEMONUTILITY_H
|
||||
|
||||
//#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/string.hpp"
|
||||
#include <boost/program_options.hpp>
|
||||
|
||||
namespace icinga
|
||||
{
|
||||
class DaemonUtility
|
||||
|
||||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class I2_CLI_API DaemonUtility
|
||||
{
|
||||
public:
|
||||
static bool ValidateConfigFiles(const std::vector<std::string>& configs, const String& objectsFile = String());
|
||||
static bool LoadConfigFiles(const std::vector<std::string>& configs, const String& appType, const String& objectsFile = String(), const String& varsfile = String());
|
||||
};
|
||||
|
||||
}
|
||||
#endif /*DAEMONULITIY_H*/
|
||||
|
||||
#endif /* DAEMONULITIY_H */
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define FEATUREUTILITY_H
|
||||
|
||||
#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/string.hpp"
|
||||
#include <vector>
|
||||
#include <iostream>
|
||||
|
@ -31,7 +32,7 @@ namespace icinga
|
|||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class FeatureUtility
|
||||
class I2_CLI_API FeatureUtility
|
||||
{
|
||||
public:
|
||||
static String GetFeaturesAvailablePath(void);
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define AGENTUTILITY_H
|
||||
|
||||
#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/dictionary.hpp"
|
||||
#include "base/array.hpp"
|
||||
#include "base/value.hpp"
|
||||
|
@ -33,7 +34,7 @@ namespace icinga
|
|||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class NodeUtility
|
||||
class I2_CLI_API NodeUtility
|
||||
{
|
||||
public:
|
||||
static String GetRepositoryPath(void);
|
||||
|
|
|
@ -20,6 +20,7 @@
|
|||
#define OBJECTLISTUTILITY_H
|
||||
|
||||
#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/dictionary.hpp"
|
||||
#include "base/array.hpp"
|
||||
#include "base/value.hpp"
|
||||
|
@ -27,16 +28,15 @@
|
|||
|
||||
namespace icinga
|
||||
{
|
||||
class ObjectListUtility
|
||||
|
||||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class I2_CLI_API ObjectListUtility
|
||||
{
|
||||
public:
|
||||
/*
|
||||
* Print decoded json blob *message* to *fp*, filtering by *name_filter* and *type_filter*.
|
||||
* An enumeration by type is written to *type_count*
|
||||
* *first* needs to be true
|
||||
* returns true if object was printed
|
||||
*/
|
||||
static bool PrintObject(std::ostream& fp, bool& first, const String& message, std::map<String, int>& type_count, const String& name_filter, const String& type_filter);
|
||||
|
||||
private:
|
||||
static void PrintProperties(std::ostream& fp, const Dictionary::Ptr& props, const Dictionary::Ptr& debug_hints, int indent);
|
||||
static void PrintHints(std::ostream& fp, const Dictionary::Ptr& debug_hints, int indent);
|
||||
|
@ -44,5 +44,7 @@ private:
|
|||
static void PrintValue(std::ostream& fp, const Value& val);
|
||||
static void PrintArray(std::ostream& fp, const Array::Ptr& arr);
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif /* OBJECTLISTUTILITY_H */
|
|
@ -21,6 +21,7 @@
|
|||
#define PKIUTILITY_H
|
||||
|
||||
#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/dictionary.hpp"
|
||||
#include "base/string.hpp"
|
||||
|
||||
|
@ -30,7 +31,7 @@ namespace icinga
|
|||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class PkiUtility
|
||||
class I2_CLI_API PkiUtility
|
||||
{
|
||||
public:
|
||||
static String GetPkiPath(void);
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define REPOSITORYUTILITY_H
|
||||
|
||||
#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/dictionary.hpp"
|
||||
#include "base/array.hpp"
|
||||
#include "base/value.hpp"
|
||||
|
@ -33,7 +34,7 @@ namespace icinga
|
|||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class RepositoryUtility
|
||||
class I2_CLI_API RepositoryUtility
|
||||
{
|
||||
public:
|
||||
static Dictionary::Ptr GetArgumentAttributes(const std::vector<std::string>& arguments);
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
#define VARIABLEUTILITY_H
|
||||
|
||||
#include "base/i2-base.hpp"
|
||||
#include "cli/i2-cli.hpp"
|
||||
#include "base/dictionary.hpp"
|
||||
#include "base/string.hpp"
|
||||
#include <ostream>
|
||||
|
@ -31,7 +32,7 @@ namespace icinga
|
|||
/**
|
||||
* @ingroup cli
|
||||
*/
|
||||
class VariableUtility
|
||||
class I2_CLI_API VariableUtility
|
||||
{
|
||||
public:
|
||||
static Value GetVariable(const String& name);
|
||||
|
@ -40,7 +41,6 @@ public:
|
|||
private:
|
||||
VariableUtility(void);
|
||||
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
#ifndef COLUMN_H
|
||||
#define COLUMN_H
|
||||
|
||||
#include "livestatus/i2-livestatus.hpp"
|
||||
#include "livestatus/i2-livestatus.hpp"
|
||||
#include "base/value.hpp"
|
||||
#include <boost/function.hpp>
|
||||
|
|
Loading…
Reference in New Issue