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 416 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 437 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 
444  integer_to_string_padded( result, 4, year);
445  integer_to_string_padded( result + 4, 2, month );

References FIX::integer_to_string_padded().

◆ convert() [3/3]

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

Definition at line 424 of file FieldConvertors.h.

433 {
434  static std::string convert( const UtcTimeStamp& value,
435  int precision = 0 )

The documentation for this struct was generated from the following file:
FIX::TYPE::UtcTimeStamp
@ UtcTimeStamp
Definition: FieldTypes.h:940
FIX::integer_to_string_padded
char * integer_to_string_padded(char *buf, const size_t len, signed_int t, const char paddingChar='0')
Definition: FieldConvertors.h:149
FIX::BoolConvertor::convert
static std::string convert(bool value)
Definition: FieldConvertors.h:418

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001