コード例 #1
0
ファイル: Terrain.cpp プロジェクト: azcbuell/OpenEaagles
//------------------------------------------------------------------------------
// deleteData() -- delete this object's data
//------------------------------------------------------------------------------
void Terrain::deleteData()
{
   clearData();

   setPathname(0);
   setFilename(0);
}
コード例 #2
0
//------------------------------------------------------------------------------
// Set slot functions
//------------------------------------------------------------------------------
bool Database::setSlotPathname(Basic::String* const msg)
{
   bool ok = false;
   if (msg != nullptr) {
      ok = setPathname( *msg );
   }
   return ok;
}
コード例 #3
0
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);
}