Main MRPT website > C++ reference for MRPT 1.4.0
List of all members | Private Member Functions | Private Attributes | Friends
TCLAP::MULTI_ARG_HELPER::ValueExtractor< std::string > Class Template Reference

Detailed Description

template<>
class TCLAP::MULTI_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 118 of file MultiArg.h.

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

Private Member Functions

 ValueExtractor (std::vector< std::string > &values)
 Constructor. More...
 
int extractValue (const std::string &val)
 Method that will attempt to parse the input stream for values of type std::string. More...
 

Private Attributes

std::vector< std::string > & _values
 Reference to the vector of strings where the result of the extraction will be put. More...
 

Friends

class MultiArg< std::string >
 

Constructor & Destructor Documentation

TCLAP::MULTI_ARG_HELPER::ValueExtractor< std::string >::ValueExtractor ( std::vector< std::string > &  values)
inlineprivate

Constructor.

Parameters
values- Where the strings extracted will be put.

Definition at line 134 of file MultiArg.h.

Member Function Documentation

int TCLAP::MULTI_ARG_HELPER::ValueExtractor< std::string >::extractValue ( const std::string &  val)
inlineprivate

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

Parameters
val- Where the values parsed will be put.

Definition at line 141 of file MultiArg.h.

References TCLAP::MULTI_ARG_HELPER::ValueExtractor< T >::_values.

Friends And Related Function Documentation

friend class MultiArg< std::string >
friend

Definition at line 120 of file MultiArg.h.

Member Data Documentation

std::vector<std::string>& TCLAP::MULTI_ARG_HELPER::ValueExtractor< std::string >::_values
private

Reference to the vector of strings where the result of the extraction will be put.

Definition at line 128 of file MultiArg.h.




Page generated by Doxygen 1.8.11 for MRPT 1.4.0 SVN: at Sun Aug 14 23:58:29 UTC 2016