Main MRPT website > C++ reference
MRPT logo

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

Specialization for string. More...

#include <mrpt/otherlibs/tclap/ValueArg.h>

Collaboration diagram for TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >:
Collaboration graph
[legend]

List of all members.

Private Member Functions

 ValueExtractor (std::string &value)
 Constructor.
int extractValue (const std::string &val)
 Method that will attempt to parse the input stream for a value of type std::string.

Private Attributes

std::string & _value
 Reference to the value where the result of the extraction will be put.

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.

Definition at line 126 of file ValueArg.h.


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.

Definition at line 145 of file ValueArg.h.


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.

Definition at line 152 of file ValueArg.h.

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


Friends And Related Function Documentation

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

Definition at line 131 of file ValueArg.h.


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.

Definition at line 139 of file ValueArg.h.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines



Page generated by Doxygen 1.6.1 for MRPT 0.9.0 SVN: at Mon Jun 7 06:47:58 UTC 2010