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...
 
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 a UTC date value.

Definition at line 356 of file Field.h.

Constructor & Destructor Documentation

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

Definition at line 359 of file Field.h.

360 : FieldBase( field, UtcDateConvertor::convert( data ) ) {}
FieldBase(int field, const std::string &string)
Definition: Field.h:49
static std::string convert(const UtcDate &value)
FIX::UtcDateField::UtcDateField ( int  field)
inline

Definition at line 361 of file Field.h.

362 : FieldBase( field, UtcDateConvertor::convert( UtcDate() ) ) {}
FieldBase(int field, const std::string &string)
Definition: Field.h:49
static std::string convert(const UtcDate &value)

Member Function Documentation

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

Definition at line 366 of file Field.h.

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

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

367  { try
368  { return UtcDateConvertor::convert( getString() ); }
369  catch( FieldConvertError& )
370  { throw IncorrectDataFormat( getField(), getString() ); } }
int getField() const
Get the fields integer tag.
Definition: Field.h:69
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:73
static std::string convert(const UtcDate &value)
FIX::UtcDateField::operator UtcDate ( ) const
inline

Definition at line 371 of file Field.h.

References getValue().

372  { return getValue(); }
UtcDate getValue() const
Definition: Field.h:366
bool FIX::UtcDateField::operator!= ( const UtcDateField rhs) const
inline

Definition at line 378 of file Field.h.

References getValue().

379  { return getValue() != rhs.getValue(); }
UtcDate getValue() const
Definition: Field.h:366
bool FIX::UtcDateField::operator< ( const UtcDateField rhs) const
inline

Definition at line 374 of file Field.h.

References getValue().

375  { return getValue() < rhs.getValue(); }
UtcDate getValue() const
Definition: Field.h:366
bool FIX::UtcDateField::operator== ( const UtcDateField rhs) const
inline

Definition at line 376 of file Field.h.

References getValue().

377  { return getValue() == rhs.getValue(); }
UtcDate getValue() const
Definition: Field.h:366
void FIX::UtcDateField::setValue ( const UtcDate value)
inline

Definition at line 364 of file Field.h.

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

365  { setString( UtcDateConvertor::convert( value ) ); }
static std::string convert(const UtcDate &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