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 tag, const std::string &string)
 
virtual ~FieldBase ()
 
 FieldBase (const FieldBase &rhs)
 
FieldBaseoperator= (const FieldBase &rhs)
 
void swap (FieldBase &rhs)
 
void setTag (int tag)
 
void setField (int field)
 
void setString (const std::string &string)
 
int getTag () const
 Get the fields integer tag. More...
 
int getField () const
 
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...
 
size_t 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 their tag numbers. More...
 

Detailed Description

Field that contains an integer value.

Definition at line 418 of file Field.h.

Constructor & Destructor Documentation

◆ IntField() [1/2]

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

Definition at line 421 of file Field.h.

423  : public FieldBase

◆ IntField() [2/2]

FIX::IntField::IntField ( int  field)
inline

Definition at line 423 of file Field.h.

423  : public FieldBase
424 {

Member Function Documentation

◆ getValue()

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

Definition at line 428 of file Field.h.

429 : FieldBase( field, "" ) {}
430 
431  void setValue( bool value )
432  { setString( BoolConvertor::convert( value ) ); }

◆ operator const int()

FIX::IntField::operator const int ( ) const
inline

Definition at line 433 of file Field.h.

434  { try

References FIX::BoolConvertor::convert(), FIX::FieldBase::getString(), and FIX::FieldBase::getTag().

◆ setValue()

void FIX::IntField::setValue ( int  value)
inline

Definition at line 426 of file Field.h.

427 : FieldBase( field, BoolConvertor::convert( data ) ) {}

The documentation for this class was generated from the following file:
FIX::IntField::setValue
void setValue(int value)
Definition: Field.h:426
FIX::FieldBase::setString
void setString(const std::string &string)
Definition: Field.h:167
FIX::BoolConvertor::convert
static std::string convert(bool value)
Definition: FieldConvertors.h:416
FIX::FieldBase::FieldBase
FieldBase(int tag, std::string::const_iterator valueStart, std::string::const_iterator valueEnd, std::string::const_iterator tagStart, std::string::const_iterator tagEnd)
Constructor which also calculates field metrics.
Definition: Field.h:111

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