27 #include "../common/STLUtils.h"
28 #include "../xlink/SimpleLink.h"
39 m_semanticTypeIdentifiers(0),
48 delete m_semanticTypeIdentifiers;
77 if(m_semanticTypeIdentifiers == 0)
78 m_semanticTypeIdentifiers =
new std::vector<std::string>;
80 m_semanticTypeIdentifiers->push_back(semanticTypeIdentifier);
85 assert(m_semanticTypeIdentifiers && (i < m_semanticTypeIdentifiers->size()));
86 return (*m_semanticTypeIdentifiers)[i];
91 return m_semanticTypeIdentifiers;
102 m_rules.push_back(rule);
107 assert(i < m_rules.size());
113 assert(onlineResource);
114 m_onlineResources.push_back(onlineResource);
119 return m_onlineResources;
124 assert(i < m_onlineResources.size());
125 return m_onlineResources[i];
#define TE_SE_DEFAULT_VERSION
It specifies the default version used by OGC Symbology Encoding.
A Description gives human-readable descriptive information for the object it is included within...
void setDescription(Description *d)
void setVersion(const std::string &v)
virtual ~Style()
Virtual destructor.
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
void push_back(const std::string &semanticTypeIdentifier)
A Description gives human-readable descriptive information for the object it is included within...
Rule * getRule(std::size_t i) const
const std::vector< Rule * > & getRules() const
const std::vector< te::xl::SimpleLink * > & getOnlineResources() const
Style()
It initializes a new Style.
const std::string & getSemanticTypeIdentifier(std::size_t i)
void setName(std::string *name)
A Rule is used to attach property/scale conditions to and group the individual symbols used for rende...
const std::string * getName() const
const te::xl::SimpleLink * getOnlineResource(std::size_t i) const
const std::vector< std::string > * getSemanticTypeIdentifiers() const
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
const Description * getDescription() const
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
const std::string & getVersion() const