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:
|
te::gdal::DataSetUseCounter::~DataSetUseCounter | ( | ) |
bool te::gdal::DataSetUseCounter::changeAccessType | ( | const DataSetsManager::AccessType | aType | ) | |
throw | ( | te::gdal::Exception | |||
) |
Change the acces type.
aType | Access type. |
|
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.