12 #ifndef DtRtiChooserCache_H_
13 #define DtRtiChooserCache_H_
16 #include <mtl/environment.h>
17 #include <mtl/envXmlWriter.h>
18 #include <vlutil/vlString.h>
19 #include <vlutil/vlFilename.h>
34 DtRtiChooserCache(
const MAKRti::DtFilename& xmlFile = MAKRti::DtFilename::nullFilename() );
40 virtual void writeToFile();
43 virtual void writeToFile(
const MAKRti::DtFilename& xmlFile );
46 virtual std::ostream& print( std::ostream& ostr )
const;
52 : myPathOfInstalledRTI(
"")
53 , myUseDefaultRidFile(true)
54 , myRidToUseWithInstalledRTI(
"")
58 bool defaultRid, MAKRti::DtString ridToUse, MAKRti::DtString version )
59 : myPathOfInstalledRTI(pathToRTI)
60 , myUseDefaultRidFile(defaultRid)
61 , myRidToUseWithInstalledRTI(ridToUse)
65 : myPathOfInstalledRTI(copy.myPathOfInstalledRTI)
66 , myUseDefaultRidFile(copy.myUseDefaultRidFile)
67 , myRidToUseWithInstalledRTI(copy.myRidToUseWithInstalledRTI)
68 , myVersion(copy.myVersion) { }
74 if ( !myUseDefaultRidFile )
101 virtual void getMAK_RTIDIRs( std::set<DtInstalledRTIInformation>& installedRTIs );
111 virtual void addMAK_RTIDIRs(
const std::set<DtInstalledRTIInformation>& installed );
114 virtual void clearMAK_RTIDIRs();
130 bool parseFile(
const MAKRti::DtFilename& filename );
157 return cache.
print( ostr );
160 #endif // DtRtiChooserCache_H_
MAKRti::DtEnvironment myEnvironment
The cached rtiChooser environment.
Definition: rtiChooserCache.h:135
static const MAKRti::DtString defaultRidString
Definition: rtiChooserCache.h:139
static const MAKRti::DtString rtiPathString
Definition: rtiChooserCache.h:137
std::auto_ptr< MAKRti::DtEnvXMLWriter > myXmlWriter
Document writer - used to convert the document to XML in memory or file myXmlWriter is persistent so ...
Definition: rtiChooserCache.h:145
static const MAKRti::DtString versionString
Definition: rtiChooserCache.h:140
std::ostream & operator<<(std::ostream &ostr, const DtAssistantConfig &config)
Definition: assistantConfig.h:85
Stores the cached MAK_RTIDIR's that a user has selected through the rtiChooser.
Definition: rtiChooserCache.h:27
virtual std::ostream & print(std::ostream &ostr) const
Prints the cache to the given output stream.
MAKRti::DtFilename myXmlFile
The name of the default XML file to read from and write to.
Definition: rtiChooserCache.h:148
bool myUpdatedSinceWrite
Flag indicating if the environment has changed since the last time it was written to the default file...
Definition: rtiChooserCache.h:152
static const MAKRti::DtString ridPathString
Definition: rtiChooserCache.h:138
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:127