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

Field that contains a UTC date value. More...

#include <Field.h>

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

Public Member Functions

 UtcDateField (int field, const UtcDate &data)
 
 UtcDateField (int field)
 
void setValue (const UtcDate &value)
 
UtcDate getValue () const throw ( IncorrectDataFormat )
 
 operator UtcDate () const
 
bool operator< (const UtcDateField &rhs) const
 
bool operator== (const UtcDateField &rhs) const
 
bool operator!= (const UtcDateField &rhs) 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...
 
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 UTC date value.

Definition at line 419 of file Field.h.

Constructor & Destructor Documentation

◆ UtcDateField() [1/2]

FIX::UtcDateField::UtcDateField ( int  field,
const UtcDate data 
)
inlineexplicit

Definition at line 422 of file Field.h.

423 : FieldBase( field, UtcDateConvertor::convert( data ) ) {}
static std::string convert(const UtcDate &value)
FieldBase(int field, 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:76

◆ UtcDateField() [2/2]

FIX::UtcDateField::UtcDateField ( int  field)
inline

Definition at line 424 of file Field.h.

425 : FieldBase( field, UtcDateConvertor::convert( UtcDate() ) ) {}
static std::string convert(const UtcDate &value)
FieldBase(int field, 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:76

Member Function Documentation

◆ getValue()

UtcDate FIX::UtcDateField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 429 of file Field.h.

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

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

430  { try
431  { return UtcDateConvertor::convert( getString() ); }
432  catch( FieldConvertError& )
433  { throw IncorrectDataFormat( getField(), getString() ); } }
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:112
int getField() const
Get the fields integer tag.
Definition: Field.h:108
static std::string convert(const UtcDate &value)

◆ operator UtcDate()

FIX::UtcDateField::operator UtcDate ( ) const
inline

Definition at line 434 of file Field.h.

435  { return getValue(); }
UtcDate getValue() const
Definition: Field.h:429

◆ operator!=()

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

Definition at line 441 of file Field.h.

References getValue().

442  { return getValue() != rhs.getValue(); }
UtcDate getValue() const
Definition: Field.h:429

◆ operator<()

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

Definition at line 437 of file Field.h.

References getValue().

438  { return getValue() < rhs.getValue(); }
UtcDate getValue() const
Definition: Field.h:429

◆ operator==()

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

Definition at line 439 of file Field.h.

References getValue().

440  { return getValue() == rhs.getValue(); }
UtcDate getValue() const
Definition: Field.h:429

◆ setValue()

void FIX::UtcDateField::setValue ( const UtcDate value)
inline

Definition at line 427 of file Field.h.

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

428  { setString( UtcDateConvertor::convert( value ) ); }
static std::string convert(const UtcDate &value)
void setString(const std::string &string)
Definition: Field.h:100

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

Generated on Thu Sep 5 2019 11:07:58 for QuickFIX by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2001