B2BITS FIX Antenna HFT  1.0.16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Engine::GlobalMsgIdGen Struct Reference

GlobalMsgId generator. More...

#include <FIXMessageEx.h>

Public Member Functions

System::u64 curValue () const
 Returns the last GlobalMsgId. More...
 
 GlobalMsgIdGen ()
 Constructor. More...
 
System::u64 newValue ()
 Generates a new GlobalMsgId. More...
 
void reset (System::u64 value)
 Initializes the GlobalMsgId generator with the new start value. More...
 

Public Attributes

volatile int64_t v_
 The current GlobalMsgId. More...
 

Detailed Description

GlobalMsgId generator.

Constructor & Destructor Documentation

Engine::GlobalMsgIdGen::GlobalMsgIdGen ( )
inline

Constructor.

Initializes the GlobalMsgId generator with the current time.

References System::Time::currentTimeUsec1970(), and reset().

Member Function Documentation

System::u64 Engine::GlobalMsgIdGen::curValue ( ) const
inline

Returns the last GlobalMsgId.

References v_.

Referenced by Engine::FIXMessageEx::getCurrGlobalMsgId().

System::u64 Engine::GlobalMsgIdGen::newValue ( )
inline
void Engine::GlobalMsgIdGen::reset ( System::u64  value)
inline

Initializes the GlobalMsgId generator with the new start value.

References v_.

Referenced by GlobalMsgIdGen(), and Engine::FIXMessageEx::seedGlobalMsgId().

Member Data Documentation

volatile int64_t Engine::GlobalMsgIdGen::v_

The current GlobalMsgId.

Referenced by curValue(), newValue(), and reset().