Reader/writer for .xml resources files.
Public Member Functions |
| | XmlFormat () |
| | Constructor.
|
| | ~XmlFormat () |
| | 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 xml-file.
|
| virtual bool | save (const QString &, const QMap< QString, Section > &) |
| | Save resources to the xml-file.
|
Private Member Functions |
| QString | docTag () const |
| | Get document tag name.
|
| QString | sectionTag () const |
| | Get section tag name.
|
| QString | parameterTag () const |
| | Get parameter tag name.
|
| QString | importTag () const |
| | Get import tag name.
|
| QString | nameAttribute () const |
| | Get parameter tag's "name" attribute name.
|
| QString | valueAttribute () const |
| | Get parameter tag's "value" attribute name.
|
| bool | load (const QString &, QMap< QString, Section > &, QSet< QString > &) |
| | Load resources from xml-file.
|
Constructor & Destructor Documentation
| QtxResourceMgr.XmlFormat::XmlFormat |
( |
| ) |
|
| QtxResourceMgr.XmlFormat::~XmlFormat |
( |
| ) |
|
Member Function Documentation
| bool QtxResourceMgr.XmlFormat::load |
( |
const QString & |
fname, |
|
|
QMap< QString, Section > & |
secMap |
|
) |
| [protected, virtual] |
| bool QtxResourceMgr.XmlFormat::save |
( |
const QString & |
fname, |
|
|
const QMap< QString, Section > & |
secMap |
|
) |
| [protected, virtual] |
| QString QtxResourceMgr.XmlFormat::docTag |
( |
| ) |
const [private] |
| QString QtxResourceMgr.XmlFormat::sectionTag |
( |
| ) |
const [private] |
| QString QtxResourceMgr.XmlFormat::parameterTag |
( |
| ) |
const [private] |
| QString QtxResourceMgr.XmlFormat::importTag |
( |
| ) |
const [private] |
| QString QtxResourceMgr.XmlFormat::nameAttribute |
( |
| ) |
const [private] |
| QString QtxResourceMgr.XmlFormat::valueAttribute |
( |
| ) |
const [private] |
| bool QtxResourceMgr.XmlFormat::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] |