Auxiliary classes and functions to serialize style informations from a XML document. More...
#include "../../common/Translator.h"#include "../../xml/Reader.h"#include "../../xml/Writer.h"#include "../../se/CoverageStyle.h"#include "../../se/FeatureTypeStyle.h"#include "../Exception.h"#include "Description.h"#include "Rule.h"#include "Style.h"#include "Utils.h"#include <cassert>#include <boost/format.hpp>Go to the source code of this file.
Functions | |
| te::se::Style * | CoverageStyleReader (te::xml::Reader &reader) |
| void | CoverageStyleWriter (const te::se::Style *layer, te::xml::Writer &writer) |
| te::se::Style * | FeatureTypeStyleReader (te::xml::Reader &reader) |
| void | FeatureTypeStyleWriter (const te::se::Style *style, te::xml::Writer &writer) |
Auxiliary classes and functions to serialize style informations from a XML document.
Definition in file Style.cpp.
| te::se::Style * CoverageStyleReader | ( | te::xml::Reader & | reader | ) |
Definition at line 162 of file Style.cpp.
References te::xml::END_ELEMENT, te::xml::Reader::getAttr(), te::xml::Reader::getElementLocalName(), te::xml::Reader::getElementValue(), te::xml::Reader::getNodeType(), te::xml::Reader::getNumberOfAttrs(), te::xml::Reader::next(), te::serialize::ReadDescription(), te::serialize::ReadRule(), te::xml::START_ELEMENT, and te::xml::VALUE.
Referenced by te::serialize::Style::Style().
| void CoverageStyleWriter | ( | const te::se::Style * | layer, |
| te::xml::Writer & | writer | ||
| ) |
Definition at line 279 of file Style.cpp.
References te::se::CoverageStyle::getCoverageName(), te::se::Style::getDescription(), te::se::Style::getName(), te::se::Style::getOnlineResource(), te::se::Style::getOnlineResources(), te::se::Style::getRule(), te::se::Style::getRules(), te::se::Style::getSemanticTypeIdentifiers(), te::se::Style::getVersion(), te::serialize::Save(), te::xml::Writer::writeAttribute(), te::xml::Writer::writeElement(), te::xml::Writer::writeEndElement(), te::serialize::WriteOnlineResourceHelper(), te::xml::Writer::writeStartElement(), and te::serialize::WriteStringPtrHelper().
Referenced by te::serialize::Style::Style().
| te::se::Style * FeatureTypeStyleReader | ( | te::xml::Reader & | reader | ) |
Definition at line 93 of file Style.cpp.
References te::xml::END_ELEMENT, te::xml::Reader::getAttr(), te::xml::Reader::getElementLocalName(), te::xml::Reader::getElementValue(), te::xml::Reader::getNodeType(), te::xml::Reader::getNumberOfAttrs(), te::xml::Reader::next(), te::serialize::ReadDescription(), te::serialize::ReadRule(), te::xml::START_ELEMENT, and te::xml::VALUE.
Referenced by te::serialize::Style::Style().
| void FeatureTypeStyleWriter | ( | const te::se::Style * | style, |
| te::xml::Writer & | writer | ||
| ) |
Definition at line 231 of file Style.cpp.
References te::se::Style::getDescription(), te::se::FeatureTypeStyle::getFeatureTypeName(), te::se::Style::getName(), te::se::Style::getOnlineResource(), te::se::Style::getOnlineResources(), te::se::Style::getRule(), te::se::Style::getRules(), te::se::Style::getSemanticTypeIdentifiers(), te::se::Style::getVersion(), te::serialize::Save(), te::xml::Writer::writeAttribute(), te::xml::Writer::writeElement(), te::xml::Writer::writeEndElement(), te::serialize::WriteOnlineResourceHelper(), te::xml::Writer::writeStartElement(), and te::serialize::WriteStringPtrHelper().
Referenced by te::serialize::Style::Style().