Public Member Functions | Private Attributes

cmtk::CommandLine::Callback Class Reference

Command line callback. More...

Inheritance diagram for cmtk::CommandLine::Callback:
Inheritance graph
[legend]
Collaboration diagram for cmtk::CommandLine::Callback:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 Callback (CallbackFunc func)
 Constructor for simple callback.
 Callback (CallbackFuncArg funcArg)
 Constructor for callback with argument.
 Callback (CallbackFuncIntArg funcIntArg)
 Constructor for callback with integer argument.
 Callback (CallbackFuncDblArg funcDblArg)
 Constructor for callback with integer argument.
 Callback (CallbackFuncMultiArg funcMultiArg)
 Constructor for callback with multiple arguments.
virtual ~Callback ()
 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
 Virtual function returns a string that describes the parameter type associated with this callback.

Private Attributes

CallbackFunc m_Func
 Pointer to simple callback.
CallbackFuncArg m_FuncArg
 Pointer to callback with argument.
CallbackFuncIntArg m_FuncIntArg
 Pointer to callback with integer argument.
CallbackFuncDblArg m_FuncDblArg
 Pointer to callback with floating point argument.
CallbackFuncMultiArg m_FuncMultiArg
 Pointer to callback with multiple arguments.

Detailed Description

Command line callback.

Definition at line 521 of file cmtkCommandLine.h.


Constructor & Destructor Documentation

cmtk::CommandLine::Callback::Callback ( CallbackFunc  func ) [inline]

Constructor for simple callback.

Definition at line 527 of file cmtkCommandLine.h.

cmtk::CommandLine::Callback::Callback ( CallbackFuncArg  funcArg ) [inline]

Constructor for callback with argument.

Definition at line 530 of file cmtkCommandLine.h.

cmtk::CommandLine::Callback::Callback ( CallbackFuncIntArg  funcIntArg ) [inline]

Constructor for callback with integer argument.

Definition at line 533 of file cmtkCommandLine.h.

cmtk::CommandLine::Callback::Callback ( CallbackFuncDblArg  funcDblArg ) [inline]

Constructor for callback with integer argument.

Definition at line 536 of file cmtkCommandLine.h.

cmtk::CommandLine::Callback::Callback ( CallbackFuncMultiArg  funcMultiArg ) [inline]

Constructor for callback with multiple arguments.

Definition at line 539 of file cmtkCommandLine.h.

virtual cmtk::CommandLine::Callback::~Callback (  ) [inline, virtual]

Virtual destructor.

Definition at line 542 of file cmtkCommandLine.h.


Member Function Documentation

void cmtk::CommandLine::Callback::Evaluate ( const size_t  argc,
const char *  argv[],
size_t &  index 
) [virtual]

Evaluate and set associated option.

Implements cmtk::CommandLine::Item.

Definition at line 35 of file cmtkCommandLineCallback.cxx.

std::string cmtk::CommandLine::Callback::GetParamTypeString (  ) const [virtual]

Virtual function returns a string that describes the parameter type associated with this callback.

Reimplemented from cmtk::CommandLine::Item.

Definition at line 171 of file cmtkCommandLineCallback.cxx.

mxml_node_t * cmtk::CommandLine::Callback::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 139 of file cmtkCommandLineCallback.cxx.

References NULL.


Member Data Documentation

Pointer to simple callback.

Definition at line 555 of file cmtkCommandLine.h.

Pointer to callback with argument.

Definition at line 558 of file cmtkCommandLine.h.

Pointer to callback with floating point argument.

Definition at line 564 of file cmtkCommandLine.h.

Pointer to callback with integer argument.

Definition at line 561 of file cmtkCommandLine.h.

Pointer to callback with multiple arguments.

Definition at line 567 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