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

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

#include <multi_arg.hpp>

Private Member Functions

int extractValue (const std::string &val)
 
 ValueExtractor (std::vector< std::string > &values)
 

Private Attributes

std::vector< std::string > & _values
 

Friends

class MultiArg< std::string >
 

Detailed Description

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 121 of file multi_arg.hpp.

Constructor & Destructor Documentation

◆ ValueExtractor()

ecl::MultiArgHelper::ValueExtractor< std::string >::ValueExtractor ( std::vector< std::string > &  values)
inlineprivate

Constructor.

Parameters
values- Where the strings extracted will be put.

Definition at line 137 of file multi_arg.hpp.

Member Function Documentation

◆ extractValue()

int ecl::MultiArgHelper::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 144 of file multi_arg.hpp.

Friends And Related Function Documentation

◆ MultiArg< std::string >

friend class MultiArg< std::string >
friend

Definition at line 123 of file multi_arg.hpp.

Member Data Documentation

◆ _values

std::vector<std::string>& ecl::MultiArgHelper::ValueExtractor< std::string >::_values
private

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

Definition at line 131 of file multi_arg.hpp.


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


ecl_command_line
Author(s): Daniel Stonier
autogenerated on Wed Mar 2 2022 00:16:13