# header files / no moc processing
SET(SMESHEngine_HEADERS
SMESH_Gen_i.hxx
+ SMESH_Gen_No_Session_i.hxx
+ SMESH_Gen_Session_i.hxx
SMESH_Algo_i.hxx
SMESH_0D_Algo_i.hxx
SMESH_1D_Algo_i.hxx
SET(SMESHEngine_SOURCES
SMESH_Gen_i.cxx
SMESH_Gen_i_1.cxx
+ SMESH_Gen_No_Session_i.cxx
+ SMESH_Gen_Session_i.cxx
SMESH_PythonDump.cxx
SMESH_Mesh_i.cxx
SMESH_subMesh_i.cxx
}
return res;
}
-
-//=============================================================================
-/*!
- * SMESHEngine_factory
- *
- * C factory, accessible with dlsym, after dlopen
- */
-//=============================================================================
-
-extern "C"
-{ SMESH_I_EXPORT
- PortableServer::ObjectId* SMESHEngine_factory( CORBA::ORB_ptr orb,
- PortableServer::POA_ptr poa,
- PortableServer::ObjectId* contId,
- const char* instanceName,
- const char* interfaceName )
- {
- if(MYDEBUG) MESSAGE( "PortableServer::ObjectId* SMESHEngine_factory()" );
- if(MYDEBUG) SCRUTE(interfaceName);
- SMESH_Gen_i* aSMESHGen = new SMESH_Gen_i(orb, poa, contId, instanceName, interfaceName);
- return aSMESHGen->getId() ;
- }
-}
// ===========================================================
// SMESH module's engine
// ==========================================================
-class SMESH_I_EXPORT SMESH_Gen_i:
- public virtual POA_SMESH::SMESH_Gen,
- public virtual Engines_Component_i
+class SMESH_I_EXPORT SMESH_Gen_i : public POA_SMESH::SMESH_Gen, public Engines_Component_i
{
public:
// Get last created instance of the class
#include "SMeshHelper.h"
-#include "SMESH_Gen_i.hxx"
+#include "SMESH_Gen_No_Session_i.hxx"
#include "SALOME_Container_i.hxx"
#include "SALOME_KernelServices.hxx"
#include <cstring>
-std::string BuildSMESHInstanceInternal(bool checkNS)
+std::string BuildSMESHInstanceInternal()
{
CORBA::ORB_var orb;
{ int argc(0); orb = CORBA::ORB_init(argc,nullptr); }
//
{
char *argv[4] = {"Container","FactoryServer","toto",nullptr};
- Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,false,checkNS);
+ Engines_Container_i *cont = new Engines_Container_i(orb,poa,"FactoryServer",2,argv,false,false);
conId = poa->activate_object(cont);
}
//
pman->activate();
//
- SMESH_Gen_i *servant = new SMESH_Gen_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"SMESH_inst_2","SMESH",checkNS);
+ SMESH_Gen_No_Session_i *servant = new SMESH_Gen_No_Session_i(orb,poa,const_cast<PortableServer::ObjectId*>(&conId.in()),"SMESH_inst_2","SMESH");
PortableServer::ObjectId *zeId = servant->getId();
CORBA::Object_var zeRef = poa->id_to_reference(*zeId);
CORBA::String_var ior = orb->object_to_string(zeRef);
#include <string>
-std::string BuildSMESHInstanceInternal(bool checkNS);
+std::string BuildSMESHInstanceInternal();
%inline
{
- std::string BuildSMESHInstance(bool checkNS)
+ std::string BuildSMESHInstance()
{
- return BuildSMESHInstanceInternal(checkNS);
+ return BuildSMESHInstanceInternal();
}
}