NeoPZ
Public Member Functions | Protected Attributes | List of all members
clarg::argT< T > Class Template Reference

#include <arglib.h>

Inheritance diagram for clarg::argT< T >:
[legend]
Collaboration diagram for clarg::argT< T >:
[legend]

Public Member Functions

 argT (const char *arg, const char *desc)
 
const T & get_value () const
 
void set_value (const T &v) const
 
- Public Member Functions inherited from clarg::arg_base
 arg_base (const char *name, const char *desc)
 
const string & get_name () const
 
const string & get_desc () const
 
bool was_set () const
 
void mark_set (bool m)
 

Protected Attributes

value
 
def_value
 
- Protected Attributes inherited from clarg::arg_base
bool arg_set
 
string arg_name
 
string arg_desc
 

Additional Inherited Members

- Protected Member Functions inherited from clarg::arg_base
virtual int parse_parameters (int argc, char *argv [])=0
 
virtual void write_parameters (ostream &os, bool def=false) const =0
 

Detailed Description

template<class T>
class clarg::argT< T >

The argument template class.

Definition at line 169 of file arglib.h.

Constructor & Destructor Documentation

◆ argT()

template<class T>
clarg::argT< T >::argT ( const char *  arg,
const char *  desc 
)
inline

Definition at line 173 of file arglib.h.

Member Function Documentation

◆ get_value()

template<class T>
const T& clarg::argT< T >::get_value ( ) const
inline

◆ set_value()

template<class T>
void clarg::argT< T >::set_value ( const T &  v) const
inline

Definition at line 180 of file arglib.h.

Member Data Documentation

◆ def_value

template<class T>
T clarg::argT< T >::def_value
protected

Definition at line 187 of file arglib.h.

◆ value

template<class T>
T clarg::argT< T >::value
protected

Definition at line 185 of file arglib.h.


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