Public Member Functions | List of all members
FIX::CharField Class Reference

Field that contains a character value. More...

#include <Field.h>

Inheritance diagram for FIX::CharField:
Inheritance graph
[legend]
Collaboration diagram for FIX::CharField:
Collaboration graph
[legend]

Public Member Functions

 CharField (int field, char data)
 
 CharField (int field)
 
void setValue (char value)
 
char getValue () const throw ( IncorrectDataFormat )
 
 operator char () const
 
- Public Member Functions inherited from FIX::FieldBase
 FieldBase (int field, const std::string &string)
 
virtual ~FieldBase ()
 
void setField (int field)
 
void setString (const std::string &string)
 
int getField () const
 Get the fields integer tag. More...
 
const std::string & getString () const
 Get the string representation of the fields value. More...
 
const std::string & getFixString () const
 Get the string representation of the Field (i.e.) 55=MSFT[SOH]. More...
 
int getLength () const
 Get the length of the fields string representation. More...
 
int getTotal () const
 Get the total value the fields characters added together. More...
 
bool operator< (const FieldBase &field) const
 Compares fields based on thier tag numbers. More...
 

Detailed Description

Field that contains a character value.

Definition at line 249 of file Field.h.

Constructor & Destructor Documentation

FIX::CharField::CharField ( int  field,
char  data 
)
inlineexplicit

Definition at line 252 of file Field.h.

253 : FieldBase( field, CharConvertor::convert( data ) ) {}
static std::string convert(char value)
FieldBase(int field, const std::string &string)
Definition: Field.h:49
FIX::CharField::CharField ( int  field)
inline

Definition at line 254 of file Field.h.

255 : FieldBase( field, "" ) {}
FieldBase(int field, const std::string &string)
Definition: Field.h:49

Member Function Documentation

char FIX::CharField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 259 of file Field.h.

References FIX::CharConvertor::convert(), FIX::FieldBase::getField(), and FIX::FieldBase::getString().

Referenced by operator char().

260  { try
261  { return CharConvertor::convert( getString() ); }
262  catch( FieldConvertError& )
263  { throw IncorrectDataFormat( getField(), getString() ); } }
static std::string convert(char value)
int getField() const
Get the fields integer tag.
Definition: Field.h:69
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
FIX::CharField::operator char ( ) const
inline

Definition at line 264 of file Field.h.

References getValue().

265  { return getValue(); }
char getValue() const
Definition: Field.h:259
void FIX::CharField::setValue ( char  value)
inline

Definition at line 257 of file Field.h.

References FIX::CharConvertor::convert(), and FIX::FieldBase::setString().

258  { setString( CharConvertor::convert( value ) ); }
static std::string convert(char value)
void setString(const std::string &string)
Definition: Field.h:62

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

Generated on Sat Mar 29 2014 15:13:34 for QuickFIX by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2001