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 !=
nullptr && !s->empty()) writer.
writeElement(elementName, *s);
95 std::string version = reader.
getAttr(
"version");
99 std::string uom = reader.
getAttr(
"uom");
153 std::unique_ptr<te::fe::PropertyName> pName(dynamic_cast<te::fe::PropertyName*>(exp));
159 return pName.release();
TEXSDEXPORT void Save(All *all, te::xml::AbstractWriter &writer)
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
virtual bool hasAttrs() const =0
It tells if the element has attributes in the case of an element node.
A Symbolizer describes how a feature is to appear on a map.
const std::string & getVersion() const
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node.
Utility methods for the Symbology serialization.
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)
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
who udp maintains data bases showing who s shell tcp cmd syslog udp printer tcp spooler printer udp spooler videotex tcp videotex videotex udp videotex talk tcp like tenex link
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.
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.
void setDescription(Description *d)
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)
Data serialization for the Symbology Encoder module.
virtual void writeAttribute(const std::string &attName, const std::string &value)=0
const Description * getDescription() const
const te::xl::SimpleLink * getBaseSymbolizer() const
virtual void writeEndElement(const std::string &qName)=0
virtual std::string getElementValue() const =0
It returns the element data value in the case of VALUE node.
virtual NodeType getNodeType() const =0
It return the type of node read.
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 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)