![]() |
VR-Forces 4.3 Class Documentation
|
The DtBaseConnection is an abstract class. More...

Public Member Functions | |
| DtBaseConnection (DtSharedSettingsManager &, DtAgentManagerInterface &) | |
| CTOR. | |
| virtual | ~DtBaseConnection () |
| DTOR MUST call clearInstances first. | |
| virtual void | clearInstances () |
| Clear and delete all instances rooted in the connection MUST be called before the connection is destroyed. | |
| DtSharedSettingsManager & | settingsManager () |
| Get the settings manager. | |
| virtual DtAgentManagerInterface & | sceneInterface () |
| Get the scene manager interface for creating drivers. | |
| const DtSharedSettingsManager & | settingsManager () const |
| Get the settings manager. | |
| void | reportElementCreated (DtElementID id, DtElementID parentId, unsigned int type) |
| Report an element created. | |
| void | reportElementAttribute (DtElementID id, DtElementAttribute *attribute) |
| void | reportElementDestroyed (DtElementID id) |
| Report an element destroyed. | |
| const DtElementChanges & | currentElementChanges () const |
| Look at the current element changes. | |
| DtElementChanges * | takeElementChanges () |
| Take the current changes and internally start a new set of changes. | |
| DtTemporaryAgentManager & | temporaryEffects () |
| Get the temporary effects manager. | |
| DtBlinkingObjectManager & | blinkManager () |
| Get the blinking manager. | |
| DtRandomNumberGenerator & | randomNumberGenerator () |
| Get the simulation's random number generator. | |
| virtual const std::string & | tag () |
| Get the tag identifying which type of connection this is. | |
| const DtUnicode & | emptyString () const |
| Allocated empty string. | |
| virtual DtVirtualBaseClass * | findInstance (const std::string &instanceName) |
| Find an instance with the given name. | |
| bool | destroyingInstances () const |
| Check to see if the simulation is destroying instances. | |
| virtual void | registerInstance (const std::string &instanceName, DtVirtualBaseClass *instance) |
| Register an object as an instance of instanceName, and transfer memory ownership of the instance to the DtConnection. | |
Protected Types | |
| typedef boost::unordered_map < std::string, DtVirtualBaseClass * > | InstanceMap |
The DtBaseConnection is an abstract class.
|
protected |
| makVrv::DtBaseConnection::DtBaseConnection | ( | DtSharedSettingsManager & | , |
| DtAgentManagerInterface & | |||
| ) |
CTOR.
|
virtual |
DTOR MUST call clearInstances first.
|
virtual |
Clear and delete all instances rooted in the connection MUST be called before the connection is destroyed.
| DtSharedSettingsManager& makVrv::DtBaseConnection::settingsManager | ( | ) |
Get the settings manager.
|
virtual |
Get the scene manager interface for creating drivers.
| const DtSharedSettingsManager& makVrv::DtBaseConnection::settingsManager | ( | ) | const |
Get the settings manager.
| void makVrv::DtBaseConnection::reportElementCreated | ( | DtElementID | id, |
| DtElementID | parentId, | ||
| unsigned int | type | ||
| ) |
Report an element created.
| void makVrv::DtBaseConnection::reportElementAttribute | ( | DtElementID | id, |
| DtElementAttribute * | attribute | ||
| ) |
| void makVrv::DtBaseConnection::reportElementDestroyed | ( | DtElementID | id | ) |
Report an element destroyed.
| const DtElementChanges& makVrv::DtBaseConnection::currentElementChanges | ( | ) | const |
Look at the current element changes.
| DtElementChanges* makVrv::DtBaseConnection::takeElementChanges | ( | ) |
Take the current changes and internally start a new set of changes.
| DtTemporaryAgentManager& makVrv::DtBaseConnection::temporaryEffects | ( | ) |
Get the temporary effects manager.
| DtBlinkingObjectManager& makVrv::DtBaseConnection::blinkManager | ( | ) |
Get the blinking manager.
| DtRandomNumberGenerator& makVrv::DtBaseConnection::randomNumberGenerator | ( | ) |
Get the simulation's random number generator.
|
inlinevirtual |
Get the tag identifying which type of connection this is.
Reimplemented in makVrv::DT_PROTOCOL_NAMESPACE::DtVrlinkConnection.
| const DtUnicode& makVrv::DtBaseConnection::emptyString | ( | ) | const |
Allocated empty string.
|
virtual |
Find an instance with the given name.
If no instance is found than a null pointer is returned
Reimplemented in makVrv::DtIntervisibilityDriver::DtIntervisibilityConnection, and makVrv::DtCigiConnection.
Referenced by makVrf::VRF_PROTOCOL_NAMESPACE::DtEnvironmentSimDataProcessor::findInstance(), makVrf::VRF_PROTOCOL_NAMESPACE::DtActiveSonarSimDataProcessor::findInstance(), makVrf::VRF_PROTOCOL_NAMESPACE::DtEmitterSystemSimDataProcessor::findInstance(), makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfWeatherStateProcessor::findInstance(), and makVrv::DT_PROTOCOL_NAMESPACE::DtInteractionListener< InteractionClass >::instance().
|
inline |
Check to see if the simulation is destroying instances.
This function is used in the destructor of objects which access
instances via reference which may throw an exception.
@code
TestClass::~TestClass() { if(!mySimulation.destroyingInstances()) { //Safe to get instance now. Singleton& anInstance = Singleton::instance(mySimulation); ... }
Reimplemented in makVrv::DtCigiConnection.
|
virtual |
Register an object as an instance of instanceName, and transfer memory ownership of the instance to the DtConnection.
Reimplemented in makVrv::DtIntervisibilityDriver::DtIntervisibilityConnection, and makVrv::DtCigiConnection.
Referenced by makVrv::DT_PROTOCOL_NAMESPACE::DtInteractionListener< InteractionClass >::instance(), makVrf::VRF_PROTOCOL_NAMESPACE::DtEnvironmentSimDataProcessor::registerInstance(), makVrf::VRF_PROTOCOL_NAMESPACE::DtActiveSonarSimDataProcessor::registerInstance(), makVrf::VRF_PROTOCOL_NAMESPACE::DtEmitterSystemSimDataProcessor::registerInstance(), and makVrf::VRF_PROTOCOL_NAMESPACE::DtVrfWeatherStateProcessor::registerInstance().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Manager for blinking objects.
|
protected |
|
protected |
|
protected |