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

Field that contains a character value. More...

#include <Field.h>

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

Public Member Functions

 CharField (int field, char data)
 
 CharField (int field)
 
void setValue (char value)
 
char getValue () const throw ( IncorrectDataFormat )
 
 operator char () 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 character value.

Definition at line 378 of file Field.h.

Constructor & Destructor Documentation

◆ CharField() [1/2]

FIX::CharField::CharField ( int  field,
char  data 
)
inlineexplicit

Definition at line 381 of file Field.h.

383  : public FieldBase

◆ CharField() [2/2]

FIX::CharField::CharField ( int  field)
inline

Definition at line 383 of file Field.h.

383  : public FieldBase
384 {

Member Function Documentation

◆ getValue()

char FIX::CharField::getValue ( ) const
throw (IncorrectDataFormat
)
inline

Definition at line 388 of file Field.h.

389 : FieldBase( field, "" ) {}
390 
391  void setValue( double value, int padding = 0 )
392  { setString( DoubleConvertor::convert( value, padding ) ); }

◆ operator char()

FIX::CharField::operator char ( ) const
inline

Definition at line 393 of file Field.h.

394  { try

References FIX::DoubleConvertor::convert(), FIX::FieldBase::getString(), and FIX::FieldBase::getTag().

◆ setValue()

void FIX::CharField::setValue ( char  value)
inline

Definition at line 386 of file Field.h.

387 : FieldBase( field, DoubleConvertor::convert( data, padding ) ) {}

The documentation for this class was generated from the following file:
FIX::CharField::setValue
void setValue(char value)
Definition: Field.h:386
FIX::FieldBase::setString
void setString(const std::string &string)
Definition: Field.h:167
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:111
FIX::DoubleConvertor::convert
static std::string convert(double value, int padding=0)
Definition: FieldConvertors.h:270

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