21 #define DT_DE_SETTINGS_USE_BINARY_FILES 0
36 const std::string& name()
const;
39 const std::string& extension()
const;
42 template <
typename RecordType>
43 bool readDefaultRecord(RecordType& r);
46 template <
typename RecordType>
47 bool readBackupRecord(RecordType& r);
49 template <
typename RecordType>
50 bool readFactoryDefaultRecord(RecordType& r);
53 template <
typename RecordType>
54 bool writeDefaultRecord(
const RecordType& r);
57 template <
typename RecordType>
58 bool writeBackupRecord(
const RecordType& r);
61 template <
typename RecordType>
62 bool readRecordFrom(RecordType& r,
const std::string& importFileName);
65 template <
typename RecordType>
66 bool readRecordFromBinary(RecordType& r,
const std::string& importFileName);
69 template <
typename RecordType>
70 bool writeRecordTo(
const RecordType& r,
const std::string& exportFileName )
const;
73 template <
typename RecordType>
74 bool writeRecordToBinary(
const RecordType& r,
const std::string& exportFileName )
const;
76 inline void setAutoSave(
bool b )
81 inline bool autoSave()
const
88 bool defaultFileExists()
const;
89 virtual std::string defaultFilePath()
const;
91 bool defaultBinaryFileExists()
const;
92 virtual std::string defaultBinaryFilePath()
const;
98 bool factoryFileExists()
const;
99 virtual std::string factoryFilePath()
const;
104 bool backupFileExists()
const;
105 virtual std::string backupFilePath()
const;
108 static std::string binaryFileExtension(
void);
129 #define DtDeSettings_INL_
130 #include <vrvCore/DtDeSettings.inl>
131 #undef DtDeSettings_INL_