Settings class for reading and writing settings to/from files.
|
| | DtElementDefinitionSettings (DtDe &de, const std::string &name, const std::string &ext) |
| |
| virtual | ~DtElementDefinitionSettings () |
| |
| virtual std::string | defaultFilePath () const |
| |
| virtual std::string | defaultBinaryFilePath () const |
| |
| virtual std::string | factoryFilePath () const |
| |
| virtual std::string | backupFilePath () const |
| |
|
| virtual std::string | defaultDirPath () const |
| |
| virtual std::string | factoryDirPath () const |
| |
| virtual std::string | backupDirPath () const |
| |
| virtual std::string | entityElementDefinitionDirPath () const |
| |
| virtual std::string | tacticalGraphicsElementDefinitionDirPath () const |
| |
| virtual std::string | unitElementDefinitionDirPath () const |
| |
|
| virtual void | setDefinitionName (const std::string &dirName) |
| |
| virtual std::string | definitionName () const |
| |
|
| virtual void | setSubfolderName (const std::string &subDirName) |
| |
| virtual std::string | subfolderName () const |
| |
| virtual | ~DtDeSettings () |
| |
| const std::string & | name () const |
| |
| const std::string & | extension () const |
| |
| template<typename RecordType > |
| bool | readDefaultRecord (RecordType &r) |
| |
| template<typename RecordType > |
| bool | readDefaultRecordAndName (RecordType &r, std::string &fName) |
| |
| template<typename RecordType > |
| bool | readBackupRecord (RecordType &r) |
| |
| template<typename RecordType > |
| bool | readFactoryDefaultRecord (RecordType &r) const |
| |
| template<typename RecordType > |
| bool | writeDefaultRecord (const RecordType &r) |
| |
| template<typename RecordType > |
| bool | writeBackupRecord (const RecordType &r) |
| |
| template<typename RecordType > |
| bool | readRecordsFrom (std::map< std::string, RecordType > &r, const std::string &importFileName) |
| |
| template<typename RecordType > |
| bool | readRecordFrom (RecordType &r, const std::string &importFileName) const |
| |
| template<typename RecordType > |
| bool | readRecordFromBinary (RecordType &r, const std::string &importFileName) |
| |
| template<typename RecordType > |
| bool | writeRecordTo (const RecordType &r, const std::string &exportFileName) const |
| |
| template<typename RecordType > |
| bool | writeRecordToBinary (const RecordType &r, const std::string &exportFileName) const |
| |
| void | setAutoSave (bool b) |
| |
| bool | autoSave () const |
| |
| template<typename RecordType > |
| bool | readDefaultRecords (std::map< std::string, RecordType > &recordMap) |
| |
| template<typename RecordType > |
| bool | readRecordFromFile (RecordType &record, const std::string &importFileName) |
| |
| template<typename RecordType > |
| bool | readRecordsFromDir (std::map< std::string, RecordType > &recordMap, const std::string &importDirName) |
| |
| bool | defaultFileExists () const |
| |
| bool | defaultBinaryFileExists () const |
| |
| bool | factoryFileExists () const |
| |
| bool | backupFileExists () const |
| |
| bool | defaultDirExists () const |
| |
| bool | factoryDirExists () const |
| |
| bool | backupDirExists () const |
| |
| bool | mergedFilesExist () const |
| |
virtual const std::vector
< std::string > & | mergedFiles () const |
| |
| virtual void | addMergedFile (std::string fileName) |
| |
| bool | entityElementDefinitionDirExists () const |
| |
| bool | tacticalGraphicsElementDefinitionDirExists () const |
| |
| bool | unitElementDefinitionDirExists () const |
| |