1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef FEATUREUTILITY_H
4 #define FEATUREUTILITY_H
6 #include "base/i2-base.hpp"
7 #include "cli/i2-cli.hpp"
8 #include "base/string.hpp"
21 static String GetFeaturesAvailablePath();
22 static String GetFeaturesEnabledPath();
24 static std::vector<String> GetFieldCompletionSuggestions(const String& word, bool enable);
26 static int EnableFeatures(const std::vector<std::string>& features);
27 static int DisableFeatures(const std::vector<std::string>& features);
28 static int ListFeatures(std::ostream& os = std::cout);
30 static bool GetFeatures(std::vector<String>& features, bool enable);
31 static bool CheckFeatureEnabled(const String& feature);
32 static bool CheckFeatureDisabled(const String& feature);
36 static void CollectFeatures(const String& feature_file, std::vector<String>& features);
37 static bool CheckFeatureInternal(const String& feature, bool check_disabled);
42 #endif /* FEATUREUTILITY_H */