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

Definition at line 487 of file Field.h.

Constructor & Destructor Documentation

◆ UtcDateField() [1/2]

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

Definition at line 490 of file Field.h.

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

References getValue().

Referenced by FIX::UtcTimeStampField::getValue().

◆ UtcDateField() [2/2]

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

Definition at line 492 of file Field.h.

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

References getValue().

Member Function Documentation

◆ getValue()

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

Definition at line 497 of file Field.h.

497  : public FieldBase
498 {
499 public:
500  explicit UtcTimeOnlyField( int field, const UtcTimeOnly& data, int precision = 0 )
501 : FieldBase( field, UtcTimeOnlyConvertor::convert( data, precision ) ) {}

References FIX::UtcTimeOnlyConvertor::convert(), FIX::FieldBase::FieldBase(), and FIX::UtcTimeOnlyField::UtcTimeOnlyField().

Referenced by UtcDateField().

◆ operator UtcDate()

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

Definition at line 502 of file Field.h.

503 : FieldBase( field, UtcTimeOnlyConvertor::convert( UtcTimeOnly(), precision ) ) {}

◆ operator!=()

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

Definition at line 509 of file Field.h.

510  catch( FieldConvertError& )

References FIX::UtcTimeOnlyConvertor::convert(), and FIX::FieldBase::getString().

◆ operator<()

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

Definition at line 505 of file Field.h.

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

◆ operator==()

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

Definition at line 507 of file Field.h.

508  { try

◆ setValue()

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

Definition at line 495 of file Field.h.

497  : public FieldBase

The documentation for this class was generated from the following file:
FIX::TYPE::UtcTimeOnly
@ UtcTimeOnly
Definition: FieldTypes.h:950
FIX::UtcDateField::getValue
UtcDate getValue() const
Definition: Field.h:497
FIX::FieldBase::setString
void setString(const std::string &string)
Definition: Field.h:170
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:114
FIX::UtcTimeOnlyConvertor::convert
static std::string convert(const UtcTimeOnly &value, int precision=0)
Definition: FieldConvertors.h:565
FIX::FieldBase::getString
const std::string & getString() const
Get the string representation of the fields value.
Definition: Field.h:186

Generated on Wed Apr 29 2020 19:41:30 for QuickFIX by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2001