XmlWriterTempl< objtype > Class Template Reference
[File input and output]

#include <sailwriter-xml.h>

Inheritance diagram for XmlWriterTempl< objtype >:

CFileWriter< objtype >

List of all members.

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


Detailed Description

template<class objtype>
class XmlWriterTempl< objtype >

This class allows you to write sailcut objects to an XML file.

See also:
CPanelGroupXmlWriter

CSailDefXmlWriter

Definition at line 35 of file sailwriter-xml.h.


Constructor & Destructor Documentation

template<class objtype>
XmlWriterTempl< objtype >::XmlWriterTempl ( const QString &  name,
const QString  ext = ".xml",
const QString  desc = "XML files" 
) [inline]

The constructor.

Parameters:
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.


Member Function Documentation

template<class objtype>
virtual void XmlWriterTempl< objtype >::write ( const objtype &  obj,
const QString &  filename 
) const [inline, virtual]

Write object to XML format.

Parameters:
obj the object to write
filename the file to write to

Implements CFileWriter< objtype >.

Definition at line 60 of file sailwriter-xml.h.

template<class objtype>
const objtype XmlWriterTempl< objtype >::read ( const QString &  filename  )  const [inline, virtual]

Read object from an XML file.

Parameters:
filename the file we read from

Reimplemented from CFileWriter< objtype >.

Definition at line 71 of file sailwriter-xml.h.


Member Data Documentation

template<class objtype>
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().


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

Generated on Sun Mar 22 21:38:32 2009 for Sailcut CAD by  doxygen 1.5.6