27 #include "../../../geometry/serialization/xml/Serializer.h" 
   28 #include "../../../maptools/serialization/xml/Utils.h" 
   29 #include "../../../se/serialization/xml/Style.h" 
   30 #include "../../../xml/AbstractWriter.h" 
   31 #include "../../../xml/Reader.h" 
   32 #include "../../WMSLayer.h" 
   40   std::string 
id = reader.
getAttr(
"id");
 
  116   std::auto_ptr<te::se::Style> style;
 
  138   layer->setSRID(srid);
 
  139   layer->setExtent(*mbr.get());
 
  141   layer->setDataSetName(dataset);
 
  142   layer->setDataSourceId(datasourceId);
 
  143   layer->setRendererType(rendererId);
 
  145   layer->setStyle(style.release());
 
  148     layer->setGrouping(grouping);
 
  151     layer->setChart(chart.release());
 
  153   return layer.release();
 
te::map::AbstractLayer * LayerReader(te::xml::Reader &reader)
 
TEMAPEXPORT std::string ReadLayerVisibility(te::xml::Reader &reader)
 
TEMAPEXPORT void WriteAbstractLayer(const te::map::AbstractLayer *layer, te::xml::AbstractWriter &writer)
 
virtual boost::int32_t getElementValueAsInt32() const 
It returns the element data value in the case of VALUE node. 
 
This class models a XML reader object. 
 
This is the base class for layers. 
 
virtual const te::gm::Envelope & getExtent() const 
It returns the Layer extent (or minimum bounding box). 
 
TEMAPEXPORT std::auto_ptr< te::map::Chart > ReadLayerChart(te::xml::Reader &reader)
 
virtual void writeStartElement(const std::string &qName)=0
 
TEMAPEXPORT std::string ReadLayerTitle(te::xml::Reader &reader)
 
const std::string & getDataSetName() const 
 
This class models a XML writer object. 
 
virtual std::string getElementLocalName() const =0
It returns the local part of the element name in the case of an element node. 
 
TEMAPEXPORT te::map::Grouping * ReadLayerGrouping(te::xml::Reader &reader)
 
te::map::CompositionMode getCompositionMode() const 
It returns the composition mode. 
 
void LayerWriter(const te::map::AbstractLayer *alayer, te::xml::AbstractWriter &writer)
 
CompositionMode
The composition mode used to render the canvas. 
 
This class contains the parameters needed for grouping the values of a Property. 
 
virtual void writeElement(const std::string &qName, const std::string &value)=0
 
A layer with reference to a WMS Layer. 
 
const std::string & getDataSourceId() const 
 
static Style & getInstance()
It returns a reference to the singleton instance. 
 
virtual te::se::Style * getStyle() const 
It returns the Style associated to the layer. 
 
TEGEOMEXPORT std::auto_ptr< te::gm::Envelope > ReadExtent(te::xml::Reader &reader)
 
TEGEOMEXPORT void SaveExtent(const te::gm::Envelope &e, te::xml::AbstractWriter &writer)
 
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. 
 
TEMAPEXPORT te::map::Visibility GetVisibility(const std::string &visible)
 
const std::string & getRendererType() const 
 
virtual NodeType getNodeType() const =0
It return the type of node read. 
 
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
 
virtual int getSRID() const 
It returns the Spatial Reference System ID associated to the Layer. 
 
virtual bool next()=0
It gets the next event to be read.