![]() |
VR-Forces Development_Version Class Documentation
|
This class initializes the CIGI driver. More...
Public Types | |
| enum | TransportType { BestEffort = 0, Reliable_Client = 1, Reliable_Server = 2 } |
| enum | ConnectionMode { SynchronousSingleThreaded, SynchronousMultiThreaded, Asynchronous } |
Public Member Functions | |
| DtCigiConnectionInitializer () | |
| Constructor. | |
| DtCigiConnectionInitializer (const DtCigiConnectionInitializer &orig) | |
| Copy Constructor. | |
| virtual | ~DtCigiConnectionInitializer () |
| Destructor. | |
| DtCigiConnectionInitializer & | operator= (const DtCigiConnectionInitializer &orig) |
| Assignment Operator. | |
| std::string | cigiVersion () const |
| Returns the CIGI Version in string form. | |
| virtual void | setCigiVersion (const std::string &version) |
| Set the CIGI version string. | |
| std::string | cigiMappingsName () const |
| Returns the name of the CIGI mappings to use. | |
| virtual void | setCigiMappingsName (const std::string &name) |
| Sets the name of the CIGI mappings to use. | |
| std::string | deviceAddress () const |
| Returns the network device address for host communication. | |
| virtual void | setDeviceAddress (const std::string &address) |
| Sets the network device address for host communication. | |
| std::string | hostIpAddress () const |
| Returns the IP address of the CIGI host. | |
| virtual void | setHostIpAddress (const std::string &address) |
| Sets the CIGI host's IP address. | |
| unsigned | incomingBufferSize () const |
| Returns the size of the incoming CIGI buffer. | |
| virtual void | setIncomingBufferSize (unsigned nSize) |
| Sets the buffer size for CIGI incoming message queue. | |
| unsigned | listenPort () const |
| Returns the network listen port. | |
| virtual void | setListenPort (unsigned port) |
| Set the network listen port. | |
| unsigned | incomingBuffers () const |
| Returns the number of incoming CIGI buffers. | |
| virtual void | setNumIncomingBuffers (unsigned nNum) |
| Sets the number of buffers for CIGI incoming message queue. | |
| unsigned | outgoingBuffers () const |
| Returns the number of outgoing CIGI buffers. | |
| virtual void | setNumOutgoingBuffers (unsigned nNum) |
| Sets the number of buffers for CIGI outgoing message queue. | |
| unsigned | outgoingBufferSize () const |
| Returns the size of the outgoing CIGI buffer. | |
| virtual void | setOutgoingBufferSize (unsigned nSize) |
| Sets the buffer size for CIGI outgoing message queue. | |
| unsigned | packetBufferSize () const |
| Returns the size of the receiving network buffer. | |
| virtual void | setPacketBufferSize (unsigned nSize) |
| Set size of receive packet buffer on network socket. | |
| unsigned | sendPort () const |
| Returns port being sent to. | |
| virtual void | setSendPort (unsigned port) |
| Set the Send to Host port. | |
| virtual ConnectionMode | driverMode () const |
| Returns the driver mode: Synchronous (multi/single threaded) or asynchronous. | |
| virtual void | setDriverMode (ConnectionMode mode) |
| Sets the driver mode. Saved in the config file as driverModeEnum. | |
| virtual void | setDriverModeByString (const std::string &mode) |
| This provides backward compatibility with driver configuration files the use the old driverMode parameter. | |
| virtual TransportType | transportType () const |
| Returns the transport type (best effort or reliable (client or server)). | |
| virtual void | setTransportType (TransportType tType) |
| Sets the transport type. | |
| virtual bool | useSynchronousMode () const |
| Returns whether we're using synchronous mode, based on the driver mode. | |
| virtual void | setDriverFrequency (unsigned int hertz) |
| Sets the driver frequency. | |
| virtual unsigned int | driverFrequency () const |
| Returns the driver frequency. | |
| virtual void | setHostFrequency (unsigned int hertz) |
| Sets the host frequency. | |
| virtual unsigned int | hostFrequency () const |
| Returns the host frequency. | |
| virtual float | pauseAfterConnectTime () const |
| Returns the amount of time the connection should sleep after connect, in seconds. | |
| virtual void | setPauseAfterConnectTime (float pauseSeconds) |
| Set the amount of time we pause after connect. | |
Protected Attributes | |
| std::string | myCigiVersion |
| std::string | myDeviceAddress |
| std::string | myHostIpAddress |
| std::string | myEntityMappingName |
| unsigned | myIncomingBufferSize |
| unsigned | myListenPort |
| unsigned | myNumIncomingBuffers |
| unsigned | myNumOutgoingBuffers |
| unsigned | myOutgoingBufferSize |
| unsigned | myPacketBufferSize |
| unsigned | mySendPort |
| ConnectionMode | myDriverMode |
| TransportType | myTransportType |
| unsigned int | myDriverFrequency |
| unsigned int | myHostFrequency |
| float | myPauseAfterConnectTime |
This class initializes the CIGI driver.
| makVrv::DtCigiConnectionInitializer::DtCigiConnectionInitializer | ( | ) |
Constructor.
| makVrv::DtCigiConnectionInitializer::DtCigiConnectionInitializer | ( | const DtCigiConnectionInitializer & | orig | ) |
Copy Constructor.
|
virtual |
Destructor.
| DtCigiConnectionInitializer& makVrv::DtCigiConnectionInitializer::operator= | ( | const DtCigiConnectionInitializer & | orig | ) |
Assignment Operator.
|
inline |
Returns the CIGI Version in string form.
References myCigiVersion.
|
virtual |
Set the CIGI version string.
| std::string makVrv::DtCigiConnectionInitializer::cigiMappingsName | ( | ) | const |
Returns the name of the CIGI mappings to use.
|
virtual |
Sets the name of the CIGI mappings to use.
|
inline |
Returns the network device address for host communication.
References myDeviceAddress.
|
virtual |
Sets the network device address for host communication.
|
inline |
Returns the IP address of the CIGI host.
References myHostIpAddress.
|
virtual |
Sets the CIGI host's IP address.
|
inline |
Returns the size of the incoming CIGI buffer.
References myIncomingBufferSize.
|
virtual |
Sets the buffer size for CIGI incoming message queue.
|
inline |
Returns the network listen port.
References myListenPort.
|
virtual |
Set the network listen port.
|
inline |
Returns the number of incoming CIGI buffers.
References myNumIncomingBuffers.
|
virtual |
Sets the number of buffers for CIGI incoming message queue.
|
inline |
Returns the number of outgoing CIGI buffers.
References myNumOutgoingBuffers.
|
virtual |
Sets the number of buffers for CIGI outgoing message queue.
|
inline |
Returns the size of the outgoing CIGI buffer.
References myOutgoingBufferSize.
|
virtual |
Sets the buffer size for CIGI outgoing message queue.
|
inline |
Returns the size of the receiving network buffer.
References myPacketBufferSize.
|
virtual |
Set size of receive packet buffer on network socket.
|
inline |
Returns port being sent to.
References mySendPort.
|
virtual |
Set the Send to Host port.
|
virtual |
Returns the driver mode: Synchronous (multi/single threaded) or asynchronous.
|
virtual |
Sets the driver mode. Saved in the config file as driverModeEnum.
|
virtual |
This provides backward compatibility with driver configuration files the use the old driverMode parameter.
|
virtual |
Returns the transport type (best effort or reliable (client or server)).
|
virtual |
Sets the transport type.
|
virtual |
Returns whether we're using synchronous mode, based on the driver mode.
|
virtual |
Sets the driver frequency.
|
virtual |
Returns the driver frequency.
|
virtual |
Sets the host frequency.
Used for detecting overload conditions when using Asynchronous driver mode (in synchronous mode, host frequency is assumed to be the driver frequency
|
virtual |
Returns the host frequency.
|
virtual |
Returns the amount of time the connection should sleep after connect, in seconds.
Users who autostart multiple drivers may have problems with querying the network device for the default address when no pause is provided - default is 0.
|
virtual |
Set the amount of time we pause after connect.
|
protected |
Referenced by cigiVersion().
|
protected |
Referenced by deviceAddress().
|
protected |
Referenced by hostIpAddress().
|
protected |
|
protected |
Referenced by incomingBufferSize().
|
protected |
Referenced by listenPort().
|
protected |
Referenced by incomingBuffers().
|
protected |
Referenced by outgoingBuffers().
|
protected |
Referenced by outgoingBufferSize().
|
protected |
Referenced by packetBufferSize().
|
protected |
Referenced by sendPort().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |