TextOption Class Reference

Text-valued option. More...

#include <textoption.hh>

Inheritance diagram for TextOption:
BaseOption BaseOption

List of all members.

Public Member Functions

 TextOption (const char *o, const char *e, const char *v)
 Initialize for option o and explanation e and default value v.
void value (const char *val)
 Set default value to v.
const char * value (void) const
 Return current option value.
virtual bool parse (int &argc, char *argv[])
 Parse option at first position.
virtual void help (void)
 Print help text.
virtual ~TextOption (void)
 Destructor.
 TextOption (const char *o, const char *e, const char *v)
 Initialize for option o and explanation e and default value v.
void value (const char *val)
 Set default value to v.
const char * value (void) const
 Return current option value.
virtual bool parse (int &argc, char *argv[])
 Parse option at first position.
virtual void help (void)
 Print help text.
virtual ~TextOption (void)
 Destructor.

Protected Attributes

const char * cur
 current value

Detailed Description

Text-valued option.

Definition at line 44 of file textoption.hh.


Constructor & Destructor Documentation

TextOption::TextOption ( const char *  o,
const char *  e,
const char *  v 
) [inline]

Initialize for option o and explanation e and default value v.

Definition at line 63 of file textoption.hh.

TextOption::~TextOption ( void   )  [virtual]

Destructor.

Definition at line 72 of file textoption.cpp.

TextOption::TextOption ( const char *  o,
const char *  e,
const char *  v 
)

Initialize for option o and explanation e and default value v.

virtual TextOption::~TextOption ( void   )  [virtual]

Destructor.


Member Function Documentation

virtual void TextOption::help ( void   )  [virtual]

Print help text.

void TextOption::help ( void   )  [virtual]

Print help text.

Definition at line 66 of file textoption.cpp.

References cur.

virtual bool TextOption::parse ( int &  argc,
char *  argv[] 
) [virtual]

Parse option at first position.

bool TextOption::parse ( int &  argc,
char *  argv[] 
) [virtual]

Parse option at first position.

Definition at line 50 of file textoption.cpp.

References cur.

const char* TextOption::value ( void   )  const

Return current option value.

void TextOption::value ( const char *  val  ) 

Set default value to v.

const char * TextOption::value ( void   )  const [inline]

Return current option value.

Definition at line 71 of file textoption.hh.

References cur.

void TextOption::value ( const char *  val  )  [inline]

Set default value to v.

Definition at line 67 of file textoption.hh.

References cur.

Referenced by Options_fimcp::attrfile(), Options_fimcp::datafile(), and Options_fimcp::solfile().


Member Data Documentation

const char * TextOption::cur [protected]

current value

Definition at line 46 of file textoption.hh.

Referenced by help(), parse(), and value().


The documentation for this class was generated from the following files:
Generated on Sat Nov 12 12:59:31 2011 for FIM_CP+CIMCP by  doxygen 1.6.3