fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::Inst::_gen Struct Reference

Static Public Member Functions

template<typename T >
static BaseField_make (const char *from, const RealmBase *db, const int rv)
 
template<typename T , typename R >
static BaseField_make (const char *from, const RealmBase *db, const int rv)
 

Detailed Description

Definition at line 2042 of file field.hpp.

Member Function Documentation

template<typename T >
static BaseField* FIX8::Inst::_gen::_make ( const char *  from,
const RealmBase db,
const int  rv 
)
inlinestatic

Instantiate a field (no realm)

Template Parameters
Ttype to instantiate
Parameters
fromsource string
dbrealm base for this type
rvrealm value
Returns
new field

Definition at line 2051 of file field.hpp.

2052  { return new T{from, db}; }
template<typename T , typename R >
static BaseField* FIX8::Inst::_gen::_make ( const char *  from,
const RealmBase db,
const int  rv 
)
inlinestatic

Instantiate a field

Template Parameters
Ttype to instantiate
Parameters
fromsource string
dbrealm base for this type
rvrealm value
Returns
new field

Definition at line 2061 of file field.hpp.

References FIX8::RealmBase::_dtype, FIX8::RealmBase::_sz, FIX8::RealmBase::dt_set, and FIX8::RealmBase::get_rlm_val().

2062  {
2063  return !db || rv < 0 || rv >= db->_sz || db->_dtype != RealmBase::dt_set
2064  ? new T(from, db) : new T(db->get_rlm_val<R>(rv), db);
2065  }

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