Public Member Functions | Private Attributes | List of all members
FIX::FieldBase::field_metrics Class Reference

Class used to store field metrics like total length and checksum. More...

Public Member Functions

 field_metrics (const size_t length, const int checksum)
 
size_t getLength () const
 
int getCheckSum () const
 
bool isValid () const
 

Private Attributes

size_t m_length
 
int m_checksum
 

Detailed Description

Class used to store field metrics like total length and checksum.

Definition at line 53 of file Field.h.

Constructor & Destructor Documentation

◆ field_metrics()

FIX::FieldBase::field_metrics::field_metrics ( const size_t  length,
const int  checksum 
)
inline

Definition at line 57 of file Field.h.

Referenced by FIX::FieldBase::calculateMetrics(), and FIX::FieldBase::no_metrics().

58  : m_length( length )
59  , m_checksum( checksum )
60  {}

Member Function Documentation

◆ getCheckSum()

int FIX::FieldBase::field_metrics::getCheckSum ( ) const
inline

Definition at line 65 of file Field.h.

References m_checksum.

Referenced by FIX::FieldBase::getTotal().

66  { return m_checksum; }

◆ getLength()

size_t FIX::FieldBase::field_metrics::getLength ( ) const
inline

Definition at line 62 of file Field.h.

References m_length.

Referenced by FIX::FieldBase::getLength().

63  { return m_length; }

◆ isValid()

bool FIX::FieldBase::field_metrics::isValid ( ) const
inline

Definition at line 68 of file Field.h.

References m_length.

Referenced by FIX::FieldBase::calculate().

69  { return m_length > 0; }

Member Data Documentation

◆ m_checksum

int FIX::FieldBase::field_metrics::m_checksum
private

Definition at line 74 of file Field.h.

Referenced by getCheckSum().

◆ m_length

size_t FIX::FieldBase::field_metrics::m_length
private

Definition at line 73 of file Field.h.

Referenced by getLength(), and isValid().


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

Generated on Sun Apr 15 2018 21:44:05 for QuickFIX by doxygen 1.8.13 written by Dimitri van Heesch, © 1997-2001