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

Field that contains an integer value. More...

#include <Field.h>

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

Public Member Functions

 IntField (int field, int data)
 
 IntField (int field)
 
void setValue (int value)
 
int getValue () const throw ( IncorrectDataFormat )
 
 operator const int () 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 an integer value.

Definition at line 289 of file Field.h.

Constructor & Destructor Documentation

FIX::IntField::IntField ( int  field,
int  data 
)
inlineexplicit

Definition at line 292 of file Field.h.

293 : FieldBase( field, IntConvertor::convert( data ) ) {}
FieldBase(int field, const std::string &string)
Definition: Field.h:49
static std::string convert(signed_int value)
FIX::IntField::IntField ( int  field)
inline

Definition at line 294 of file Field.h.

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

Member Function Documentation

int FIX::IntField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 299 of file Field.h.

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

Referenced by operator const int().

300  { try
301  { return IntConvertor::convert( getString() ); }
302  catch( FieldConvertError& )
303  { throw IncorrectDataFormat( getField(), getString() ); } }
int getField() const
Get the fields integer tag.
Definition: Field.h:69
static std::string convert(signed_int value)
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
FIX::IntField::operator const int ( ) const
inline

Definition at line 304 of file Field.h.

References getValue().

305  { return getValue(); }
int getValue() const
Definition: Field.h:299
void FIX::IntField::setValue ( int  value)
inline

Definition at line 297 of file Field.h.

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

298  { setString( IntConvertor::convert( value ) ); }
static std::string convert(signed_int 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