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

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

#include <Field.h>

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

Public Member Functions

 UtcTimeOnlyField (int field, const UtcTimeOnly &data, int precision=0)
 
 UtcTimeOnlyField (int field, int precision=0)
 
void setValue (const UtcTimeOnly &value)
 
UtcTimeOnly getValue () const throw ( IncorrectDataFormat )
 
 operator UtcTimeOnly () const
 
bool operator< (const UtcTimeOnlyField &rhs) const
 
bool operator== (const UtcTimeOnlyField &rhs) const
 
bool operator!= (const UtcTimeOnlyField &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 time value.

Definition at line 514 of file Field.h.

Constructor & Destructor Documentation

◆ UtcTimeOnlyField() [1/2]

FIX::UtcTimeOnlyField::UtcTimeOnlyField ( int  field,
const UtcTimeOnly data,
int  precision = 0 
)
inlineexplicit

Definition at line 517 of file Field.h.

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

References getValue().

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

◆ UtcTimeOnlyField() [2/2]

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

Definition at line 519 of file Field.h.

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

References getValue().

Member Function Documentation

◆ getValue()

UtcTimeOnly FIX::UtcTimeOnlyField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 524 of file Field.h.

524  : public FieldBase
525 {
526 public:
527  explicit CheckSumField( int field, int data )
528 : FieldBase( field, CheckSumConvertor::convert( data ) ) {}

References FIX::CheckSumField::CheckSumField(), FIX::CheckSumConvertor::convert(), and FIX::FieldBase::FieldBase().

Referenced by UtcTimeOnlyField().

◆ operator UtcTimeOnly()

FIX::UtcTimeOnlyField::operator UtcTimeOnly ( ) const
inline

Definition at line 529 of file Field.h.

530 : FieldBase( field, "" ) {}

◆ operator!=()

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

Definition at line 536 of file Field.h.

536  { return CheckSumConvertor::convert( getString() ); }
537  catch( FieldConvertError& )

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

◆ operator<()

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

Definition at line 532 of file Field.h.

533  { setString( CheckSumConvertor::convert( value ) ); }

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

◆ operator==()

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

Definition at line 534 of file Field.h.

535  { try

◆ setValue()

void FIX::UtcTimeOnlyField::setValue ( const UtcTimeOnly value)
inline

Definition at line 522 of file Field.h.

524  : public FieldBase

The documentation for this class was generated from the following file:
FIX::FieldBase::setString
void setString(const std::string &string)
Definition: Field.h:170
FIX::CheckSumConvertor::convert
static std::string convert(int value)
Definition: FieldConvertors.h:231
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::UtcTimeOnlyField::getValue
UtcTimeOnly getValue() const
Definition: Field.h:524
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