Private Member Functions | Private Attributes | Friends | List of all members
ecl::ValueArgHelper::ValueExtractor< std::string > Class Template Reference

TClap class internally used for string handling. More...

#include <value_arg.hpp>

Private Member Functions

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

Private Attributes

std::string & _value
 

Friends

class ValueArg< std::string >
 

Detailed Description

template<>
class ecl::ValueArgHelper::ValueExtractor< std::string >

TClap class internally used for string handling.

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 value_arg.hpp.

Constructor & Destructor Documentation

ecl::ValueArgHelper::ValueExtractor< std::string >::ValueExtractor ( std::string &  value)
inlineprivate

Constructor.

Parameters
value- Where the value extracted will be put.

Definition at line 131 of file value_arg.hpp.

Member Function Documentation

int ecl::ValueArgHelper::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 138 of file value_arg.hpp.

Friends And Related Function Documentation

friend class ValueArg< std::string >
friend

Definition at line 117 of file value_arg.hpp.

Member Data Documentation

std::string& ecl::ValueArgHelper::ValueExtractor< std::string >::_value
private

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

Definition at line 125 of file value_arg.hpp.


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


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Mon Jun 10 2019 13:08:08