22 #define DT_DE_SETTINGS_USE_BINARY_FILES 0
49 const std::string& name()
const;
52 const std::string& extension()
const;
55 template <
typename RecordType>
56 bool readDefaultRecord(RecordType& r);
61 template <
typename RecordType>
62 bool readDefaultRecordAndName(RecordType& r, std::string& fName);
65 template <
typename RecordType>
66 bool readBackupRecord(RecordType& r);
68 template <
typename RecordType>
69 bool readFactoryDefaultRecord(RecordType& r)
const;
72 template <
typename RecordType>
73 bool writeDefaultRecord(
const RecordType& r);
76 template <
typename RecordType>
77 bool writeBackupRecord(
const RecordType& r);
81 template <
typename RecordType>
82 bool readRecordsFrom(std::map<std::string, RecordType>& r,
const std::string& importFileName);
85 template <
typename RecordType>
86 bool readRecordFrom(RecordType& r,
const std::string& importFileName)
const;
89 template <
typename RecordType>
90 bool readRecordFromBinary(RecordType& r,
const std::string& importFileName);
93 template <
typename RecordType>
94 bool writeRecordTo(
const RecordType& r,
const std::string& exportFileName)
const;
97 template <
typename RecordType>
98 bool writeRecordToBinary(
const RecordType& r,
const std::string& exportFileName)
const;
114 bool defaultFileExists()
const;
115 virtual std::string defaultFilePath()
const;
117 bool defaultBinaryFileExists()
const;
118 virtual std::string defaultBinaryFilePath()
const;
124 bool factoryFileExists()
const;
125 virtual std::string factoryFilePath()
const;
130 bool backupFileExists()
const;
131 virtual std::string backupFilePath()
const;
134 static std::string binaryFileExtension(
void);
138 bool defaultDirExists()
const;
139 virtual std::string defaultDirPath()
const;
144 bool factoryDirExists()
const;
145 virtual std::string factoryDirPath()
const;
150 bool backupDirExists()
const;
151 virtual std::string backupDirPath()
const;
156 bool mergedFilesExist()
const;
157 virtual const std::vector<std::string>& mergedFiles()
const;
158 virtual void addMergedFile(std::string fileName);
163 bool entityElementDefinitionDirExists()
const;
164 virtual std::string entityElementDefinitionDirPath()
const;
169 bool tacticalGraphicsElementDefinitionDirExists()
const;
170 virtual std::string tacticalGraphicsElementDefinitionDirPath()
const;
175 bool unitElementDefinitionDirExists()
const;
176 virtual std::string unitElementDefinitionDirPath()
const;
181 template <
typename RecordType>
182 bool readDefaultRecords(std::map<std::string, RecordType>& recordMap);
185 template <
typename RecordType>
186 bool readRecordFromFile(RecordType& record,
187 const std::string& importFileName);
191 template <
typename RecordType>
192 bool readRecordsFromDir(std::map<std::string, RecordType>& recordMap,
193 const std::string& importDirName);
215 #define DtDeSettings_INL_
216 #include <vrvCore/DtDeSettings.inl>
217 #undef DtDeSettings_INL_
Contains makVrv::DtDeError class.
bool myAutoSave
Definition: DtDeSettings.h:206
std::vector< std::string > myMergedFiles
Definition: DtDeSettings.h:207
DtDe & myDe
Definition: DtDeSettings.h:203
std::string myName
Definition: DtDeSettings.h:204
Contains makVrv::DtDe class.
void setAutoSave(bool b)
Save the record after each change in the GUI (as opposed to hitting the export button to save) ...
Definition: DtDeSettings.h:102
static const std::string myBinaryFileExtension
Definition: DtDeSettings.h:209
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Contains makVrv::DtVrvFilesystem class.
std::string myExtension
Definition: DtDeSettings.h:205
Settings class for reading and writing settings to/from files.
Definition: DtDeSettings.h:29
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
A manager of all of the settings.
Definition: DtDeSettingsManager.h:25
bool autoSave() const
Definition: DtDeSettings.h:107
Contains DLL export macros.