Static Public Member Functions
FIX::CharConvertor Struct Reference

Converts character to/from a string. More...

#include <FieldConvertors.h>

List of all members.

Static Public Member Functions

static std::string convert (char value)
static bool convert (const std::string &value, char &result)
static char convert (const std::string &value) throw ( FieldConvertError )

Detailed Description

Converts character to/from a string.

Definition at line 504 of file FieldConvertors.h.


Member Function Documentation

static std::string FIX::CharConvertor::convert ( char  value) [inline, static]

Definition at line 506 of file FieldConvertors.h.

Referenced by FIX::DataDictionary::checkValidFormat(), convert(), FIX::CharField::getValue(), and FIX::CharField::setValue().

  {
    if( value == '\0' ) return "";
    return std::string( 1, value );
  }
static bool FIX::CharConvertor::convert ( const std::string &  value,
char &  result 
) [inline, static]

Definition at line 512 of file FieldConvertors.h.

  {
    if( value.size() != 1 ) return false;
    result = value[0];
    return true;
  }
static char FIX::CharConvertor::convert ( const std::string &  value) throw ( FieldConvertError ) [inline, static]

Definition at line 519 of file FieldConvertors.h.

References convert().

  {
    char result = '\0';
    if( !convert( value, result ) )
      throw FieldConvertError(value);
    else
      return result;
  }

The documentation for this struct was generated from the following file:

Generated on Mon Sep 15 2014 01:23:57 for QuickFIX by doxygen 1.7.6.1 written by Dimitri van Heesch, © 1997-2001