#include <sailwriter-xml.h>

Public Member Functions | |
| XmlWriterTempl (const QString &name, const QString ext=".xml", const QString desc="XML files") | |
| virtual void | write (const objtype &obj, const QString &filename) const |
| const objtype | read (const QString &filename) const |
Protected Attributes | |
| QString | _name |
Definition at line 35 of file sailwriter-xml.h.
| XmlWriterTempl< objtype >::XmlWriterTempl | ( | const QString & | name, | |
| const QString | ext = ".xml", |
|||
| const QString | desc = "XML files" | |||
| ) | [inline] |
The constructor.
| name | the object's name | |
| ext | the file extension to show (defaults to ".xml") | |
| desc | a description of the file type (defaults to "XML files") |
Definition at line 48 of file sailwriter-xml.h.
| virtual void XmlWriterTempl< objtype >::write | ( | const objtype & | obj, | |
| const QString & | filename | |||
| ) | const [inline, virtual] |
Write object to XML format.
| obj | the object to write | |
| filename | the file to write to |
Implements CFileWriter< objtype >.
Definition at line 60 of file sailwriter-xml.h.
| const objtype XmlWriterTempl< objtype >::read | ( | const QString & | filename | ) | const [inline, virtual] |
Read object from an XML file.
| filename | the file we read from |
Reimplemented from CFileWriter< objtype >.
Definition at line 71 of file sailwriter-xml.h.
QString XmlWriterTempl< objtype >::_name [protected] |
the object's name
Definition at line 39 of file sailwriter-xml.h.
Referenced by XmlWriterTempl< CBoatDef >::read(), and XmlWriterTempl< CBoatDef >::write().
1.5.6