- SalomeApp_Study* aStudy = dynamic_cast<SalomeApp_Study*>(GetActiveStudy());
- if (aStudy)
- return aStudy->studyDS();
- else
- return _PTR(Study)();
- }
-
-
- CORBA::Object_var corbaObj( _PTR(SObject) theSO )
- {
- CORBA::Object_var aCorbaObj = CORBA::Object::_nil();
- if ( theSO ) {
- std::string aValue = theSO->GetIOR();
- if (strcmp(aValue.c_str(), "") != 0) {
- CORBA::ORB_ptr anORB = SalomeApp_Application::orb();
- aCorbaObj = anORB->string_to_object(aValue.c_str());
- }
- }
- return aCorbaObj._retn();