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

Field that contains a double value. More...

#include <Field.h>

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

Public Member Functions

 DoubleField (int field, double data, int padding=0)
 
 DoubleField (int field)
 
void setValue (double value, int padding=0)
 
double getValue () const throw ( IncorrectDataFormat )
 
 operator double () 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 a double value.

Definition at line 398 of file Field.h.

Constructor & Destructor Documentation

◆ DoubleField() [1/2]

FIX::DoubleField::DoubleField ( int  field,
double  data,
int  padding = 0 
)
inlineexplicit

Definition at line 401 of file Field.h.

403  : public FieldBase

◆ DoubleField() [2/2]

FIX::DoubleField::DoubleField ( int  field)
inline

Definition at line 403 of file Field.h.

403  : public FieldBase
404 {

Member Function Documentation

◆ getValue()

double FIX::DoubleField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 408 of file Field.h.

409 : FieldBase( field, "" ) {}
410 
411  void setValue( int value )
412  { setString( IntConvertor::convert( value ) ); }

◆ operator double()

FIX::DoubleField::operator double ( ) const
inline

Definition at line 413 of file Field.h.

414  { try

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

◆ setValue()

void FIX::DoubleField::setValue ( double  value,
int  padding = 0 
)
inline

Definition at line 406 of file Field.h.

407 : FieldBase( field, IntConvertor::convert( data ) ) {}

The documentation for this class was generated from the following file:
FIX::DoubleField::setValue
void setValue(double value, int padding=0)
Definition: Field.h:406
FIX::IntConvertor::convert
static std::string convert(signed_int value)
Definition: FieldConvertors.h:168
FIX::FieldBase::setString
void setString(const std::string &string)
Definition: Field.h:167
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 Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2001