26 #ifndef __TERRALIB_EDIT_INTERNAL_REPOSITORYMANAGER_H
27 #define __TERRALIB_EDIT_INTERNAL_REPOSITORYMANAGER_H
30 #include "../common/Singleton.h"
92 void clear(
const std::string& source);
96 void remove(
const std::string& source);
Template support for singleton pattern.
This class represents an unique id for a data set element.
This is a singleton for managing edit repositories.
void addGeometry(const std::string &source, te::da::ObjectId *id, te::gm::Geometry *geom)
void remove(const std::string &source)
void addFeature(const std::string &source, Feature *f)
void clear(const std::string &source)
std::vector< Feature * > getFeatures(const std::string &source, const te::gm::Envelope &e, int srid) const
Repository * getRepository(const std::string &source) const
Repository * createRepository(const std::string &source)
Feature * getFeature(const std::string &source, te::da::ObjectId *id) const
void removeFeature(const std::string &source, te::da::ObjectId *id)
~RepositoryManager()
Singleton destructor.
std::map< std::string, Repository * > m_repositories
void addGeometry(const std::string &source, te::gm::Geometry *geom)
RepositoryManager()
It initializes the singleton instance of the repository manager.
bool hasIdentify(const std::string &source, te::da::ObjectId *id)
const std::map< std::string, Repository * > & getRepositories() const
Feature * getFeature(const std::string &source, const te::gm::Envelope &e, int srid) const
This class represents a repository of geometries and features.
An Envelope defines a 2D rectangular region.
Geometry is the root class of the geometries hierarchy, it follows OGC and ISO standards.
#define TEEDITEXPORT
You can use this macro in order to export/import classes and functions from this module.
Proxy configuration file for TerraView (see terraview_config.h).