#include <MultiArg.h>
Private Member Functions | |
| ValueExtractor (std::vector< T > &values) | |
| Constructor. | |
| int | extractValue (const std::string &val) |
| Method that will attempt to parse the input stream for values of type T. | |
Private Attributes | |
| std::vector< T > & | _values |
| Reference to the vector of values where the result of the extraction will be put. | |
Friends | |
| class | MultiArg< 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::MULTI_ARG_HELPER::ValueExtractor< T >::ValueExtractor | ( | std::vector< T > & | values | ) | [inline, private] |
Constructor.
| values | - Where the values extracted will be put. |
| int TCLAP::MULTI_ARG_HELPER::ValueExtractor< T >::extractValue | ( | const std::string & | val | ) | [inline, private] |
Method that will attempt to parse the input stream for values of type T.
| val | - Where the values parsed will be put. |
friend class MultiArg< T > [friend] |
std::vector<T>& TCLAP::MULTI_ARG_HELPER::ValueExtractor< T >::_values [private] |
Reference to the vector of values where the result of the extraction will be put.
1.4.7