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

f8c internal field representation. More...

#include <f8c.hpp>

Public Member Functions

 FieldSpec (const std::string &name, FieldTrait::FieldType ftype=FieldTrait::ft_untyped)
 
virtual ~FieldSpec ()
 
void set_used ()
 

Public Attributes

std::string _name
 
std::string _description
 
std::string _comment
 
FieldTrait::FieldType _ftype
 
RealmBase::RealmType _dtype
 
unsigned _doffset
 
RealmMap_dvals
 
bool _used
 

Static Public Attributes

static const BaseTypeMap _baseTypeMap
 
static const TypeToCPP _typeToCPP
 

Detailed Description

f8c internal field representation.

Definition at line 127 of file f8c.hpp.

Constructor & Destructor Documentation

FIX8::FieldSpec::FieldSpec ( const std::string &  name,
FieldTrait::FieldType  ftype = FieldTrait::ft_untyped 
)
inline

Definition at line 140 of file f8c.hpp.

141  : _name(name), _ftype(ftype), _dtype(RealmBase::dt_set), _doffset(), _dvals(), _used() {}
RealmMap * _dvals
Definition: f8c.hpp:136
RealmBase::RealmType _dtype
Definition: f8c.hpp:134
FieldTrait::FieldType _ftype
Definition: f8c.hpp:133
std::string _name
Definition: f8c.hpp:132
unsigned _doffset
Definition: f8c.hpp:135
bool _used
Definition: f8c.hpp:138
virtual FIX8::FieldSpec::~FieldSpec ( )
inlinevirtual

Definition at line 143 of file f8c.hpp.

References _dvals.

144  {
145  if (_dvals)
146  std::for_each(_dvals->begin(), _dvals->end(), [](RealmMap::value_type& pp) { delete pp.first; });
147  delete _dvals;
148  }
RealmMap * _dvals
Definition: f8c.hpp:136

Member Function Documentation

void FIX8::FieldSpec::set_used ( )
inline

Definition at line 150 of file f8c.hpp.

150 { _used = true; }
bool _used
Definition: f8c.hpp:138

Member Data Documentation

const BaseTypeMap FIX8::FieldSpec::_baseTypeMap
static

Definition at line 129 of file f8c.hpp.

std::string FIX8::FieldSpec::_comment

Definition at line 132 of file f8c.hpp.

std::string FIX8::FieldSpec::_description

Definition at line 132 of file f8c.hpp.

unsigned FIX8::FieldSpec::_doffset

Definition at line 135 of file f8c.hpp.

RealmBase::RealmType FIX8::FieldSpec::_dtype

Definition at line 134 of file f8c.hpp.

RealmMap* FIX8::FieldSpec::_dvals

Definition at line 136 of file f8c.hpp.

Referenced by ~FieldSpec().

FieldTrait::FieldType FIX8::FieldSpec::_ftype

Definition at line 133 of file f8c.hpp.

std::string FIX8::FieldSpec::_name

Definition at line 132 of file f8c.hpp.

const TypeToCPP FIX8::FieldSpec::_typeToCPP
static

Definition at line 130 of file f8c.hpp.

bool FIX8::FieldSpec::_used
mutable

Definition at line 138 of file f8c.hpp.


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