Reader/writer for .ini resources files. More...
Public Member Functions | |
IniFormat () | |
Constructor. More... | |
~IniFormat () | |
Destructor. More... | |
Public Member Functions inherited from QtxResourceMgr::Format | |
Format (const QString &) | |
Constructor. More... | |
virtual | ~Format () |
Destructor. More... | |
QString | format () const |
Get the format name. More... | |
QStringList | options () const |
Get options names. More... | |
QString | option (const QString &) const |
Get the value of the option with specified name. More... | |
void | setOption (const QString &, const QString &) |
Set the value of the option with specified name. More... | |
bool | load (Resources *) |
Load resources from the resource file. More... | |
bool | save (Resources *) |
Save resources to the resource file. More... | |
Protected Member Functions | |
virtual bool | load (const QString &, QMap< QString, Section > &) |
Load resources from ini-file. More... | |
virtual bool | save (const QString &, const QMap< QString, Section > &) |
Save resources to the ini-file. More... | |
Private Member Functions | |
bool | load (const QString &, QMap< QString, Section > &, QSet< QString > &) |
Load resources from xml-file. More... | |
QtxResourceMgr::IniFormat::IniFormat | ( | ) |
QtxResourceMgr::IniFormat::~IniFormat | ( | ) |
|
protectedvirtual |
fname | resources file name |
secMap | resources map to be filled in |
true
on success and false
on error Implements QtxResourceMgr::Format.
References QtxResourceMgr::load().
|
private |
fname | resources file name |
secMap | resources map to be filled in |
importHistory | list of already imported resources files (to prevent import loops) |
true
on success or false
on error References Qtx::Always, IMapConstIterator< Key, Value >::key(), QtxResourceMgr::load(), Qtx::makeEnvVarSubst(), QtxResourceMgr::option(), rx, and IMapConstIterator< Key, Value >::value().
|
protectedvirtual |
fname | resources file name |
secMap | resources map |
true
on success and false
on error Implements QtxResourceMgr::Format.
References Qtx::mkDir(), and IMapConstIterator< Key, Value >::value().