22 #define DT_DE_SETTINGS_USE_BINARY_FILES 0
37 const std::string& name()
const;
40 const std::string& extension()
const;
43 template <
typename RecordType>
44 bool readDefaultRecord(RecordType& r);
47 template <
typename RecordType>
48 bool readBackupRecord(RecordType& r);
50 template <
typename RecordType>
51 bool readFactoryDefaultRecord(RecordType& r);
54 template <
typename RecordType>
55 bool writeDefaultRecord(
const RecordType& r);
58 template <
typename RecordType>
59 bool writeBackupRecord(
const RecordType& r);
62 template <
typename RecordType>
63 bool readRecordFrom(RecordType& r,
const std::string& importFileName);
66 template <
typename RecordType>
67 bool readRecordFromBinary(RecordType& r,
const std::string& importFileName);
70 template <
typename RecordType>
71 bool writeRecordTo(
const RecordType& r,
const std::string& exportFileName )
const;
74 template <
typename RecordType>
75 bool writeRecordToBinary(
const RecordType& r,
const std::string& exportFileName )
const;
79 inline void setAutoSave(
bool b )
84 inline bool autoSave()
const
91 bool defaultFileExists()
const;
92 virtual std::string defaultFilePath()
const;
94 bool defaultBinaryFileExists()
const;
95 virtual std::string defaultBinaryFilePath()
const;
101 bool factoryFileExists()
const;
102 virtual std::string factoryFilePath()
const;
107 bool backupFileExists()
const;
108 virtual std::string backupFilePath()
const;
111 static std::string binaryFileExtension(
void);
115 bool defaultDirExists()
const;
116 virtual std::string defaultDirPath()
const;
121 bool factoryDirExists()
const;
122 virtual std::string factoryDirPath()
const;
127 bool backupDirExists()
const;
128 virtual std::string backupDirPath()
const;
133 bool userEntityElementDefinitionDirExists()
const;
134 virtual std::string userEntityElementDefinitionDirPath()
const;
138 template <
typename RecordType>
139 bool readDefaultRecords(std::vector<RecordType>& recVec);
142 template <
typename RecordType>
143 bool readRecordsFromDir(std::vector<RecordType>& recVec,
144 const std::string& importDirName);
165 #define DtDeSettings_INL_
166 #include <vrvCore/DtDeSettings.inl>
167 #undef DtDeSettings_INL_