$search

ecl::ValueArgHelper::ValueExtractor< std::string > Class Template Reference

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

#include <value_arg.hpp>

List of all members.

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  )  [inline, private]

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  )  [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 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:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines


ecl_command_line
Author(s): Daniel Stonier (d.stonier@gmail.com)
autogenerated on Fri Mar 1 15:21:13 2013