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

Field that contains a UTC time stamp value. More...

#include <Field.h>

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

Public Member Functions

 UtcTimeStampField (int field, const UtcTimeStamp &data, int precision=0)
 
 UtcTimeStampField (int field, int precision=0)
 
void setValue (const UtcTimeStamp &value)
 
UtcTimeStamp getValue () const throw ( IncorrectDataFormat )
 
 operator UtcTimeStamp () const
 
bool operator< (const UtcTimeStampField &rhs) const
 
bool operator== (const UtcTimeStampField &rhs) const
 
bool operator!= (const UtcTimeStampField &rhs) 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.
 
int getField () const
 
const std::string & getString () const
 Get the string representation of the fields value.
 
const std::string & getFixString () const
 Get the string representation of the Field (i.e.) 55=MSFT[SOH].
 
size_t getLength () const
 Get the length of the fields string representation.
 
int getTotal () const
 Get the total value the fields characters added together.
 
bool operator< (const FieldBase &field) const
 Compares fields based on their tag numbers.
 

Detailed Description

Field that contains a UTC time stamp value.

Definition at line 443 of file Field.h.

Constructor & Destructor Documentation

◆ UtcTimeStampField() [1/2]

FIX::UtcTimeStampField::UtcTimeStampField ( int  field,
const UtcTimeStamp data,
int  precision = 0 
)
inlineexplicit

Definition at line 446 of file Field.h.

447: FieldBase( field, UtcTimeStampConvertor::convert( data, precision ) ) {}
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:80
static std::string convert(const UtcTimeStamp &value, int precision=0)

◆ UtcTimeStampField() [2/2]

FIX::UtcTimeStampField::UtcTimeStampField ( int  field,
int  precision = 0 
)
inline

Definition at line 448 of file Field.h.

449: FieldBase( field, UtcTimeStampConvertor::convert( UtcTimeStamp(), precision ) ) {}

Member Function Documentation

◆ getValue()

UtcTimeStamp FIX::UtcTimeStampField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 453 of file Field.h.

454 { try
456 catch( FieldConvertError& )
457 { throw IncorrectDataFormat( getTag(), getString() ); } }
const std::string & getString() const
Get the string representation of the fields value.
Definition Field.h:152
int getTag() const
Get the fields integer tag.
Definition Field.h:144

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

Referenced by operator UtcTimeStamp(), operator!=(), operator<(), and operator==().

◆ operator UtcTimeStamp()

FIX::UtcTimeStampField::operator UtcTimeStamp ( ) const
inline

Definition at line 458 of file Field.h.

459 { return getValue(); }
UtcTimeStamp getValue() const
Definition Field.h:453

References getValue().

◆ operator!=()

bool FIX::UtcTimeStampField::operator!= ( const UtcTimeStampField rhs) const
inline

Definition at line 465 of file Field.h.

466 { return getValue() != rhs.getValue(); }

References getValue().

◆ operator<()

bool FIX::UtcTimeStampField::operator< ( const UtcTimeStampField rhs) const
inline

Definition at line 461 of file Field.h.

462 { return getValue() < rhs.getValue(); }

References getValue().

◆ operator==()

bool FIX::UtcTimeStampField::operator== ( const UtcTimeStampField rhs) const
inline

Definition at line 463 of file Field.h.

464 { return getValue() == rhs.getValue(); }

References getValue().

◆ setValue()

void FIX::UtcTimeStampField::setValue ( const UtcTimeStamp value)
inline

Definition at line 451 of file Field.h.

void setString(const std::string &string)
Definition Field.h:136

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


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

Generated on Mon Oct 14 2024 06:04:44 for QuickFIX by doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2001