27 #include "../../fe/PropertyName.h"
28 #include "../../se/Symbolizer.h"
29 #include "../../xml/Reader.h"
30 #include "../../xml/Writer.h"
31 #include "../xlink/SimpleLink.h"
32 #include "../fe/Expression.h"
43 if(s != 0 && !s->empty()) writer.
writeElement(elementName, *s);
94 std::string version = reader.
getAttr(
"version");
98 std::string uom = reader.
getAttr(
"uom");
152 std::auto_ptr<te::fe::PropertyName> pName(dynamic_cast<te::fe::PropertyName*>(exp));
158 return pName.release();
Support for SelectedChannel serialization.
This class is used to encode the name of any property of an object.
const std::string & getName() const
const std::string & getVersion() const
void WriteSymbolizerHelper(const te::se::Symbolizer *symbolizer, te::xml::Writer &writer)
Utility methods for Symbology serialization.
TEDATAACCESSEXPORT void Save(const std::string &fileName)
A Symbolizer describes how a feature is to appear on a map.
This class models a XML reader object.
void setName(const std::string &name)
void WriteParameterValuePtrHelper(const std::string &elementName, const te::se::ParameterValue *p, te::xml::Writer &writer)
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.
TESERIALIZATIONEXPORT te::se::Description * ReadDescription(te::xml::Reader &reader)
void WriteSelectedChannelHelper(const std::string &elementName, const te::se::SelectedChannel *sc, te::xml::Writer &writer)
A selected channel to be display.
const te::xl::SimpleLink * getBaseSymbolizer() const
virtual void writeStartElement(const std::string &qName)
void WriteOnlineResourceHelper(const te::xl::SimpleLink *link, te::xml::Writer &writer)
virtual void writeAttribute(const std::string &attName, const std::string &value)
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)
te::fe::PropertyName * ReadGeometryPropertyHelper(te::xml::Reader &reader)
void setDescription(Description *d)
void setVersion(const std::string &version)
This is an abstract class that models a Filter Encoding expression.
const Description * getDescription() const
Support for Description serialization.
void ReadSymbolizerHelper(te::se::Symbolizer *symbolizer, te::xml::Reader &reader)
virtual void writeElement(const std::string &qName, const std::string &value)
void WriteGeometryPropertyHelper(const te::fe::PropertyName *p, te::xml::Writer &writer)
void WriteStringPtrHelper(const std::string &elementName, const std::string *s, te::xml::Writer &writer)
static Expression & getInstance()
It returns a reference to the singleton instance.
virtual NodeType getNodeType() const =0
It return the type of node read.
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::Writer &writer)
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
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.
This class models a XML writer object.