TClap class internally used for extracting value args. More...
#include <value_arg.hpp>
| Private Member Functions | |
| int | extractValue (const std::string &val) | 
| ValueExtractor (T &value) | |
| Private Attributes | |
| T & | _value | 
| Friends | |
| class | ValueArg< T > | 
TClap class internally used for extracting value args.
This class is used to extract a value from an argument. It is used because we need a special implementation to deal with std::string and making a specialised function puts it in the T segment, thus generating link errors. Having a specialised class makes the symbols weak. This is not pretty but I don't know how to make it work any other way.
Definition at line 53 of file value_arg.hpp.
| 
 | inlineprivate | 
Constructor.
| value | - Where the value extracted will be put. | 
Definition at line 69 of file value_arg.hpp.
| 
 | inlineprivate | 
Method that will attempt to parse the input stream for a value of type T.
| val | - Where the value parsed will be put. | 
Definition at line 76 of file value_arg.hpp.
| 
 | friend | 
Definition at line 55 of file value_arg.hpp.
| 
 | private | 
Reference to the value where the result of the extraction will be put.
Definition at line 63 of file value_arg.hpp.