UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Classes | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
hds::ModuleContextXMLParser Class Reference

#include <hds_module_context_xml_parser.hpp>

Classes

struct  Tags
 

Public Member Functions

 ModuleContextXMLParser ()
 
 ModuleContextXMLParser (QIODevice &dev)
 
virtual ~ModuleContextXMLParser ()
 
bool setContent (QIODevice &dev)
 
void setContent (const hds::BatchModuleContext &context)
 
bool isContentSet () const
 
virtual bool getModuleContext (hds::BatchModuleContext &context)
 
const QDomDocument & domDocument () const
 

Protected Member Functions

void xml2module_name (hds::BatchModuleContext &context, QDomNode &node)
 
void xml2module_comment (hds::BatchModuleContext &context, QDomNode &node)
 
void xml2module_dt (hds::BatchModuleContext &context, QDomNode &node)
 
void xml2module_author (hds::BatchModuleContext &context, QDomNode &node)
 
void xml2module_parameters (hds::BatchModuleContext &context, QDomNode &node)
 

Protected Attributes

QDomDocument m_doc
 
bool m_bIsContentSet
 

Detailed Description

Module parameters XML parser.

Constructor & Destructor Documentation

hds::ModuleContextXMLParser::ModuleContextXMLParser ( )

Default constructor.

hds::ModuleContextXMLParser::ModuleContextXMLParser ( QIODevice &  dev)

Construct object with I/O XML content device provided.

virtual hds::ModuleContextXMLParser::~ModuleContextXMLParser ( )
virtual

Destruct object.

Member Function Documentation

const QDomDocument& hds::ModuleContextXMLParser::domDocument ( ) const
inline

Get DOM document reference.

virtual bool hds::ModuleContextXMLParser::getModuleContext ( hds::BatchModuleContext context)
virtual
Get module context form current XML content. Module context will be replaced.

Return false on error.

bool hds::ModuleContextXMLParser::isContentSet ( ) const
inline

Is content set?

bool hds::ModuleContextXMLParser::setContent ( QIODevice &  dev)

Set content device. Returns false on error.

void hds::ModuleContextXMLParser::setContent ( const hds::BatchModuleContext context)

Set provided module context into XML content.

Member Data Documentation

QDomDocument hds::ModuleContextXMLParser::m_doc
protected

< XML document. Is content set?


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