27 #include "../../../fe/PropertyName.h"
28 #include "../../../se/Symbolizer.h"
29 #include "../../../xml/AbstractWriter.h"
30 #include "../../../xml/Reader.h"
31 #include "../../../xlink/serialization/xml/XLinkSerializer.h"
32 #include "../../../fe/serialization/xml/Expression.h"
33 #include "../../Description.h"
34 #include "../../ParameterValue.h"
35 #include "../../SelectedChannel.h"
44 if(s != 0 && !s->empty()) writer.
writeElement(elementName, *s);
95 std::string version = reader.
getAttr(
"version");
99 std::string uom = reader.
getAttr(
"uom");
153 std::auto_ptr<te::fe::PropertyName> pName(dynamic_cast<te::fe::PropertyName*>(exp));
159 return pName.release();
A selected channel to be display.
void setVersion(const std::string &version)
This class models a XML reader object.
virtual void writeStartElement(const std::string &qName)=0
A Symbolizer describes how a feature is to appear on a map.
const std::string & getVersion() const
This class models a XML writer object.
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
void WriteStringPtrHelper(const std::string &elementName, const std::string *s, te::xml::AbstractWriter &writer)
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
void WriteBaseSymbolizerHelper(const te::xl::SimpleLink *link, te::xml::AbstractWriter &writer)
void setName(const std::string &name)
virtual void writeElement(const std::string &qName, const std::string &value)=0
static T & getInstance()
It returns a reference to the singleton instance.
void WriteSymbolizerHelper(const te::se::Symbolizer *symbolizer, te::xml::AbstractWriter &writer)
const std::string & getName() const
This class is used to encode the name of any property of an object.
This is an abstract class that models a Filter Encoding expression.
TEDATAACCESSEXPORT void Save(const std::string &fileName)
void setDescription(Description *d)
Utility methods for the Symbology serialization.
void WriteOnlineResourceHelper(const te::xl::SimpleLink *link, te::xml::AbstractWriter &writer)
void WriteGeometryPropertyHelper(const te::fe::PropertyName *p, te::xml::AbstractWriter &writer)
te::fe::PropertyName * ReadGeometryPropertyHelper(te::xml::Reader &reader)
virtual std::string getAttr(const std::string &name) const =0
It returns the attribute value in the case of an element node with valid attributes.
Data serialization for the Symbology Encoder module.
virtual void writeAttribute(const std::string &attName, const std::string &value)=0
const Description * getDescription() const
virtual NodeType getNodeType() const =0
It return the type of node read.
const te::xl::SimpleLink * getBaseSymbolizer() const
virtual std::string getElementValue() const =0
It returns the element data value in the case of VALUE node.
virtual void writeEndElement(const std::string &qName)=0
void WriteParameterValuePtrHelper(const std::string &elementName, const te::se::ParameterValue *p, te::xml::AbstractWriter &writer)
TESEEXPORT te::se::Description * ReadDescription(te::xml::Reader &reader)
virtual bool hasAttrs() const =0
It tells if the element has attributes in the case of an element node.
virtual bool next()=0
It gets the next event to be read.
void ReadSymbolizerHelper(te::se::Symbolizer *symbolizer, te::xml::Reader &reader)
void WriteSelectedChannelHelper(const std::string &elementName, const te::se::SelectedChannel *sc, te::xml::AbstractWriter &writer)