1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
3 #ifndef OBJECTLISTUTILITY_H
4 #define OBJECTLISTUTILITY_H
6 #include "base/i2-base.hpp"
7 #include "cli/i2-cli.hpp"
8 #include "base/dictionary.hpp"
9 #include "base/array.hpp"
10 #include "base/value.hpp"
11 #include "base/string.hpp"
19 class ObjectListUtility
22 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);
25 static void PrintProperties(std::ostream& fp, const Dictionary::Ptr& props, const Dictionary::Ptr& debug_hints, int indent);
26 static void PrintHints(std::ostream& fp, const Dictionary::Ptr& debug_hints, int indent);
27 static void PrintHint(std::ostream& fp, const Array::Ptr& msg, int indent);
28 static void PrintValue(std::ostream& fp, const Value& val);
29 static void PrintArray(std::ostream& fp, const Array::Ptr& arr);
34 #endif /* OBJECTLISTUTILITY_H */