#include <ValueArg.h>
Collaboration diagram for TCLAP::VALUE_ARG_HELPER::ValueExtractor< T >:

Private Member Functions | |
| ValueExtractor (T &value) | |
| Constructor. | |
| int | extractValue (const std::string &val) |
| Method that will attempt to parse the input stream for a value of type T. | |
Private Attributes | |
| T & | _value |
| Reference to the value where the result of the extraction will be put. | |
Friends | |
| class | ValueArg< T > |
It is used because we need a special implementation to deal with std::string and making a specialiced function puts it in the T segment, thus generating link errors. Having a specialiced class makes the symbols weak. This is not pretty but I don't know how to make it work any other way.
| TCLAP::VALUE_ARG_HELPER::ValueExtractor< T >::ValueExtractor | ( | T & | value | ) | [inline, private] |
Constructor.
| value | - Where the value extracted will be put. |
| int TCLAP::VALUE_ARG_HELPER::ValueExtractor< T >::extractValue | ( | const std::string & | val | ) | [inline, private] |
Method that will attempt to parse the input stream for a value of type T.
| val | - Where the value parsed will be put. |
friend class ValueArg< T > [friend] |
T& TCLAP::VALUE_ARG_HELPER::ValueExtractor< T >::_value [private] |
Reference to the value where the result of the extraction will be put.
1.4.7