fix8
version 1.4.0
Open Source C++ FIX Framework
|
Domain range/set static metadata base class. More...
#include <field.hpp>
Public Types | |
enum | RealmType { dt_range, dt_set } |
Public Member Functions | |
RealmBase (const void *range, RealmType dtype, FieldTrait::FieldType ftype, int sz, const char *const *descriptions) | |
template<typename T > | |
bool | is_valid (const T &what) const |
template<typename T > | |
const T & | get_rlm_val (const int idx) const |
template<typename T > | |
int | get_rlm_idx (const T &what) const |
template<typename T > | |
std::ostream & | _print (std::ostream &os, int idx) const |
std::ostream & | print (std::ostream &os, int idx) const |
Public Attributes | |
const void * | _range |
RealmType | _dtype |
FieldTrait::FieldType | _ftype |
const int | _sz |
const char *const * | _descriptions |
Enumerator | |
---|---|
dt_range | |
dt_set |
Definition at line 60 of file field.hpp.
|
inline |
|
inline |
|
inline |
Get the realm index of this value in the domain set.
T | domain type |
what | the value to check |
Definition at line 94 of file field.hpp.
References dt_set.
Referenced by FIX8::Field< int, field >::get_rlm_idx(), FIX8::Field< f8String, field >::get_rlm_idx(), FIX8::Field< fp_type, field >::get_rlm_idx(), FIX8::Field< char, field >::get_rlm_idx(), and FIX8::Field< Boolean, field >::get_rlm_idx().
|
inline |
Get the realm value with the specified index
T | domain type |
idx | of value |
Definition at line 87 of file field.hpp.
References _range.
Referenced by FIX8::Inst::_gen::_make().
|
inline |
Check if this value is a member/in range of the domain set.
T | domain type |
what | the value to check |
Definition at line 76 of file field.hpp.
References dt_set.
Referenced by FIX8::Field< int, field >::is_valid(), FIX8::Field< f8String, field >::is_valid(), FIX8::Field< fp_type, field >::is_valid(), and FIX8::Field< char, field >::is_valid().
|
inline |
Print the given value by index to the supplied stream
os | output stream |
idx | index of value in range |
Definition at line 116 of file field.hpp.
References FIX8::FieldTrait::is_char(), FIX8::FieldTrait::is_float(), FIX8::FieldTrait::is_int(), and FIX8::FieldTrait::is_string().
Referenced by FIX8::ConsoleMenu::SelectRealm().
const char* const* FIX8::RealmBase::_descriptions |
Definition at line 66 of file field.hpp.
Referenced by FIX8::ConsoleMenu::SelectRealm().
RealmType FIX8::RealmBase::_dtype |
Definition at line 63 of file field.hpp.
Referenced by FIX8::Inst::_gen::_make().
FieldTrait::FieldType FIX8::RealmBase::_ftype |
const void* FIX8::RealmBase::_range |
Definition at line 62 of file field.hpp.
Referenced by _print(), and get_rlm_val().
const int FIX8::RealmBase::_sz |
Definition at line 65 of file field.hpp.
Referenced by FIX8::Inst::_gen::_make(), and FIX8::ConsoleMenu::SelectRealm().