]> granicus.if.org Git - icinga2/blob - lib/cli/variablegetcommand.hpp
add some object locking to the Dump method (which could theoreticylly suffer from...
[icinga2] / lib / cli / variablegetcommand.hpp
1 /* Icinga 2 | (c) 2012 Icinga GmbH | GPLv2+ */
2
3 #ifndef VARIABLEGETCOMMAND_H
4 #define VARIABLEGETCOMMAND_H
5
6 #include "base/dictionary.hpp"
7 #include "base/array.hpp"
8 #include "cli/clicommand.hpp"
9 #include <ostream>
10
11 namespace icinga
12 {
13
14 /**
15  * The "variable get" command.
16  *
17  * @ingroup cli
18  */
19 class VariableGetCommand final : public CLICommand
20 {
21 public:
22         DECLARE_PTR_TYPEDEFS(VariableGetCommand);
23
24         String GetDescription() const override;
25         String GetShortDescription() const override;
26         int GetMinArguments() const override;
27         void InitParameters(boost::program_options::options_description& visibleDesc,
28                 boost::program_options::options_description& hiddenDesc) const override;
29         int Run(const boost::program_options::variables_map& vm, const std::vector<std::string>& ap) const override;
30 };
31
32 }
33
34 #endif /* VARIABLEGETCOMMAND_H */