VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions
makVrv::DtElementDefinitionSettings Class Reference

Settings class for reading and writing settings to/from files. More...

Inheritance diagram for makVrv::DtElementDefinitionSettings:
Inheritance graph
[legend]

Public Member Functions

 DtElementDefinitionSettings (DtDe &de, const std::string &name, const std::string &ext)
 CTOR After creation this should be registered with the DtDeSettingsManager.
virtual ~DtElementDefinitionSettings ()
 DTOR.
virtual std::string defaultFilePath () const
virtual std::string defaultBinaryFilePath () const
virtual std::string factoryFilePath () const
virtual std::string backupFilePath () const
- Public Member Functions inherited from makVrv::DtDeSettings
virtual ~DtDeSettings ()
 DTOR.
const std::string & name () const
 Get the settings name.
const std::string & extension () const
 Get the extension for this settings type.
template<typename RecordType >
bool readDefaultRecord (RecordType &r)
 Read a record from the default settings.
template<typename RecordType >
bool readBackupRecord (RecordType &r)
 Read a record from the default settings.
template<typename RecordType >
bool readFactoryDefaultRecord (RecordType &r)
template<typename RecordType >
bool writeDefaultRecord (const RecordType &r)
 Write a record as the default settings.
template<typename RecordType >
bool writeBackupRecord (const RecordType &r)
 Write a record as the default settings.
template<typename RecordType >
bool readRecordFrom (RecordType &r, const std::string &importFileName)
 Read a record from a specific location.
template<typename RecordType >
bool readRecordFromBinary (RecordType &r, const std::string &importFileName)
 Read a record from a specific location.
template<typename RecordType >
bool writeRecordTo (const RecordType &r, const std::string &exportFileName) const
 Write a record to a specific location.
template<typename RecordType >
bool writeRecordToBinary (const RecordType &r, const std::string &exportFileName) const
 Write a record to a specific location.
void setAutoSave (bool b)
bool autoSave () const
bool defaultFileExists () const
bool defaultBinaryFileExists () const
bool factoryFileExists () const
bool backupFileExists () const

Additional Inherited Members

- Static Public Member Functions inherited from makVrv::DtDeSettings
static std::string binaryFileExtension (void)
- Protected Member Functions inherited from makVrv::DtDeSettings
 DtDeSettings (DtDe &de, const std::string &name, const std::string &ext)
- Protected Attributes inherited from makVrv::DtDeSettings
DtDemyDe
std::string myName
std::string myExtension
bool myAutoSave
- Static Protected Attributes inherited from makVrv::DtDeSettings
static const std::string myBinaryFileExtension

Detailed Description

Settings class for reading and writing settings to/from files.

Constructor & Destructor Documentation

makVrv::DtElementDefinitionSettings::DtElementDefinitionSettings ( DtDe de,
const std::string &  name,
const std::string &  ext 
)

CTOR After creation this should be registered with the DtDeSettingsManager.

virtual makVrv::DtElementDefinitionSettings::~DtElementDefinitionSettings ( )
virtual

DTOR.

Member Function Documentation

virtual std::string makVrv::DtElementDefinitionSettings::defaultFilePath ( ) const
virtual

Reimplemented from makVrv::DtDeSettings.

virtual std::string makVrv::DtElementDefinitionSettings::defaultBinaryFilePath ( ) const
virtual

Reimplemented from makVrv::DtDeSettings.

virtual std::string makVrv::DtElementDefinitionSettings::factoryFilePath ( ) const
virtual

Reimplemented from makVrv::DtDeSettings.

virtual std::string makVrv::DtElementDefinitionSettings::backupFilePath ( ) const
virtual

Reimplemented from makVrv::DtDeSettings.


The documentation for this class was generated from the following file:

Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)