Engine Class Reference

FIX Engine. More...

List of all members.

Public Member Functions

int getListenPort () const
 Returns the listen port.
const std::string & getLogDirectory () const
 Retuns the Engine log directory.
void registerListener (IEngineListener *listener)
 Registers the Engine listener.
void unregisterListener ()
 Un-registers the Engine listener.

Static Public Member Functions

static Engineinit (int listenPort=0)
 Initializes the FIX Engine.
static Engineinit (const std::string &configFile)
 Initializes the FIX Engine.
static EngineinitFromString (const std::string &configuration)
 Initializes the FIX Engine.
static void shutdown ()
 Shutdowns the FIX Engine and releases all resources.
static Engineinstance ()
 Returns the Engine instance.
static bool isInitialized ()
 Returns 'true' if the FIX Engine has been initialized, otherwise - 'false'.

Friends

class Message


Detailed Description

FIX Engine.

Definition at line 34 of file Engine.h.


Member Function Documentation

int getListenPort (  )  const

Returns the listen port.

The FIX Engine listens on this port for incoming connections.

const std::string& getLogDirectory (  )  const

Retuns the Engine log directory.

Inbound and outbound FIX messages, session's state data, and the FIX Engine log file are stored in this directory.

static Engine* init ( const std::string &  configFile  )  [static]

Initializes the FIX Engine.

Parameters:
configFile Configuration file.

static Engine* init ( int  listenPort = 0  )  [static]

Initializes the FIX Engine.

Parameters:
listenPort The engine listens on this port for incoming connections. If '0' then only session-initiators can be created. If '-1' then the telecommunication level is disabled and only message parsing/assembling can be used.

static Engine* initFromString ( const std::string &  configuration  )  [static]

Initializes the FIX Engine.

Parameters:
configuration Configuration string.

static Engine* instance (  )  [static]

Returns the Engine instance.

Exceptions:
EngineException if the FIX Engine has not been initialized yet.

static bool isInitialized (  )  [static]

Returns 'true' if the FIX Engine has been initialized, otherwise - 'false'.

void registerListener ( IEngineListener listener  ) 

Registers the Engine listener.

Exceptions:
Exception if the listener is already registered.

static void shutdown (  )  [static]

Shutdowns the FIX Engine and releases all resources.

void unregisterListener (  ) 

Un-registers the Engine listener.


Friends And Related Function Documentation

friend class Message [friend]

Definition at line 94 of file Engine.h.


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

Generated on Wed Oct 28 20:38:58 2009 for FIXForge C++ FIX Engine by  doxygen 1.5.9