fix8  version 1.4.0
Open Source C++ FIX Framework
FIX8::RealmObject Class Referenceabstract

f8c range or set domain realm. More...

#include <f8c.hpp>

Inheritance diagram for FIX8::RealmObject:
FIX8::TypedRealm< T > FIX8::TypedRealm< char > FIX8::TypedRealm< std::string > FIX8::CharRealm FIX8::StringRealm


struct  less

Public Member Functions

 RealmObject (bool isRange)
virtual ~RealmObject ()
bool is_range () const

Static Public Member Functions

static RealmObjectcreate (const std::string &from, FieldTrait::FieldType ftype, bool isRange=false)

Protected Member Functions

virtual bool comp (const RealmObject *p1, const RealmObject *p2)=0
virtual void print (std::ostream &os)=0

Private Attributes

bool _isRange


std::ostream & operator<< (std::ostream &os, RealmObject &what)

Detailed Description

f8c range or set domain realm.

Definition at line 58 of file f8c.hpp.

Constructor & Destructor Documentation

FIX8::RealmObject::RealmObject ( bool  isRange)

Definition at line 73 of file f8c.hpp.

73 : _isRange(isRange) {}
bool _isRange
Definition: f8c.hpp:60
virtual FIX8::RealmObject::~RealmObject ( )

Definition at line 74 of file f8c.hpp.

74 {}

Member Function Documentation

virtual bool FIX8::RealmObject::comp ( const RealmObject p1,
const RealmObject p2 
protectedpure virtual
RealmObject * RealmObject::create ( const std::string &  from,
FieldTrait::FieldType  ftype,
bool  isRange = false 

Definition at line 362 of file f8cutils.cpp.

363 {
364  if (FieldTrait::is_int(ftype))
365  return new TypedRealm<int>(stoi(from), isRange);
366  if (FieldTrait::is_char(ftype))
367  return new CharRealm(from[0], isRange);
368  if (FieldTrait::is_float(ftype))
369  return new TypedRealm<fp_type>(get_value<fp_type>(from), isRange);
370  if (FieldTrait::is_string(ftype))
371  return new StringRealm(from, isRange);
372  return nullptr;
373 }
static bool is_char(FieldType ftype)
Definition: traits.hpp:88
f8c character realm type.
Definition: f8c.hpp:109
static bool is_float(FieldType ftype)
Definition: traits.hpp:93
f8c string realm type.
Definition: f8c.hpp:102
static bool is_int(FieldType ftype)
Definition: traits.hpp:83
static bool is_string(FieldType ftype)
Definition: traits.hpp:98
f8c typed realm.
Definition: f8c.hpp:89
bool FIX8::RealmObject::is_range ( ) const

Definition at line 76 of file f8c.hpp.

References _isRange.

76 { return _isRange; }
bool _isRange
Definition: f8c.hpp:60
virtual void FIX8::RealmObject::print ( std::ostream &  os)
protectedpure virtual

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  os,
RealmObject what 

Definition at line 64 of file f8c.hpp.

65  {
66  what.print(os);
67  return os;
68  }

Member Data Documentation

bool FIX8::RealmObject::_isRange

Definition at line 60 of file f8c.hpp.

Referenced by is_range().

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