Public Types | Public Member Functions | Private Attributes

cmtk::CommandLine::EnumGroup< TDataType > Class Template Reference

Key-to-action list for enumeration parameter groups. More...

#include <cmtkCommandLine.h>

Inheritance diagram for cmtk::CommandLine::EnumGroup< TDataType >:
Inheritance graph
[legend]
Collaboration diagram for cmtk::CommandLine::EnumGroup< TDataType >:
Collaboration graph
[legend]

List of all members.

Public Types

typedef SmartPointer
< EnumGroup< TDataType > > 
SmartPtr
 Smart pointer to this class.

Public Member Functions

 EnumGroup (TDataType *const variable)
 Constructor.
Item::SmartPtrAddSwitch (const Key &key, const TDataType &value, const std::string &comment)
 Add switch to this group.

Private Attributes

TDataType * m_Variable
 Pointer to the variable that holds the enum value.

Detailed Description

template<class TDataType>
class cmtk::CommandLine::EnumGroup< TDataType >

Key-to-action list for enumeration parameter groups.

Definition at line 935 of file cmtkCommandLine.h.


Member Typedef Documentation

template<class TDataType>
typedef SmartPointer< EnumGroup<TDataType> > cmtk::CommandLine::EnumGroup< TDataType >::SmartPtr

Smart pointer to this class.

Reimplemented from cmtk::CommandLine::EnumGroupBase.

Definition at line 941 of file cmtkCommandLine.h.


Constructor & Destructor Documentation

template<class TDataType>
cmtk::CommandLine::EnumGroup< TDataType >::EnumGroup ( TDataType *const   variable ) [inline]

Constructor.

Parameters:
variableThe variable handled by this enum group.

Definition at line 944 of file cmtkCommandLine.h.


Member Function Documentation

template<class TDataType>
Item::SmartPtr& cmtk::CommandLine::EnumGroup< TDataType >::AddSwitch ( const Key key,
const TDataType &  value,
const std::string &  comment 
) [inline]

Add switch to this group.

Definition at line 952 of file cmtkCommandLine.h.


Member Data Documentation

template<class TDataType>
TDataType* cmtk::CommandLine::EnumGroup< TDataType >::m_Variable [private]

Pointer to the variable that holds the enum value.

Definition at line 961 of file cmtkCommandLine.h.


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