![]() |
Converts boolean to/from a string. More...
#include <FieldConvertors.h>
Static Public Member Functions | |
static std::string | convert (bool value) |
static bool | convert (const std::string &value, bool &result) |
static bool | convert (const std::string &value) throw ( FieldConvertError ) |
Converts boolean to/from a string.
Definition at line 332 of file FieldConvertors.h.
static bool FIX::BoolConvertor::convert | ( | const std::string & | value | ) | throw ( FieldConvertError ) [inline, static] |
Definition at line 353 of file FieldConvertors.h.
References convert().
00355 { 00356 bool result = false; 00357 if( !convert( value, result ) ) 00358 throw FieldConvertError(); 00359 else 00360 return result; 00361 }
static bool FIX::BoolConvertor::convert | ( | const std::string & | value, | |
bool & | result | |||
) | [inline, static] |
Definition at line 340 of file FieldConvertors.h.
static std::string FIX::BoolConvertor::convert | ( | bool | value | ) | [inline, static] |
Definition at line 334 of file FieldConvertors.h.
Referenced by FIX::DataDictionary::checkValidFormat(), convert(), FIX::Dictionary::getBool(), and FIX::Dictionary::setBool().