SPAOP
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | List of all members
wonder::XmlParser Class Referenceabstract

An interface defining a class that sets the parameters of one or several sources from an XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd). More...

#include <XmlParser.h>

Public Member Functions

virtual ~XmlParser ()
 Destructor. More...
 
virtual void updateSourceFromCWonderProject (const std::string &cwProjectXml, Source *source)=0
 Sets the properties of a Source object to the values given in a cWONDER project XML string (if the string contains information for a source with the same ID). More...
 
virtual void updateSourceCollectionFromCWonderProject (const std::string &cwProjectXml, SourceCollection &sources)=0
 Sets the properties of a SourceCollection to the values given in a cWONDER project XML string. More...
 

Detailed Description

An interface defining a class that sets the parameters of one or several sources from an XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd).

Constructor & Destructor Documentation

virtual wonder::XmlParser::~XmlParser ( )
inlinevirtual

Destructor.

Member Function Documentation

virtual void wonder::XmlParser::updateSourceCollectionFromCWonderProject ( const std::string &  cwProjectXml,
SourceCollection sources 
)
pure virtual

Sets the properties of a SourceCollection to the values given in a cWONDER project XML string.

Parameters
cwProjectXmlAn XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd).
sourcesThe SourceCollection that shall be updated.
virtual void wonder::XmlParser::updateSourceFromCWonderProject ( const std::string &  cwProjectXml,
Source source 
)
pure virtual

Sets the properties of a Source object to the values given in a cWONDER project XML string (if the string contains information for a source with the same ID).

Parameters
cwProjectXmlAn XML formatted string describing a cWONDER project (as defined in cwonder_project.dtd).
sourceThe Source object that shall be updated.