bool QgsGrassVectorMap::open() { QgsDebugMsg( toString() ); if ( mOpen ) { QgsDebugMsg( "already open" ); return true; } lockOpenClose(); bool result = openMap(); mOpen = true; unlockOpenClose(); return result; }
void QgsGrassVectorMap::close() { QgsDebugMsg( toString() ); if ( !mOpen ) { QgsDebugMsg( "is not open" ); return; } lockOpenClose(); closeAllIterators(); // blocking closeMap(); mOpen = false; unlockOpenClose(); }