27 #include "../../se/Rule.h" 
   28 #include "../../xml/Reader.h" 
   29 #include "../../xml/Writer.h" 
   30 #include "../fe/Filter.h" 
   82     rule->enableElseFilter();
 
   94     rule->setMinScaleDenominator(minScale);
 
  107     rule->setMaxScaleDenominator(maxScale);
 
  122   return rule.release();
 
  154   const std::vector<te::se::Symbolizer*>& symbs = rule->
getSymbolizers();
 
  155   for(std::size_t i = 0; i < symbs.size(); ++i)
 
  156     Symbolizer::getInstance().write(symbs[i], writer);
 
const std::string * getName() const 
Auxiliary classes and functions to serialize Symbolizer informations from a XML document. 
Utility methods for Symbology serialization. 
TEDATAACCESSEXPORT void Save(const std::string &fileName)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
This class models a XML reader object. 
TESERIALIZATIONEXPORT te::fe::Filter * ReadFilter(te::xml::Reader &reader)
virtual bool next()=0
It gets the next event to be read. 
TESERIALIZATIONEXPORT te::se::Description * ReadDescription(te::xml::Reader &reader)
const std::vector< Symbolizer * > & getSymbolizers() const 
const Graphic * getLegendGraphic() const 
virtual double getElementValueAsDouble() const 
It returns the element data value in the case of VALUE node. 
virtual void writeStartElement(const std::string &qName)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
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)
TESERIALIZATIONEXPORT void Save(const te::fe::Filter *filter, te::xml::Writer &writer)
const Description * getDescription() const 
Support for Graphic serialization. 
Support for Description serialization. 
virtual void writeElement(const std::string &qName, const std::string &value)
const te::fe::Filter * getFilter() const 
void WriteStringPtrHelper(const std::string &elementName, const std::string *s, te::xml::Writer &writer)
bool hasElseFilter() const 
TESERIALIZATIONEXPORT te::se::Graphic * ReadGraphic(te::xml::Reader &reader)
const double & getMinScaleDenominator() const 
static Symbolizer & getInstance()
It returns a reference to the singleton instance. 
virtual NodeType getNodeType() const =0
It return the type of node read. 
const double & getMaxScaleDenominator() const 
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node. 
A Graphic is a graphic symbol with an inherent shape, color(s), and possibly size. 
TESERIALIZATIONEXPORT te::se::Rule * ReadRule(te::xml::Reader &reader)
This class models a XML writer object.