Qualia  0.2
Public Member Functions | Public Attributes | List of all members
RealCmdOption Class Reference

#include <CmdOption.h>

Inheritance diagram for RealCmdOption:
Inheritance graph
[legend]
Collaboration diagram for RealCmdOption:
Collaboration graph
[legend]

Public Member Functions

 RealCmdOption (const char *name_, real *ptr_, real init_value_, const char *help_="", bool save_=false)
 
virtual void initValue ()
 Initialize the value of the option. More...
 
virtual void printValue (DiskXFile *file_)
 If is_setted# is true, print the current value, else the init value. More...
 
virtual void read (int *argc_, char ***argv_)
 
virtual void load (DiskXFile *file)
 
virtual void save (DiskXFile *file)
 
 ~RealCmdOption ()
 
- Public Member Functions inherited from CmdOption
 CmdOption (const char *name_, const char *type_name_, const char *help_="", bool save_=false)
 
bool isCurrent (int *argc_, char ***argv_)
 
bool isOption (bool set_=false)
 
bool isArgument (bool set_=false)
 
bool isText (bool set_=false)
 
bool isMasterSwitch (bool set_=false)
 
virtual ~CmdOption ()
 

Public Attributes

realptr
 
real init_value
 
- Public Attributes inherited from CmdOption
char * name
 Name of the option. More...
 
char * type_name
 Type name of the option. More...
 
char * help
 
bool needsSave
 
bool is_setted
 

Detailed Description

This class defines a real command-line option.

Author
Ronan Collobert (collo.nosp@m.ber@.nosp@m.idiap.nosp@m..ch)
See Also
CmdLine

Constructor & Destructor Documentation

RealCmdOption::RealCmdOption ( const char *  name_,
real ptr_,
real  init_value_,
const char *  help_ = "",
bool  save_ = false 
)
RealCmdOption::~RealCmdOption ( )

Member Function Documentation

void RealCmdOption::initValue ( )
virtual

Initialize the value of the option.

Reimplemented from CmdOption.

void RealCmdOption::load ( DiskXFile file)
virtual

Reimplemented from CmdOption.

void RealCmdOption::printValue ( DiskXFile file_)
virtual

If is_setted# is true, print the current value, else the init value.

Reimplemented from CmdOption.

void RealCmdOption::read ( int *  argc_,
char ***  argv_ 
)
virtual

Read the option on the command line. argv_ and argc_ have to point of the next option after that.

Reimplemented from CmdOption.

void RealCmdOption::save ( DiskXFile file)
virtual

Reimplemented from CmdOption.

Member Data Documentation

real RealCmdOption::init_value
real* RealCmdOption::ptr

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