27 #ifndef __SALOMEDS_STUDYMANAGER_I_H__
28 #define __SALOMEDS_STUDYMANAGER_I_H__
38 #include <SALOMEconfig.h>
39 #include CORBA_SERVER_HEADER(SALOMEDS)
52 PortableServer::ServantBase_var
GetServant(CORBA::Object_ptr, PortableServer::POA_ptr);
61 PortableServer::POA_var
_poa;
78 void register_name(
const char * name);
99 virtual void Close( SALOMEDS::Study_ptr aStudy);
105 virtual CORBA::Boolean Save( SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
107 virtual CORBA::Boolean SaveASCII( SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
114 virtual CORBA::Boolean SaveAs(
const char* aUrl, SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
115 virtual CORBA::Boolean SaveAsASCII(
const char* aUrl, SALOMEDS::Study_ptr aStudy, CORBA::Boolean theMultiFile);
128 virtual SALOMEDS::Study_ptr GetStudyByName(
const char* aStudyName) ;
135 virtual SALOMEDS::Study_ptr GetStudyByID(CORBA::Short aStudyID) ;
137 virtual CORBA::Boolean CanCopy(SALOMEDS::SObject_ptr theObject);
138 virtual CORBA::Boolean Copy(SALOMEDS::SObject_ptr theObject);
139 virtual CORBA::Boolean CanPaste(SALOMEDS::SObject_ptr theObject);
142 virtual char*
ConvertObjectToIOR(CORBA::Object_ptr theObject) {
return _orb->object_to_string(theObject); }
143 virtual CORBA::Object_ptr
ConvertIORToObject(
const char* theIOR) {
return _orb->string_to_object(theIOR); };
146 CORBA::Long getPID();
147 void ShutdownWithExit();
149 virtual CORBA::LongLong GetLocalImpl(
const char* theHostname, CORBA::Long thePID, CORBA::Boolean& isLocal);
151 static PortableServer::POA_ptr GetPOA(
const SALOMEDS::Study_ptr theStudy);
153 void Shutdown() {
if(!CORBA::is_nil(_orb)) _orb->shutdown(0); }