Static Public Member Functions | List of all members
FIX::BoolConvertor Struct Reference

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 )
 

Detailed Description

Converts boolean to/from a string.

Definition at line 414 of file FieldConvertors.h.

Member Function Documentation

◆ convert() [1/3]

static std::string FIX::BoolConvertor::convert ( bool  value)
inlinestatic

◆ convert() [2/3]

static bool FIX::BoolConvertor::convert ( const std::string &  value)
throw (FieldConvertError
)
inlinestatic

Definition at line 435 of file FieldConvertors.h.

437  {
438  char result[ 17+10 ]; // Maximum
439  int year, month, day, hour, minute, second, fraction;
440 
441  value.getYMD( year, month, day );
442  value.getHMS( hour, minute, second, fraction, precision );
443 

References FIX::integer_to_string_padded().

◆ convert() [3/3]

static bool FIX::BoolConvertor::convert ( const std::string &  value,
bool &  result 
)
inlinestatic

Definition at line 422 of file FieldConvertors.h.

422  {
423  bool result = false;
424  if( !convert( value, result ) )
425  throw FieldConvertError(value);
426  else
427  return result;
428  }
429 };
430 
432 struct UtcTimeStampConvertor
433 {

References convert().


The documentation for this struct was generated from the following file:
FIX::BoolConvertor::convert
static std::string convert(bool value)
Definition: FieldConvertors.h:416

Generated on Thu Apr 23 2020 04:32:03 for QuickFIX by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2001