TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string > Class Template Reference

#include <ValueArg.h>

List of all members.

Private Member Functions

int extractValue (const std::string &val)
int extractValue (const std::string &val)
 ValueExtractor (std::string &value)
 ValueExtractor (std::string &value)

Private Attributes

std::string & _value

Friends

class ValueArg< std::string >

Detailed Description

template<>
class TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >

Specialization for string. This is necessary because istringstream operator>> is not able to ignore spaces... meaning -x "X Y" will only read 'X'... and thus the specialization.


Constructor & Destructor Documentation

TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >::ValueExtractor ( std::string &  value  )  [inline, private]

Constructor.

Parameters:
value - Where the value extracted will be put.
TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >::ValueExtractor ( std::string &  value  )  [inline, private]

Constructor.

Parameters:
value - Where the value extracted will be put.

Member Function Documentation

int TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >::extractValue ( const std::string &  val  )  [inline, private]

Method that will attempt to parse the input stream for a value of type std::string.

Parameters:
val - Where the string parsed will be put.

References TCLAP::VALUE_ARG_HELPER::ValueExtractor< T >::_value.

int TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >::extractValue ( const std::string &  val  )  [inline, private]

Method that will attempt to parse the input stream for a value of type std::string.

Parameters:
val - Where the string parsed will be put.

References TCLAP::VALUE_ARG_HELPER::ValueExtractor< T >::_value.


Friends And Related Function Documentation

friend class ValueArg< std::string > [friend]

Member Data Documentation

std::string & TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >::_value [private]

Reference to the value where the result of the extraction will be put.


The documentation for this class was generated from the following files:

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1