Main Page   Class Hierarchy   Alphabetical List   Data Structures   File List   Data Fields  

sword::CommandLineTraits< T > Class Template Reference

Command line parser type traits. More...


Static Public Methods

convert (const std::string &value)
void toggle (T &value, bool onoff)


Detailed Description

template<typename T>
class sword::CommandLineTraits< T >

Command line parser type traits.

Specializations of this class are used within the CommandLineManager to handle actual data types for options and flags. For a given type 'T', the CommandLineTraits<T>::convert() method is used to convert the characters string given on the command line to a value of type 'T'. The CommandLineTraits<T>::toggle() method is used to switch on/off a value of type 'T'.


Generated on Tue Dec 23 20:08:56 2003 for SWORD by doxygen1.3-rc2