29 #include "../common/Translator.h"
33 throw( te::gdal::Exception )
34 : m_aType( aType ), m_uri( uri )
36 if( !DataSetsManager::getInstance().incrementUseCounter( m_uri, aType ) )
48 throw( te::gdal::Exception )
50 if( m_aType == aType )
std::string m_uri
Data set uri.
bool changeAccessType(const DataSetsManager::AccessType aType)
Change the acces type.
#define TE_TR(message)
It marks a string in order to get translated.
An exception class for the GDAL module.
static te::gdal::DataSetsManager & getInstance()
It returns a reference to the singleton instance.
DataSetUseCounter(const std::string &uri, const DataSetsManager::AccessType aType)
Default constructor.
void decrementUseCounter(const std::string &uri)
Decrement the use counter for the given raster URI.