ifw-daq  2.1.0-pre1
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, ::daqif::OcmDaqControlSync &daq_cmds, CLI::App *arg) 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 void AddOptions (CLI::App *app)
 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 OcmDaqControlSync member function pointer, taking no arguments and returning a type that has an ostream << operator: E.g.: using Func = decltype(&daqif::StdCmds::Enable);

Definition at line 96 of file requestor.hpp.

Constructor & Destructor Documentation

◆ SimpleRequestor()

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

Definition at line 97 of file requestor.hpp.

Member Function Documentation

◆ Handle()

template<class Func >
void SimpleRequestor< Func >::Handle ( ::stdif::StdCmdsSync &  std_cmds,
::daqif::OcmDaqControlSync &  daq_cmds,
CLI::App *  arg 
)
inlineoverridevirtual

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

Implements Requestor.

Definition at line 99 of file requestor.hpp.

Member Data Documentation

◆ m_func

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

Definition at line 120 of file requestor.hpp.


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