![]() |
MAK RTIspy API Documentation for HLA Evolved
|
Stores the cached MAK_RTIDIR's that a user has selected through the rtiChooser. More...
Collaboration diagram for DtRtiChooserCache:Classes | |
| struct | DtInstalledRTIInformation |
Public Member Functions | |
| DtRtiChooserCache (const MAKRti::DtFilename &xmlFile=MAKRti::DtFilename::nullFilename()) | |
| Constructor. More... | |
| virtual | ~DtRtiChooserCache () |
| Destructor. More... | |
| virtual void | writeToFile () |
| Writes the cache to the default XML file specified at creation. More... | |
| virtual void | writeToFile (const MAKRti::DtFilename &xmlFile) |
| Writes the cache to the specified XML file. More... | |
| virtual std::ostream & | print (std::ostream &ostr) const |
| Prints the cache to the given output stream. More... | |
| virtual void | getMAK_RTIDIRs (std::set< DtInstalledRTIInformation > &installedRTIs) |
| Retrieve the set of all MAK_RTIDIRs from the configuration file. More... | |
| virtual void | addMAK_RTIDIR (const DtInstalledRTIInformation &installed) |
| Add a MAK_RTIDIR to the configuration file. More... | |
| virtual void | addMAK_RTIDIRs (const std::set< DtInstalledRTIInformation > &installed) |
| virtual void | clearMAK_RTIDIRs () |
| Clears the list of MAK_RTIDIRs. More... | |
| virtual bool | getMAK_RTIDIR (DtInstalledRTIInformation info) |
| Retrieve the MAK_RTIDIRs. More... | |
Protected Member Functions | |
| 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 rtiChooser environment. More... | |
| DtUniquePtr < 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... | |
| bool | myUpdatedSinceWrite |
| Flag indicating if the environment has changed since the last time it was written to the default file. More... | |
Static Protected Attributes | |
| static const MAKRti::DtString | rtiPathString |
| static const MAKRti::DtString | ridPathString |
| static const MAKRti::DtString | defaultRidString |
| static const MAKRti::DtString | versionString |
Private Member Functions | |
| virtual MAKRti::DtString | stringifyInfoContents (const DtInstalledRTIInformation &info) const |
| Generate a string from contents of info. More... | |
| DtRtiChooserCache (const DtRtiChooserCache &) | |
| Copy and assignment not allowed. More... | |
| DtRtiChooserCache & | operator= (const DtRtiChooserCache &) |
Stores the cached MAK_RTIDIR's that a user has selected through the rtiChooser.
| DtRtiChooserCache::DtRtiChooserCache | ( | const MAKRti::DtFilename & | xmlFile = MAKRti::DtFilename::nullFilename() | ) |
Constructor.
Creates cache of MAK_RTIDIRs 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. If no filename is given the default will be used.
|
virtual |
Destructor.
|
private |
Copy and assignment not allowed.
|
virtual |
Add a MAK_RTIDIR to the configuration file.
|
virtual |
|
virtual |
Clears the list of MAK_RTIDIRs.
|
virtual |
Retrieve the MAK_RTIDIRs.
Returns the first if more than one is cached.
|
virtual |
Retrieve the set of all MAK_RTIDIRs from the configuration file.
|
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<<().
|
privatevirtual |
Generate a string from contents of info.
|
virtual |
Writes the cache to the default XML file specified at creation.
|
virtual |
Writes the cache to the specified XML file.
|
staticprotected |
|
protected |
The cached rtiChooser environment.
|
protected |
Flag indicating if the environment has changed since the last time it was written to the default file.
|
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 |
|
staticprotected |
|
staticprotected |