GDAL data set manager. More...
#include <DataSetsManager.h>
Public Types | |
enum | AccessType { MultipleAccessType = 0, SingleAccessType = 1 } |
Public Member Functions | |
void | decrementUseCounter (const std::string &uri) |
Decrement the use counter for the given raster URI. More... | |
bool | incrementUseCounter (const std::string &uri, const AccessType aType) |
Try to increment the use counter for the given raster URI. More... | |
Static Public Member Functions | |
static te::gdal::DataSetsManager & | getInstance () |
It returns a reference to the singleton instance. More... | |
Protected Types | |
typedef std::map< std::string, std::pair< AccessType, unsigned long int > > | UrisInfoT |
Protected Member Functions | |
DataSetsManager () | |
~DataSetsManager () | |
Protected Attributes | |
boost::mutex | m_mutex |
Internal thread sync mutex. More... | |
UrisInfoT | m_openURIS |
Current open URIs. More... | |
Friends | |
class | te::common::Singleton< te::gdal::DataSetsManager > |
GDAL data set manager.
Definition at line 50 of file DataSetsManager.h.
|
protected |
Definition at line 80 of file DataSetsManager.h.
Enumerator | |
---|---|
MultipleAccessType |
Allows multiple concurrent connections to the uri. |
SingleAccessType |
Allows just one single connection to the uri. |
Definition at line 57 of file DataSetsManager.h.
|
protected |
Definition at line 29 of file DataSetsManager.cpp.
|
protected |
Definition at line 33 of file DataSetsManager.cpp.
void te::gdal::DataSetsManager::decrementUseCounter | ( | const std::string & | uri | ) |
Decrement the use counter for the given raster URI.
uri | RasterURI. |
Definition at line 80 of file DataSetsManager.cpp.
Referenced by te::gdal::DataSetUseCounter::changeAccessType(), and te::gdal::DataSetUseCounter::~DataSetUseCounter().
|
staticinherited |
It returns a reference to the singleton instance.
Referenced by te::gdal::DataSetUseCounter::changeAccessType(), and te::gdal::DataSetUseCounter::~DataSetUseCounter().
bool te::gdal::DataSetsManager::incrementUseCounter | ( | const std::string & | uri, |
const AccessType | aType | ||
) |
Try to increment the use counter for the given raster URI.
uri | RasterURI. |
aType | Access type. |
Definition at line 36 of file DataSetsManager.cpp.
|
friend |
Definition at line 52 of file DataSetsManager.h.
|
mutableprotected |
Internal thread sync mutex.
Definition at line 88 of file DataSetsManager.h.
|
mutableprotected |
Current open URIs.
Definition at line 86 of file DataSetsManager.h.