Reader/writer for .ini resources files.
Public Member Functions |
| | IniFormat () |
| | Constructor.
|
| | ~IniFormat () |
| | Destructor.
|
| QString | format () const |
| | Get the format name.
|
| QStringList | options () const |
| | Get options names.
|
| QString | option (const QString &) const |
| | Get the value of the option with specified name.
|
| void | setOption (const QString &, const QString &) |
| | Set the value of the option with specified name.
|
| bool | load (Resources *) |
| | Load resources from the resource file.
|
| bool | save (Resources *) |
| | Save resources to the resource file.
|
Protected Member Functions |
| virtual bool | load (const QString &, QMap< QString, Section > &) |
| | Load resources from ini-file.
|
| virtual bool | save (const QString &, const QMap< QString, Section > &) |
| | Save resources to the ini-file.
|
Private Member Functions |
| bool | load (const QString &, QMap< QString, Section > &, QSet< QString > &) |
| | Load resources from xml-file.
|
Constructor & Destructor Documentation
| QtxResourceMgr.IniFormat::IniFormat |
( |
| ) |
|
| QtxResourceMgr.IniFormat::~IniFormat |
( |
| ) |
|
Member Function Documentation
| bool QtxResourceMgr.IniFormat::load |
( |
const QString & |
fname, |
|
|
QMap< QString, Section > & |
secMap |
|
) |
| [protected, virtual] |
| bool QtxResourceMgr.IniFormat::save |
( |
const QString & |
fname, |
|
|
const QMap< QString, Section > & |
secMap |
|
) |
| [protected, virtual] |
| bool QtxResourceMgr.IniFormat::load |
( |
const QString & |
fname, |
|
|
QMap< QString, Section > & |
secMap, |
|
|
QSet< QString > & |
importHistory |
|
) |
| [private] |
| QString QtxResourceMgr.Format::format |
( |
| ) |
const [inherited] |
| QStringList QtxResourceMgr.Format::options |
( |
| ) |
const [inherited] |
- Returns:
- list of the format options
| QString QtxResourceMgr.Format::option |
( |
const QString & |
opt | ) |
const [inherited] |
If option doesn't exist then null QString is returned.
- Parameters:
-
- Returns:
- option value
| void QtxResourceMgr.Format::setOption |
( |
const QString & |
opt, |
|
|
const QString & |
val |
|
) |
| [inherited] |
- Parameters:
-
| opt | option name |
| val | option value |
| bool QtxResourceMgr.Format::load |
( |
Resources * |
res | ) |
[inherited] |
| bool QtxResourceMgr.Format::save |
( |
Resources * |
res | ) |
[inherited] |