MAK RTIspy API Documentation for HLA Evolved
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtWebSpyRtiConnectionMgr Class Reference

The DtWebSpyRtiConnectionMgr is the RTI connection manager component of the web spy. More...

+ Inheritance diagram for DtWebSpyRtiConnectionMgr:
+ Collaboration diagram for DtWebSpyRtiConnectionMgr:

List of all members.

Public Types

typedef
DtWebSpyRtiConnectionMgr *(* 
CreatorType )(DtWebSpyServer &parent)
 Web Spy RTI Connection Manager creator method.

Public Member Functions

virtual ~DtWebSpyRtiConnectionMgr ()
 Dtor.
virtual bool tick (unsigned int timeout=0)=0
 Do the actual message processing.
virtual void postCommand (const DtWebSpyUtils::ConnectionIdentifier &connInfo, std::auto_ptr< DtRtiMsg > command)=0
 Post the next command message from the HTTP server to the specified connection.
virtual unsigned int numConnections () const =0
 Return the number of current RTI component connections.

Static Public Member Functions

static DtWebSpyRtiConnectionMgrcreate (DtWebSpyServer &parent)
 Virtual constructor.
static void setCreatorFunction (CreatorType creator)
 Set the concrete type for the virtual constructor method.

Protected Member Functions

 DtWebSpyRtiConnectionMgr (DtWebSpyServer &parent)
 Uses Virtual Constructor idiom.
virtual DtString createDescription (DtWebSpyUtils::ConnectionType connType, unsigned long connHandle, const DtString &info) const
 Generate a text description of a connection based on connection type.

Protected Attributes

unsigned int myRtiPort
 Port to which RTI components may connect if this is a network connection manager.
DtWebSpyServermyParent
 The server that owns this RTI conn. manager.
DtClock myClock
 Clock for timeouts.

Static Protected Attributes

static CreatorType theCreatorFunction = 0
 RTI Connection Manager creator method.

Private Member Functions

 DtWebSpyRtiConnectionMgr (const DtWebSpyRtiConnectionMgr &)
 Copy and Assignment unimplemented.
DtWebSpyRtiConnectionMgroperator= (DtWebSpyRtiConnectionMgr &)
 Copy and Assignment unimplmented.

Detailed Description

The DtWebSpyRtiConnectionMgr is the RTI connection manager component of the web spy.

It handles all connections between the web server and the RTI components.

DtWebSpyRtiConnectionMgr is a base class from which connection-type-specific conn. managers are derived (ex. TCP, or shared memory)


Member Typedef Documentation

Web Spy RTI Connection Manager creator method.


Constructor & Destructor Documentation

Copy and Assignment unimplemented.

Dtor.

Uses Virtual Constructor idiom.


Member Function Documentation

Virtual constructor.

Reimplemented in DtTcpRtiConnectionMgr.

References theCreatorFunction.

DtString DtWebSpyRtiConnectionMgr::createDescription ( DtWebSpyUtils::ConnectionType  connType,
unsigned long  connHandle,
const DtString &  info 
) const [protected, virtual]

Generate a text description of a connection based on connection type.

References DtWebSpyUtils::connectionTypeString().

Referenced by DtTcpRtiConnectionMgr::establishConnection().

virtual unsigned int DtWebSpyRtiConnectionMgr::numConnections ( ) const [pure virtual]

Return the number of current RTI component connections.

Implemented in DtTcpRtiConnectionMgr.

DtWebSpyRtiConnectionMgr& DtWebSpyRtiConnectionMgr::operator= ( DtWebSpyRtiConnectionMgr ) [private]

Copy and Assignment unimplmented.

virtual void DtWebSpyRtiConnectionMgr::postCommand ( const DtWebSpyUtils::ConnectionIdentifier connInfo,
std::auto_ptr< DtRtiMsg command 
) [pure virtual]

Post the next command message from the HTTP server to the specified connection.

Implemented in DtTcpRtiConnectionMgr.

Set the concrete type for the virtual constructor method.

References theCreatorFunction.

virtual bool DtWebSpyRtiConnectionMgr::tick ( unsigned int  timeout = 0) [pure virtual]

Do the actual message processing.

  • RTI connections are treated as synchronous in main thread

Implemented in DtTcpRtiConnectionMgr.


Member Data Documentation

DtClock DtWebSpyRtiConnectionMgr::myClock [protected]
unsigned int DtWebSpyRtiConnectionMgr::myRtiPort [protected]

Port to which RTI components may connect if this is a network connection manager.

Referenced by DtTcpRtiConnectionMgr::DtTcpRtiConnectionMgr().

RTI Connection Manager creator method.

Referenced by create(), and setCreatorFunction().


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

Document ID: Generated on Thu Jun 14 14:15:04 EDT 2012 from SVN revision 116116
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)