4 #ifndef FIRE_GIS_DATA_DATASERVICE_HPP_INCLUDED
5 #define FIRE_GIS_DATA_DATASERVICE_HPP_INCLUDED
7 #include <boost/thread/mutex.hpp>
14 #include "fire/gis/export.hpp"
15 #include "fire/source/shared/ConnectionSh.hpp"
16 #include "fire/source/vector/shared/ConnectionVectorSh.hpp"
17 #include "fire/source/raster/shared/ConnectionRasterSh.hpp"
18 #include "fire/gis/data/ConnectionPool.hpp"
44 bool exists(
const std::string&
id)
const;
53 std::string create(
const std::string & cnnNmsp,
const source::Connection::ConnectionParams& params,
const int& num,
const std::string&
id =
"");
59 void erase(
const std::string&
id);
87 static bool existsPool(
const std::string&
id);
96 static std::string createPool(
const std::string & cnnNmsp,
const source::Connection::ConnectionParams& params,
const int& num,
const std::string&
id =
"");
102 static void erasePool(
const std::string&
id);
126 typedef boost::shared_ptr< ConnectionPool > ConnectionPoolShp;
127 typedef std::map< std::string, ConnectionPoolShp > MapConnectionPool;
128 typedef std::vector< std::string > VctPoolId;
130 void _erase(VctPoolId
const & ids);
133 static boost::mutex _stMtx;
135 MapConnectionPool _pools;
136 mutable boost::mutex _mtx;
Definition: ConnectionRasterSh.hpp:22
Contenitore di tutti i fire::gis::data::ConnectionPool usati nella sessione di lavoro.
Definition: DataService.hpp:27
Definition: ConnectionSh.hpp:21
Definition: ConnectionVectorSh.hpp:21