![]() |
MAK RTIspy API Documentation for HLA 1516
|
Stores the cached connections which the Assistant can provide to components if necessary. More...
Collaboration diagram for DtConnectionCache:Public Member Functions | |
| DtConnectionCache (const MAKRti::DtFilename &xmlFile) | |
| Constructor. More... | |
| virtual | ~DtConnectionCache () |
| Destructor. More... | |
| virtual bool | writeToFile () |
| Writes the cache to the default XML file specified at creation. More... | |
| virtual bool | writeToFile (const MAKRti::DtFilename &xmlFile) |
| Writes the cache to the specified XML file. Returns true if successful. More... | |
| virtual std::ostream & | print (std::ostream &ostr) const |
| Prints the cache to the given output stream. More... | |
| virtual void | getConnections (DtRtiConnectionAndConfiguration &connsAndConfigs) |
| Retrieve the connections. More... | |
| virtual bool | setConnections (const DtRtiConnectionAndConfiguration &conns) |
| Set the connections. Returns true on success. More... | |
| virtual void | clearConnections () |
| Clear all connections. More... | |
| virtual bool | fileWasRead () const |
| Returns true if the cache file was found and read. More... | |
| virtual bool | getFileVersion (MAKRti::DtString &version) const |
| Returns the RTI version of the file that was read. More... | |
| virtual bool | isCacheVersionOld () const |
| Was the cache read from an older file version? More... | |
| virtual DtNetU128 | rawUuid () const |
Protected Member Functions | |
| virtual void | getRtiexecConnectionsFromEnv (DtRtiConnectionAndConfiguration &connsAndConfigs) |
| Retrieve the rtiexec connections from the XML environment. More... | |
| virtual void | getLightweightConnectionsFromEnv (DtRtiConnectionAndConfiguration &connsAndConfigs) |
| Retrieve the lightweight connections from the XML environment. More... | |
| virtual void | getConfigurationsFromEnv (DtRtiConnectionAndConfiguration &connsAndConfigs) |
| Retrieves the configurations from the XML environment. More... | |
| virtual void | getForeignConnectionsFromEnv (DtRtiConnectionAndConfiguration &connsAndConfigs) |
| Get Foreign connections from the XML environment. More... | |
| virtual MAKRti::DtEnvValueSP | addConnectionToEnv (const DtRtiConnectionInfoDataPair &conn) |
| Add a connection to the XML environment. More... | |
| virtual MAKRti::DtEnvValueSP | addConfigurationToEnv (const DtRtiConfigurationInfoDataPair &config) |
| Add a configuration to the XML environment. More... | |
| virtual MAKRti::DtEnvValueSP | addForeignConnectionToEnv (const DtAssistantConnectionStruct &foreignConnection) |
| Add a foreign connection to the XML environment. More... | |
| virtual void | removeConnectionFromEnv (const DtRtiConnectionInfoDataPair &conn) |
| Remove a connection from the XML environment. More... | |
| virtual void | removeConfigurationFromEnv (const DtRtiConfigurationInfoDataPair &config) |
| Remove a configuration from the XML environment. More... | |
| virtual void | removeForeignConnectionsFromEnv (const DtHostNameAddress &foreignConnection) |
| Remove a foreign connection to the XML environment. More... | |
| void | setConnFromEnv (DtRtiConnectionInfoDataPair &conn, MAKRti::DtEnvValueSP val) |
| Sets the connection info from the environment value. More... | |
| void | setConfigFromEnv (DtRtiConfigurationInfoDataPair &config, MAKRti::DtEnvValueSP val) |
| Sets the connection info from the environment value. More... | |
| bool | parseFile (const MAKRti::DtFilename &filename) |
| Build document starting from existing file Non-virtual since this may be called from the constructor. More... | |
Protected Attributes | |
| MAKRti::DtEnvironment | myEnvironment |
| The cached license environment. More... | |
| std::auto_ptr < MAKRti::DtEnvXMLWriter > | myXmlWriter |
| Document writer - used to convert the document to XML in memory or file myXmlWriter is persistent so that the XML memory buffer does not re-allocate as often. More... | |
| MAKRti::DtFilename | myXmlFile |
| The name of the default XML file to read from and write to. More... | |
| MAKRti::DtString | myReadFileVersion |
| The version of the file that was read. More... | |
| MAKRti::DtString | myUuid |
| The uuid of the file that was read. More... | |
| bool | myFileWasRead |
| Indicates whether a cache file was found and read. More... | |
Static Protected Attributes | |
Predefined lightweight connection information | |
| static MAKRti::DtString | thePredefinedLightweightConnName |
| The predefined lightweight connection name. More... | |
| static DtRtiConnectionInfo | thePredefinedLightweightConn |
| The predefined lightweight connection. More... | |
| static MAKRti::DtString | thePredefinedLightweightConfigName |
| The predefined lightweight configuration name. More... | |
| static DtRtiConnectionConfigurationInfo | thePredefinedLightweightConfig |
| The predefined lightweight configuration. More... | |
Predefined rtiexec connection information | |
| static MAKRti::DtString | thePredefinedRtiexecConnName |
| The predefined rtiexec connection name. More... | |
| static DtRtiConnectionInfo | thePredefinedRtiexecConn |
| The predefined rtiexec connection. More... | |
| static MAKRti::DtString | thePredefinedRtiexecConfigName |
| The predefined rtiexec configuration name. More... | |
| static DtRtiConnectionConfigurationInfo | thePredefinedRtiexecConfig |
| The predefined rtiexec configuration. More... | |
Predefined lightweight loopback connection information | |
| static MAKRti::DtString | thePredefinedLightweightLoopbackConnName |
| The predefined lightweight loopback connection name. More... | |
| static DtRtiConnectionInfo | thePredefinedLightweightLoopbackConn |
| The predefined lightweight loopback connection. More... | |
| static MAKRti::DtString | thePredefinedLightweightLoopbackConfigName |
| The predefined lightweight loopback configuration name. More... | |
| static DtRtiConnectionConfigurationInfo | thePredefinedLightweightLoopbackConfig |
| The predefined lightweight loopback configuration. More... | |
Predefined rtiexec loopback connection information | |
| static MAKRti::DtString | thePredefinedRtiexecLoopbackConnName |
| The predefined rtiexec loopback connection name. More... | |
| static DtRtiConnectionInfo | thePredefinedRtiexecLoopbackConn |
| The predefined rtiexec loopback connection. More... | |
| static MAKRti::DtString | thePredefinedRtiexecLoopbackConfigName |
| The predefined rtiexec loopback configuration name. More... | |
| static DtRtiConnectionConfigurationInfo | thePredefinedRtiexecLoopbackConfig |
| The predefined rtiexec loopback configuration. More... | |
Private Member Functions | |
| DtConnectionCache (const DtConnectionCache &) | |
| Copy and assignment not allowed. More... | |
| DtConnectionCache & | operator= (const DtConnectionCache &) |
Stores the cached connections which the Assistant can provide to components if necessary.
Handles reading and loading this information from an XML file.
| DtConnectionCache::DtConnectionCache | ( | const MAKRti::DtFilename & | xmlFile | ) |
Constructor.
Creates an Assistant connections cache from the given XML file. If the file cannot be found, an empty cache is created. In this case the file name will be saved as the default file if the cache needs to be written later.
|
virtual |
Destructor.
|
private |
Copy and assignment not allowed.
|
protectedvirtual |
Add a configuration to the XML environment.
|
protectedvirtual |
Add a connection to the XML environment.
|
protectedvirtual |
Add a foreign connection to the XML environment.
|
virtual |
Clear all connections.
|
virtual |
Returns true if the cache file was found and read.
|
protectedvirtual |
Retrieves the configurations from the XML environment.
|
virtual |
Retrieve the connections.
|
virtual |
Returns the RTI version of the file that was read.
Returns false if no file was read.
|
protectedvirtual |
Get Foreign connections from the XML environment.
|
protectedvirtual |
Retrieve the lightweight connections from the XML environment.
|
protectedvirtual |
Retrieve the rtiexec connections from the XML environment.
|
virtual |
Was the cache read from an older file version?
|
private |
|
protected |
Build document starting from existing file Non-virtual since this may be called from the constructor.
|
virtual |
Prints the cache to the given output stream.
Referenced by operator<<().
|
virtual |
|
protectedvirtual |
Remove a configuration from the XML environment.
|
protectedvirtual |
Remove a connection from the XML environment.
|
protectedvirtual |
Remove a foreign connection to the XML environment.
|
protected |
Sets the connection info from the environment value.
|
virtual |
Set the connections. Returns true on success.
|
protected |
Sets the connection info from the environment value.
|
virtual |
Writes the cache to the default XML file specified at creation.
Returns true if successful.
|
virtual |
Writes the cache to the specified XML file. Returns true if successful.
|
protected |
The cached license environment.
|
protected |
Indicates whether a cache file was found and read.
|
protected |
The version of the file that was read.
|
protected |
The uuid of the file that was read.
|
protected |
The name of the default XML file to read from and write to.
|
protected |
Document writer - used to convert the document to XML in memory or file myXmlWriter is persistent so that the XML memory buffer does not re-allocate as often.
|
staticprotected |
The predefined lightweight configuration.
|
staticprotected |
The predefined lightweight configuration name.
|
staticprotected |
The predefined lightweight connection.
|
staticprotected |
The predefined lightweight connection name.
|
staticprotected |
The predefined lightweight loopback configuration.
|
staticprotected |
The predefined lightweight loopback configuration name.
|
staticprotected |
The predefined lightweight loopback connection.
|
staticprotected |
The predefined lightweight loopback connection name.
|
staticprotected |
The predefined rtiexec configuration.
|
staticprotected |
The predefined rtiexec configuration name.
|
staticprotected |
The predefined rtiexec connection.
|
staticprotected |
The predefined rtiexec connection name.
|
staticprotected |
The predefined rtiexec loopback configuration.
|
staticprotected |
The predefined rtiexec loopback configuration name.
|
staticprotected |
The predefined rtiexec loopback connection.
|
staticprotected |
The predefined rtiexec loopback connection name.