12 #ifndef DtRtiChooserCache_H_
13 #define DtRtiChooserCache_H_
17 #include <mtl/environment.h>
18 #include <mtl/envXmlWriter.h>
19 #include <vlutil/vlString.h>
20 #include <vlutil/vlFilename.h>
35 DtRtiChooserCache(
const MAKRti::DtFilename& xmlFile = MAKRti::DtFilename::nullFilename() );
41 virtual void writeToFile();
44 virtual void writeToFile(
const MAKRti::DtFilename& xmlFile );
47 virtual std::ostream& print( std::ostream& ostr )
const;
53 : myPathOfInstalledRTI(
"")
54 , myUseDefaultRidFile(true)
55 , myRidToUseWithInstalledRTI(
"")
59 bool defaultRid, MAKRti::DtString ridToUse, MAKRti::DtString version )
60 : myPathOfInstalledRTI(pathToRTI)
61 , myUseDefaultRidFile(defaultRid)
62 , myRidToUseWithInstalledRTI(ridToUse)
66 : myPathOfInstalledRTI(copy.myPathOfInstalledRTI)
67 , myUseDefaultRidFile(copy.myUseDefaultRidFile)
68 , myRidToUseWithInstalledRTI(copy.myRidToUseWithInstalledRTI)
69 , myVersion(copy.myVersion) { }
75 if ( !myUseDefaultRidFile )
102 virtual void getMAK_RTIDIRs( std::set<DtInstalledRTIInformation>& installedRTIs );
112 virtual void addMAK_RTIDIRs(
const std::set<DtInstalledRTIInformation>& installed );
115 virtual void clearMAK_RTIDIRs();
131 bool parseFile(
const MAKRti::DtFilename& filename );
158 return cache.
print( ostr );
161 #endif // DtRtiChooserCache_H_
MAKRti::DtEnvironment myEnvironment
The cached rtiChooser environment.
Definition: rtiChooserCache.h:136
static const MAKRti::DtString defaultRidString
Definition: rtiChooserCache.h:140
static const MAKRti::DtString rtiPathString
Definition: rtiChooserCache.h:138
static const MAKRti::DtString versionString
Definition: rtiChooserCache.h:141
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:28
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:149
bool myUpdatedSinceWrite
Flag indicating if the environment has changed since the last time it was written to the default file...
Definition: rtiChooserCache.h:153
DtUniquePtr< MAKRti::DtEnvXMLWriter > myXmlWriter
Document writer - used to convert the document to XML in memory or file myXmlWriter is persistent so ...
Definition: rtiChooserCache.h:146
static const MAKRti::DtString ridPathString
Definition: rtiChooserCache.h:139
The declaration of internal types.
#define DT_DLL_RTIUTIL
Definition: rtiMsConfig.h:160