MAK RTIspy API Documentation for HLA 1.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Classes | Public Member Functions | Protected Member Functions | Protected Attributes | Static Protected Attributes | Private Member Functions
DtRtiChooserCache Class Reference

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.
virtual ~DtRtiChooserCache ()
 Destructor.
virtual void writeToFile ()
 Writes the cache to the default XML file specified at creation.
virtual void writeToFile (const MAKRti::DtFilename &xmlFile)
 Writes the cache to the specified XML file.
virtual std::ostream & print (std::ostream &ostr) const
 Prints the cache to the given output stream.
virtual void getMAK_RTIDIRs (std::set< DtInstalledRTIInformation > &installedRTIs)
 Retrieve the set of all MAK_RTIDIRs from the configuration file.
virtual void addMAK_RTIDIR (const DtInstalledRTIInformation &installed)
 Add a MAK_RTIDIR to the configuration file.
virtual void addMAK_RTIDIRs (const std::set< DtInstalledRTIInformation > &installed)
virtual void clearMAK_RTIDIRs ()
 Clears the list of MAK_RTIDIRs.
virtual bool getMAK_RTIDIR (DtInstalledRTIInformation info)
 Retrieve the MAK_RTIDIRs.

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.

Protected Attributes

MAKRti::DtEnvironment myEnvironment
 The cached rtiChooser environment.
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.
MAKRti::DtFilename myXmlFile
 The name of the default XML file to read from and write to.
bool myUpdatedSinceWrite
 Flag indicating if the environment has changed since the last time it was written to the default file.

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.
 DtRtiChooserCache (const DtRtiChooserCache &)
 Copy and assignment not allowed.
DtRtiChooserCacheoperator= (const DtRtiChooserCache &)

Detailed Description

Stores the cached MAK_RTIDIR's that a user has selected through the rtiChooser.

Constructor & Destructor Documentation

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 DtRtiChooserCache::~DtRtiChooserCache ( )
virtual

Destructor.

DtRtiChooserCache::DtRtiChooserCache ( const DtRtiChooserCache )
private

Copy and assignment not allowed.

Member Function Documentation

virtual void DtRtiChooserCache::addMAK_RTIDIR ( const DtInstalledRTIInformation installed)
virtual

Add a MAK_RTIDIR to the configuration file.

virtual void DtRtiChooserCache::addMAK_RTIDIRs ( const std::set< DtInstalledRTIInformation > &  installed)
virtual
virtual void DtRtiChooserCache::clearMAK_RTIDIRs ( )
virtual

Clears the list of MAK_RTIDIRs.

virtual bool DtRtiChooserCache::getMAK_RTIDIR ( DtInstalledRTIInformation  info)
virtual

Retrieve the MAK_RTIDIRs.

Returns the first if more than one is cached.

virtual void DtRtiChooserCache::getMAK_RTIDIRs ( std::set< DtInstalledRTIInformation > &  installedRTIs)
virtual

Retrieve the set of all MAK_RTIDIRs from the configuration file.

DtRtiChooserCache& DtRtiChooserCache::operator= ( const DtRtiChooserCache )
private
bool DtRtiChooserCache::parseFile ( const MAKRti::DtFilename &  filename)
protected

Build document starting from existing file Non-virtual since this may be called from the constructor.

virtual std::ostream& DtRtiChooserCache::print ( std::ostream &  ostr) const
virtual

Prints the cache to the given output stream.

Referenced by operator<<().

virtual MAKRti::DtString DtRtiChooserCache::stringifyInfoContents ( const DtInstalledRTIInformation info) const
privatevirtual

Generate a string from contents of info.

virtual void DtRtiChooserCache::writeToFile ( )
virtual

Writes the cache to the default XML file specified at creation.

virtual void DtRtiChooserCache::writeToFile ( const MAKRti::DtFilename &  xmlFile)
virtual

Writes the cache to the specified XML file.

Member Data Documentation

const MAKRti::DtString DtRtiChooserCache::defaultRidString
staticprotected
MAKRti::DtEnvironment DtRtiChooserCache::myEnvironment
protected

The cached rtiChooser environment.

bool DtRtiChooserCache::myUpdatedSinceWrite
protected

Flag indicating if the environment has changed since the last time it was written to the default file.

MAKRti::DtFilename DtRtiChooserCache::myXmlFile
protected

The name of the default XML file to read from and write to.

std::auto_ptr< MAKRti::DtEnvXMLWriter > DtRtiChooserCache::myXmlWriter
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.

const MAKRti::DtString DtRtiChooserCache::ridPathString
staticprotected
const MAKRti::DtString DtRtiChooserCache::rtiPathString
staticprotected
const MAKRti::DtString DtRtiChooserCache::versionString
staticprotected

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

Document ID: Generated on Mon Jul 9 10:30:41 EDT 2018 from SVN revision 190224
Copyright © 2005-2018 VT MÄK Inc. All Rights Reserved (www.mak.com)