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

Detailed Description

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 115 of file ValueArg.h.

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

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 >
 

Constructor & Destructor Documentation

◆ ValueExtractor()

TCLAP::VALUE_ARG_HELPER::ValueExtractor< std::string >::ValueExtractor ( std::string &  value)
inlineprivate

Constructor.

Parameters
value- Where the value extracted will be put.

Definition at line 134 of file ValueArg.h.

Member Function Documentation

◆ extractValue()

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

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 141 of file ValueArg.h.

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

Friends And Related Symbol Documentation

◆ ValueArg< std::string >

friend class ValueArg< std::string >
friend

Definition at line 78 of file ValueArg.h.

Member Data Documentation

◆ _value

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 128 of file ValueArg.h.




Page generated by Doxygen 1.9.7 for MRPT 1.4.0 SVN: at Tue Jun 13 14:10:35 UTC 2023