ewmscp  ..
Public Member Functions | Private Attributes | List of all members
davixCfgPar< T > Class Template Reference

template class for davix config parameters More...

#include <davixCommon.h>

Public Member Functions

 davixCfgPar (const std::string &parPrefix, const std::string &optName, const std::string &description, void(Davix::RequestParams::*setter)(T))
 
 davixCfgPar (const std::string &parPrefix, const std::string &optName, const std::string &description, void(Davix::RequestParams::*setter)(T), T aDefault)
 
void applySingle (Davix::RequestParams &params)
 

Private Attributes

options::single< T > option
 option that holds the config value More...
 
void(Davix::RequestParams::* set )(T)
 setter that will configure the davix instance More...
 

Detailed Description

template<class T>
class davixCfgPar< T >

template class for davix config parameters

Definition at line 67 of file davixCommon.h.

Constructor & Destructor Documentation

◆ davixCfgPar() [1/2]

template<class T >
davixCfgPar< T >::davixCfgPar ( const std::string &  parPrefix,
const std::string &  optName,
const std::string &  description,
void(Davix::RequestParams::*)(T)  setter 
)
inline

Definition at line 71 of file davixCommon.h.

74  :
75  option('\0', parPrefix + optName, description),
76  set(setter) {
77  }

◆ davixCfgPar() [2/2]

template<class T >
davixCfgPar< T >::davixCfgPar ( const std::string &  parPrefix,
const std::string &  optName,
const std::string &  description,
void(Davix::RequestParams::*)(T)  setter,
aDefault 
)
inline

Definition at line 78 of file davixCommon.h.

82  :
83  option('\0', parPrefix + optName, description, aDefault),
84  set(setter) {
85  }

Member Function Documentation

◆ applySingle()

template<class T >
void davixCfgPar< T >::applySingle ( Davix::RequestParams &  params)
inline

Definition at line 86 of file davixCommon.h.

86  {
87  if (option.fIsSet()) {
88  (params.*set)(option);
89  }
90  }

Referenced by davixConfigObject::apply().

Here is the caller graph for this function:

Member Data Documentation

◆ option

template<class T >
options::single<T> davixCfgPar< T >::option
private

option that holds the config value

Definition at line 68 of file davixCommon.h.

Referenced by davixCfgPar< bool >::applySingle().

◆ set

template<class T >
void(Davix::RequestParams::* davixCfgPar< T >::set) (T)
private

setter that will configure the davix instance

Definition at line 69 of file davixCommon.h.

Referenced by davixCfgPar< bool >::applySingle().


The documentation for this class was generated from the following file:
parPrefix
static const std::string parPrefix("dCap")
davixCfgPar::option
options::single< T > option
option that holds the config value
Definition: davixCommon.h:68
davixCfgPar::set
void(Davix::RequestParams::* set)(T)
setter that will configure the davix instance
Definition: davixCommon.h:69