fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::Field< Length, field > Class Template Reference

Partial specialisation for Length field type. More...

#include <field.hpp>

Inheritance diagram for FIX8::Field< Length, field >:
FIX8::Field< int, field > FIX8::BaseField

Public Member Functions

 Field ()
 Ctor. Compiler won't supply this method. More...
 
 Field (unsigned val, const RealmBase *rlm=nullptr)
 
 Field (const Field &from)
 Copy Ctor. More...
 
 Field (const f8String &from, const RealmBase *rlm=nullptr)
 
 Field (const char *from, const RealmBase *rlm=nullptr)
 
 ~Field ()
 Dtor. More...
 
- Public Member Functions inherited from FIX8::Field< int, field >
FieldTrait::FieldType get_underlying_type () const
 The FieldType. More...
 
 Field ()
 Ctor. More...
 
 Field (const Field &from)
 Copy Ctor. More...
 
 Field (const int val, const RealmBase *rlm=nullptr)
 
 Field (const f8String &from, const RealmBase *rlm=nullptr)
 
 Field (const char *from, const RealmBase *rlm=nullptr)
 
Fieldoperator= (const Field &that)
 Assignment operator. More...
 
bool operator== (const BaseField &that) const
 Equivalence operator. More...
 
bool operator< (const BaseField &that) const
 Less than operator. More...
 
bool operator> (const BaseField &that) const
 Greater than operator. More...
 
bool is_valid () const
 
int get_rlm_idx () const
 
const int & get () const
 
const int & operator() () const
 
const int & set (const int &from)
 
const int & set_from_raw (const f8String &from)
 
Fieldcopy ()
 
std::ostream & print (std::ostream &os) const
 
size_t print (char *to) const
 
- Public Member Functions inherited from FIX8::BaseField
 BaseField (unsigned short fnum, const RealmBase *rlm=nullptr)
 
virtual ~BaseField ()
 Dtor. More...
 
unsigned short get_tag () const
 
template<typename T >
T & from ()
 
template<typename T >
const T * as () const
 
size_t encode (std::ostream &os) const
 
size_t encode (char *to) const
 
bool same_base (const BaseField &that) const
 BaseField Equivalence test. More...
 
bool operator!= (const BaseField &that) const
 Inequivalence operator. More...
 
bool operator<= (const BaseField &that) const
 Less or equal to operator. More...
 
bool operator>= (const BaseField &that) const
 Greater or equal to operator. More...
 
const RealmBaseget_realm () const
 

Additional Inherited Members

- Static Public Member Functions inherited from FIX8::Field< int, field >
static unsigned short get_field_id ()
 Get the FIX fieldID (tag number). More...
 
- Protected Attributes inherited from FIX8::Field< int, field >
int _value
 
- Protected Attributes inherited from FIX8::BaseField
const RealmBase_rlm
 
- Static Protected Attributes inherited from FIX8::Field< int, field >
static const FieldTrait::FieldType _ftype = FieldTrait::ft_int
 

Detailed Description

template<unsigned short field>
class FIX8::Field< Length, field >

Partial specialisation for Length field type.

Template Parameters
fieldfield number (fix tag)

Definition at line 1740 of file field.hpp.

Constructor & Destructor Documentation

template<unsigned short field>
FIX8::Field< Length, field >::Field ( )
inline

Ctor. Compiler won't supply this method.

Definition at line 1744 of file field.hpp.

1744 : Field<int, field>() {}
template<unsigned short field>
FIX8::Field< Length, field >::Field ( unsigned  val,
const RealmBase rlm = nullptr 
)
inline

Value ctor.

Parameters
valvalue to set
rlmpointer to the realmbase for this field (if available)

Definition at line 1749 of file field.hpp.

1749 : Field<int, field>(val, rlm) {}
template<unsigned short field>
FIX8::Field< Length, field >::Field ( const Field< Length, field > &  from)
inline

Copy Ctor.

Definition at line 1753 of file field.hpp.

1753 : Field<int, field>(from) {}
template<unsigned short field>
FIX8::Field< Length, field >::Field ( const f8String from,
const RealmBase rlm = nullptr 
)
inline

Construct from string ctor.

Parameters
fromstring to construct field from
rlmpointer to the realmbase for this field (if available)

Definition at line 1758 of file field.hpp.

1758 : Field<int, field>(from.c_str(), rlm) {}
template<unsigned short field>
FIX8::Field< Length, field >::Field ( const char *  from,
const RealmBase rlm = nullptr 
)
inline

Construct from char * ctor.

Parameters
fromchar * to construct field from
rlmpointer to the realmbase for this field (if available)

Definition at line 1763 of file field.hpp.

1763 : Field<int, field>(from, rlm) {}
template<unsigned short field>
FIX8::Field< Length, field >::~Field ( )
inlinevirtual

Dtor.

Reimplemented from FIX8::Field< int, field >.

Definition at line 1766 of file field.hpp.

1766 {}

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