Public Member Functions | Private Attributes

cmtk::CommandLine::List< T > Class Template Reference

Command line option with list argument: repeated calls will add to list. More...

Inheritance diagram for cmtk::CommandLine::List< T >:
Inheritance graph
[legend]
Collaboration diagram for cmtk::CommandLine::List< T >:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 List (std::list< T > &list)
 Constructor.
virtual ~List ()
 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.

Private Attributes

std::list< T > * m_pList
 Pointer to associated variable.

Detailed Description

template<class T>
class cmtk::CommandLine::List< T >

Command line option with list argument: repeated calls will add to list.

Definition at line 463 of file cmtkCommandLine.h.


Constructor & Destructor Documentation

template<class T >
cmtk::CommandLine::List< T >::List ( std::list< T > &  list ) [inline]

Constructor.

Definition at line 469 of file cmtkCommandLine.h.

template<class T >
virtual cmtk::CommandLine::List< T >::~List (  ) [inline, virtual]

Virtual destructor.

Definition at line 472 of file cmtkCommandLine.h.


Member Function Documentation

template<class T >
void cmtk::CommandLine::List< 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 36 of file cmtkCommandLineList.txx.

template<class T >
mxml_node_t * cmtk::CommandLine::List< 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 52 of file cmtkCommandLineList.txx.

References NULL.


Member Data Documentation

template<class T >
std::list<T>* cmtk::CommandLine::List< T >::m_pList [private]

Pointer to associated variable.

Definition at line 482 of file cmtkCommandLine.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines