PortableServer::POA_ptr poa,
PortableServer::ObjectId* contId,
const char* instanceName,
- const char* interfaceName) :
- Engines_Component_i(orb, poa, contId, instanceName, interfaceName)
+ const char* interfaceName,
+ bool withRegistry,
+ bool withNS) :
+ Engines_Component_i(orb, poa, contId, instanceName, interfaceName, false, withRegistry)
{
_thisObj = this;
_id = _poa->activate_object(_thisObj);
- name_service = new SALOME_NamingService(_orb);
+ if(withNS)
+ name_service = new SALOME_NamingService(_orb);
_impl = new ::GEOMImpl_Gen;
PortableServer::POA_ptr poa,
PortableServer::ObjectId * contId,
const char *instanceName,
- const char *interfaceName);
+ const char *interfaceName,
+ bool withRegistry = true,
+ bool withNS = true);
// destructor, doing nothing (for now)
virtual ~GEOM_Gen_i();
private:
::GEOMImpl_Gen* _impl;
- SALOME_NamingService * name_service;
+ SALOME_NamingService * name_service = nullptr;
char * _name;
// plugin operations managing
//
pman->activate();
//
- GEOM_Gen_i *servant = new GEOM_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"GEOM_inst_2","GEOM");
+ GEOM_Gen_i *servant = new GEOM_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"GEOM_inst_2","GEOM",false,false);
PortableServer::ObjectId *zeId = servant->getId();
CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
CORBA::String_var ior = orb->object_to_string(zeRef);
# to avoid problems in some cases, e.g. when generating documentation
try:
import salome
- salome.salome_init()
+ #salome.salome_init()
from salome import *
except:
pass