soma-io  5.0.5
carto::SingleOption< BoolOrNumber< NumberType > > Class Template Reference

#include <soma-io/getopt/getopt.h>

Inheritance diagram for carto::SingleOption< BoolOrNumber< NumberType > >:
Collaboration diagram for carto::SingleOption< BoolOrNumber< NumberType > >:

Public Member Functions

 SingleOption (BoolOrNumber< NumberType > &value, const std::string &name, const std::string &info, bool optional)
 
virtual ~SingleOption ()
 
virtual bool recognizeName (const std::string &)
 
virtual bool feed (const std::string &)
 
std::string info () const
 
- Public Member Functions inherited from carto::SingleOption< NumberType >
 SingleOption (NumberType &value, const std::string &name, const std::string &info, bool optional)
 
bool recognizeName (const std::string &n)
 
bool feed (const std::string &value)
 
virtual void check ()
 
std::string info () const
 

Additional Inherited Members

- Protected Member Functions inherited from carto::OptionBase
 OptionBase (const std::string &name, const std::string &info)
 
virtual ~OptionBase ()
 
void addName (const std::string &name)
 
const std::string & name () const
 
std::string names () const
 
bool _nameInList (const std::string &name) const
 
- Protected Attributes inherited from carto::SingleOption< NumberType >
NumberType & _value
 
bool _optional
 
bool _valueRead
 
- Protected Attributes inherited from carto::OptionBase
std::vector< std::string > _names
 
std::string _info
 

Detailed Description

template<class NumberType>
class carto::SingleOption< BoolOrNumber< NumberType > >

Definition at line 367 of file getopt.h.

Constructor & Destructor Documentation

◆ SingleOption()

template<typename NumberType >
carto::SingleOption< BoolOrNumber< NumberType > >::SingleOption ( BoolOrNumber< NumberType > &  value,
const std::string &  name,
const std::string &  info,
bool  optional 
)
inline

Definition at line 386 of file getopt.h.

◆ ~SingleOption()

template<typename NumberType >
carto::SingleOption< BoolOrNumber< NumberType > >::~SingleOption ( )
inlinevirtual

Reimplemented from carto::SingleOption< NumberType >.

Definition at line 393 of file getopt.h.

References carto::SingleOption< T >::recognizeName().

Member Function Documentation

◆ feed()

template<typename NumberType >
bool carto::SingleOption< BoolOrNumber< NumberType > >::feed ( const std::string &  value)
virtual

◆ info()

template<class NumberType >
std::string carto::SingleOption< BoolOrNumber< NumberType > >::info ( ) const
inlinevirtual

◆ recognizeName()

template<typename NumberType >
bool carto::SingleOption< BoolOrNumber< NumberType > >::recognizeName ( const std::string &  n)
virtual

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