ewmscp  ..
Public Member Functions | Private Attributes | List of all members
dCapCfgPar< T > Class Template Reference
Inheritance diagram for dCapCfgPar< T >:
[legend]
Collaboration diagram for dCapCfgPar< T >:
[legend]

Public Member Functions

 dCapCfgPar (const std::string &optName, const std::string &description, void(*setter)(T))
 
void fForbid (options::base &opt) override
 
void applySingle () override
 
- Public Member Functions inherited from dCapConfigParameter
 dCapConfigParameter ()
 

Private Attributes

options::single< T > option
 
void(* set )(T)
 

Additional Inherited Members

- Static Public Member Functions inherited from dCapConfigParameter
static void apply ()
 

Detailed Description

template<class T>
class dCapCfgPar< T >

Definition at line 26 of file dcapCommon.cpp.

Constructor & Destructor Documentation

◆ dCapCfgPar()

template<class T >
dCapCfgPar< T >::dCapCfgPar ( const std::string &  optName,
const std::string &  description,
void(*)(T)  setter 
)
inline

Definition at line 30 of file dcapCommon.cpp.

32  :
33  option('\0', parPrefix + optName, description),
34  set(setter) {
35  }

Member Function Documentation

◆ applySingle()

template<class T >
void dCapCfgPar< T >::applySingle ( )
inlineoverridevirtual

Implements dCapConfigParameter.

Definition at line 40 of file dcapCommon.cpp.

40  {
41  if (option.fIsSet()) {
42  set(option);
43  }
44  }

References dCapCfgPar< T >::option, and dCapCfgPar< T >::set.

◆ fForbid()

template<class T >
void dCapCfgPar< T >::fForbid ( options::base opt)
inlineoverridevirtual

Reimplemented from dCapConfigParameter.

Definition at line 36 of file dcapCommon.cpp.

36  {
37  opt.fForbid(&option);
38  option.fForbid(&opt);
39  };

References options::base::fForbid(), and dCapCfgPar< T >::option.

Here is the call graph for this function:

Member Data Documentation

◆ option

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

◆ set

template<class T >
void(* dCapCfgPar< T >::set) (T)
private

The documentation for this class was generated from the following file:
dCapCfgPar::set
void(* set)(T)
Definition: dcapCommon.cpp:28
options::base::fForbid
virtual void fForbid(const base *aOtherOption)
forbid aOtherOption when this option is set
Definition: Options.cpp:617
parPrefix
static const std::string parPrefix("dCap")
dCapCfgPar::option
options::single< T > option
Definition: dcapCommon.cpp:27