8 #ifndef OCF_OCM_SERVERCTL_REQUESTOR_HPP_
9 #define OCF_OCM_SERVERCTL_REQUESTOR_HPP_
12 #include <unordered_map>
15 #include <boost/asio/io_service.hpp>
16 #include <boost/program_options.hpp>
18 #include <OcmServerIf.hpp>
19 #include <rad/logger.hpp>
39 virtual void AddOptions(boost::program_options::options_description& descr);
43 virtual void Handle(::ocmServerIf::CommandsSync& client,
44 boost::program_options::variables_map& vm,
45 std::vector<std::string>& opts) = 0;
53 void Handle(::ocmServerIf::CommandsSync& client,
54 boost::program_options::variables_map& vm,
55 std::vector<std::string>& opts)
override;
60 void Handle(::ocmServerIf::CommandsSync& client,
61 boost::program_options::variables_map& vm,
62 std::vector<std::string>& opts)
override;
65 #endif // #ifndef OCF_OCM_SERVERCTL_REQUESTOR_HPP_
CommonArgs & operator=(CommonArgs const &)=delete
Requestor(CommonArgs &args)
Definition: requestor.cpp:12
virtual void Handle(::ocmServerIf::CommandsSync &client, boost::program_options::variables_map &vm, std::vector< std::string > &opts)=0
Definition: requestor.hpp:51
Definition: requestor.hpp:58
virtual ~Requestor()
Definition: requestor.hpp:33
std::string req_addr
Definition: requestor.hpp:23
std::string pub_addr
Definition: requestor.hpp:24
void Handle(::ocmServerIf::CommandsSync &client, boost::program_options::variables_map &vm, std::vector< std::string > &opts) override
Definition: requestor.cpp:22
CommonArgs & m_args
Definition: requestor.hpp:48
virtual void AddOptions(boost::program_options::options_description &descr)
Definition: requestor.cpp:19
unsigned timeout
Definition: requestor.hpp:22
Definition: requestor.hpp:21
Definition: requestor.hpp:31
virtual std::string Synopsis()
Definition: requestor.cpp:15
void Handle(::ocmServerIf::CommandsSync &client, boost::program_options::variables_map &vm, std::vector< std::string > &opts) override
Definition: requestor.cpp:28