OnixS C++ ICE Binary Order Entry Handler 1.1.1
API Documentation
Loading...
Searching...
No Matches
OptionArgConverter< Value > Class Template Reference

Public Member Functions

 OptionArgConverter (const Char *option=nullptr)
Value operator() (const std::string &str) const

Detailed Description

template<typename Value>
class Samples::OptionArgConverter< Value >

Definition at line 244 of file Options.h.

Constructor & Destructor Documentation

◆ OptionArgConverter()

template<typename Value>
OptionArgConverter ( const Char * option = nullptr)
inline

Definition at line 247 of file Options.h.

248 : option_(option)
249 {
250 }

Member Function Documentation

◆ operator()()

template<typename Value>
Value operator() ( const std::string & str) const
inline

Definition at line 252 of file Options.h.

253 {
254 Value value = Value();
255
256 if (!fromStr(value, str))
258
259 return value;
260 }
void throwOptionArgConversionFailed(const Char *option)
Definition Options.h:209
T fromStr(const std::string &s)
Definition Helpers.h:142