Command line option with vector argument. More...
Public Member Functions | |
Vector (std::vector< T > &vector) | |
Constructor. | |
virtual | ~Vector () |
Virtual destructor. | |
virtual void | Evaluate (const size_t argc, const char *argv[], size_t &index) |
Evaluate and set associated option. | |
virtual mxml_node_t * | MakeXML (mxml_node_t *const parent) const |
Virtual function that returns an XML tree describing this option. | |
virtual std::string | GetParamTypeString () const |
Return a textual description of the parameter associated with this option. | |
Private Attributes | |
std::vector< T > * | m_pVector |
Pointer to associated variable. | |
bool | m_HasBeenUsed |
Has this vector option been used already? This is so we clear the vector exactly once. |
Command line option with vector argument.
Definition at line 492 of file cmtkCommandLine.h.
cmtk::CommandLine::Vector< T >::Vector | ( | std::vector< T > & | vector ) | [inline] |
Constructor.
Definition at line 498 of file cmtkCommandLine.h.
virtual cmtk::CommandLine::Vector< T >::~Vector | ( | ) | [inline, virtual] |
Virtual destructor.
Definition at line 501 of file cmtkCommandLine.h.
void cmtk::CommandLine::Vector< T >::Evaluate | ( | const size_t | argc, |
const char * | argv[], | ||
size_t & | index | ||
) | [virtual] |
Evaluate and set associated option.
Implements cmtk::CommandLine::Item.
Definition at line 37 of file cmtkCommandLineVector.txx.
std::string cmtk::CommandLine::Vector< T >::GetParamTypeString | ( | ) | const [virtual] |
Return a textual description of the parameter associated with this option.
Reimplemented from cmtk::CommandLine::Item.
Definition at line 98 of file cmtkCommandLineVector.txx.
mxml_node_t * cmtk::CommandLine::Vector< T >::MakeXML | ( | mxml_node_t *const | parent ) | const [virtual] |
Virtual function that returns an XML tree describing this option.
Implements cmtk::CommandLine::Item.
Definition at line 75 of file cmtkCommandLineVector.txx.
References NULL.
bool cmtk::CommandLine::Vector< T >::m_HasBeenUsed [private] |
Has this vector option been used already? This is so we clear the vector exactly once.
Definition at line 517 of file cmtkCommandLine.h.
std::vector<T>* cmtk::CommandLine::Vector< T >::m_pVector [private] |
Pointer to associated variable.
Definition at line 514 of file cmtkCommandLine.h.