//------------------------------------------------------------------------------ // deleteData() -- delete this object's data //------------------------------------------------------------------------------ void Terrain::deleteData() { clearData(); setPathname(0); setFilename(0); }
//------------------------------------------------------------------------------ // Set slot functions //------------------------------------------------------------------------------ bool Database::setSlotPathname(Basic::String* const msg) { bool ok = false; if (msg != nullptr) { ok = setPathname( *msg ); } return ok; }
void ossimPlanetActionReceiver::setPathnameAndRegister(const std::string& newPath) { // we will unregister if already registered // ossimPlanetActionReceiver* r = ossimPlanetActionRouter::instance()->receiver(pathname()); if(r==this) // if we are ourselves then we can change our pathname { ossimPlanetActionRouter::instance()->unregisterReceiver(this); } setPathname(newPath); ossimPlanetActionRouter::instance()->registerReceiver(this); }