mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-11-14 17:48:34 +05:00
WIP
This commit is contained in:
parent
adda3cab1c
commit
01b0ad6701
@ -98,11 +98,14 @@ GEOM_Gen_i::GEOM_Gen_i(CORBA::ORB_ptr orb,
|
||||
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);
|
||||
if(withNS)
|
||||
name_service = new SALOME_NamingService(_orb);
|
||||
|
||||
_impl = new ::GEOMImpl_Gen;
|
||||
|
@ -95,7 +95,9 @@ class GEOM_I_EXPORT GEOM_Gen_i: virtual public POA_GEOM::GEOM_Gen, virtual publi
|
||||
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();
|
||||
@ -388,7 +390,7 @@ class GEOM_I_EXPORT GEOM_Gen_i: virtual public POA_GEOM::GEOM_Gen, virtual publi
|
||||
private:
|
||||
|
||||
::GEOMImpl_Gen* _impl;
|
||||
SALOME_NamingService * name_service;
|
||||
SALOME_NamingService * name_service = nullptr;
|
||||
char * _name;
|
||||
|
||||
// plugin operations managing
|
||||
|
@ -44,7 +44,7 @@ std::string BuildGEOMInstance()
|
||||
//
|
||||
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);
|
||||
|
@ -246,7 +246,7 @@ import omniORB
|
||||
# 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
|
||||
|
Loading…
Reference in New Issue
Block a user