te::gdal::DataSetUseCounter Class Reference

GDAL data set use counter. More...

#include <DataSetUseCounter.h>

Inheritance diagram for te::gdal::DataSetUseCounter:

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...

Detailed Description

GDAL data set use counter.

Definition at line 46 of file DataSetUseCounter.h.

Constructor & Destructor Documentation

te::gdal::DataSetUseCounter::DataSetUseCounter ( const std::string &  uri,
const DataSetsManager::AccessType  aType 
throw (te::gdal::Exception

Default constructor.

uriRaster URI.
aTypeAccess type.
ExceptionIt can throw an exception (code te::common::NO_CONNECTION_AVAILABLE ) if:
  • the maximum number of simultaneous accesses has been reached
te::gdal::DataSetUseCounter::~DataSetUseCounter ( )

Member Function Documentation

bool te::gdal::DataSetUseCounter::changeAccessType ( const DataSetsManager::AccessType  aType)
throw (te::gdal::Exception

Change the acces type.

aTypeAccess type.
true if OK, false on errors:
DataSetsManager::AccessType te::gdal::DataSetUseCounter::getAccessType ( ) const

Returns the current access type.

Returns the current access type.

Definition at line 74 of file DataSetUseCounter.h.

Member Data Documentation

DataSetsManager::AccessType te::gdal::DataSetUseCounter::m_aType

Access type.

Definition at line 74 of file DataSetUseCounter.h.

std::string te::gdal::DataSetUseCounter::m_uri

Data set uri.

Definition at line 79 of file DataSetUseCounter.h.

The documentation for this class was generated from the following file: