ifw-ocf  2.0.0-dev
 All Classes Namespaces Files Functions Variables Groups
Public Member Functions | Protected Attributes | List of all members
Requestor Struct Referenceabstract

#include <requestor.hpp>

Inheritance diagram for Requestor:
PingRequestor StateRequestor

Public Member Functions

 Requestor (CommonArgs &args)
 
virtual ~Requestor ()
 
virtual std::string Synopsis ()
 
virtual void AddOptions (boost::program_options::options_description &descr)
 
virtual void Handle (::ocmServerIf::CommandsSync &client, boost::program_options::variables_map &vm, std::vector< std::string > &opts)=0
 

Protected Attributes

CommonArgsm_args
 

Constructor & Destructor Documentation

Requestor::Requestor ( CommonArgs args)
explicit
virtual Requestor::~Requestor ( )
inlinevirtual

Member Function Documentation

void Requestor::AddOptions ( boost::program_options::options_description &  descr)
virtual

Add arguments to command.

virtual void Requestor::Handle ( ::ocmServerIf::CommandsSync &  client,
boost::program_options::variables_map &  vm,
std::vector< std::string > &  opts 
)
pure virtual

Receives a parsed variables_map that include the options added with AddOptions.

Implemented in StateRequestor, and PingRequestor.

std::string Requestor::Synopsis ( )
virtual

Member Data Documentation

CommonArgs& Requestor::m_args
protected

The documentation for this struct was generated from the following files: