ifw-daq  1.0.0
IFW Data Acquisition modules
Public Member Functions | Public Attributes | List of all members
SimpleRequestor< Func > Struct Template Reference

Simple requestor for commands without argument. More...

#include <requestor.hpp>

+ Inheritance diagram for SimpleRequestor< Func >:

Public Member Functions

 SimpleRequestor (Func func, CommonArgs &args)
 
void Handle (::stdif::StdCmdsSync &std_cmds, ::ocmif::OcmDaqSync &daq_cmds, boost::program_options::variables_map &vm, std::vector< std::string > &opts) override
 Receives a parsed variables_map that include the options added with AddOptions. More...
 
- Public Member Functions inherited from Requestor
 Requestor (CommonArgs &args)
 
virtual ~Requestor ()
 
virtual std::string Synopsis ()
 
virtual void AddOptions (boost::program_options::options_description &descr)
 Add arguments to command. More...
 

Public Attributes

Func m_func
 

Additional Inherited Members

- Protected Attributes inherited from Requestor
CommonArgsm_args
 

Detailed Description

template<class Func>
struct SimpleRequestor< Func >

Simple requestor for commands without argument.

Template Parameters
Funcis either a StdCmdsSync or OcmDaqSync member function pointer, taking no arguments and returning a type that has an ostream << operator: E.g.: using Func = decltype(&ocmif::StdCmds::Enable);

Definition at line 90 of file requestor.hpp.

Constructor & Destructor Documentation

◆ SimpleRequestor()

template<class Func >
SimpleRequestor< Func >::SimpleRequestor ( Func  func,
CommonArgs args 
)
inline

Definition at line 91 of file requestor.hpp.

Member Function Documentation

◆ Handle()

template<class Func >
void SimpleRequestor< Func >::Handle ( ::stdif::StdCmdsSync &  std_cmds,
::ocmif::OcmDaqSync &  daq_cmds,
boost::program_options::variables_map &  vm,
std::vector< std::string > &  opts 
)
inlineoverridevirtual

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

Implements Requestor.

Definition at line 93 of file requestor.hpp.

Member Data Documentation

◆ m_func

template<class Func >
Func SimpleRequestor< Func >::m_func

Definition at line 115 of file requestor.hpp.


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