GDAL data set use counter. More...
#include <DataSetUseCounter.h>
Public Member Functions | |
| bool | changeAccessType (const DataSetsManager::AccessType aType) throw ( te::gdal::Exception ) |
| Change the acces type. More... | |
| DataSetUseCounter (const std::string &uri, const DataSetsManager::AccessType aType) throw ( te::gdal::Exception ) | |
| Default constructor. More... | |
| DataSetsManager::AccessType | getAccessType () const |
| Returns the current access type. More... | |
| ~DataSetUseCounter () | |
Private Attributes | |
| DataSetsManager::AccessType | m_aType |
| Access type. More... | |
| std::string | m_uri |
| Data set uri. More... | |
GDAL data set use counter.
Definition at line 46 of file DataSetUseCounter.h.
| te::gdal::DataSetUseCounter::DataSetUseCounter | ( | const std::string & | uri, |
| const DataSetsManager::AccessType | aType | ||
| ) | |||
| throw | ( | te::gdal::Exception | |
| ) | |||
Default constructor.
| uri | Raster URI. |
| aType | Access type. |
| Exception | It can throw an exception (code te::common::NO_CONNECTION_AVAILABLE ) if:
|
Definition at line 31 of file DataSetUseCounter.cpp.
References te::common::NO_CONNECTION_AVAILABLE, and TE_TR.
| te::gdal::DataSetUseCounter::~DataSetUseCounter | ( | ) |
Definition at line 42 of file DataSetUseCounter.cpp.
References te::gdal::DataSetsManager::decrementUseCounter(), te::common::Singleton< te::gdal::DataSetsManager >::getInstance(), and m_uri.
| bool te::gdal::DataSetUseCounter::changeAccessType | ( | const DataSetsManager::AccessType | aType | ) | |
| throw | ( | te::gdal::Exception | |||
| ) | |||||
Change the acces type.
| aType | Access type. |
Definition at line 47 of file DataSetUseCounter.cpp.
References te::gdal::DataSetsManager::decrementUseCounter(), te::common::Singleton< te::gdal::DataSetsManager >::getInstance(), te::common::NO_CONNECTION_AVAILABLE, and TE_TR.
|
inline |
Returns the current access type.
Definition at line 74 of file DataSetUseCounter.h.
|
private |
Access type.
Definition at line 74 of file DataSetUseCounter.h.
|
private |
Data set uri.
Definition at line 79 of file DataSetUseCounter.h.
Referenced by ~DataSetUseCounter().