20 #ifndef _RUNTIMESALOME_HXX_
21 #define _RUNTIMESALOME_HXX_
27 #ifdef _POSIX_C_SOURCE
28 #undef _POSIX_C_SOURCE
35 #include <omniORB4/CORBA.h>
36 #include <omniORBpy.h>
43 class SALOME_NamingService_Container_Abstract;
75 std::unique_ptr<SALOME_NamingService_Container_Abstract> getNS();
78 static void setRuntime(
long flags = UsePython+UseCorba+UseXml+UseCpp+UseSalome,
79 int argc = 0,
char* argv[] = NULL);
83 virtual std::string getVersion()
const;
85 virtual void init(
long flags,
int argc,
char* argv[]);
86 virtual void fini(
bool isFinalizingPython =
true);
87 PyObject *launchSubProcess(
const std::vector<std::string>& cmds);
88 virtual std::vector< std::pair<std::string,int> > getCatalogOfComputeNodes()
const;
89 virtual InputPort* createInputPort(
const std::string& name,
90 const std::string& impl,
94 virtual OutputPort* createOutputPort(
const std::string& name,
95 const std::string& impl,
104 virtual DataNode* createInDataNode(
const std::string& kind,
const std::string& name);
105 virtual DataNode* createOutDataNode(
const std::string& kind,
const std::string& name);
106 virtual InlineFuncNode* createFuncNode(
const std::string& kind,
const std::string& name);
107 virtual InlineNode* createScriptNode(
const std::string& kind,
const std::string& name);
109 virtual ServiceNode* createRefNode(
const std::string& kind,
const std::string& name);
110 virtual ServiceNode* createCompoNode(
const std::string& kind,
const std::string& name);
111 virtual ServiceInlineNode *createSInlineNode(
const std::string& kind,
const std::string& name);
113 const std::string& kind=
"");
115 virtual Container *createContainer(
const std::string& kind=
"");
117 virtual WhileLoop* createWhileLoop(
const std::string& name);
118 virtual ForLoop* createForLoop(
const std::string& name);
119 virtual OptimizerLoop* createOptimizerLoop(
const std::string& name,
const std::string& algLib,
120 const std::string& factoryName,
bool algInitOnFile,
121 const std::string& kind=
"",
Proc * procForTypes = NULL);
122 virtual Bloc* createBloc(
const std::string& name);
123 virtual Proc* createProc(
const std::string& name);
125 virtual TypeCode * createInterfaceTc(
const std::string&
id,
const std::string& name,
126 std::list<TypeCodeObjref *> ltc);
127 virtual TypeCode * createSequenceTc(
const std::string&
id,
const std::string& name,
TypeCode *content);
128 virtual TypeCodeStruct * createStructTc(
const std::string&
id,
const std::string& name);
131 const std::string& impl,
135 const std::string& impl,
139 const std::string& impl,
143 const std::string& impl,
162 const std::string& impl,
181 const std::string& impl,
200 const std::string& impl,
230 virtual void* convertNeutral(
TypeCode * type,
Any *data);
231 virtual std::string convertNeutralAsString(
TypeCode * type,
Any *data);
233 virtual PyObject* convertStringToPyObject(
const std::string& s);
237 void loadModulCatalog();
239 CORBA::ORB_ptr getOrb()
const;
240 CORBA::Object_var getFromNS(
const char *entry)
const;
241 PyObject * getPyOrb()
const;
242 PyObject * getBuiltins()
const;
243 DynamicAny::DynAnyFactory_ptr getDynFactory()
const;
244 omniORBpyAPI* getApi();
245 PyObject * get_omnipy();
#define YACSRUNTIMESALOME_EXPORT
This class implements the interface Engines::ConnectionManager. It is used to make connections betwee...
: Interface for management of storage of data formated dynamically in its TypeCode....
Composed node to group elementary and composed nodes.
Base class for all component instances.
Class for data parameters specification.
class for Input Property Ports
Class for calculation node (function) inlined (and executed) in the schema.
Class for calculation node (script) inlined (and executed) in the schema.
Base class for all nodes.
class to build optimization loops
Base class for all schema objects.
DynamicAny::DynAnyFactory_var _dynFactory
static Runtime * getSingleton()
ConnectionManager & getConnectionManager()
friend RuntimeSALOME * getSALOMERuntime()
ConnectionManager _connectionManager
static Runtime * _singleton
Class for calculation node associated with a component service.
Base class for all type objects.
std::string convertPyObjectToString(PyObject *ob)
YACSRUNTIMESALOME_EXPORT RuntimeSALOME * getSALOMERuntime()
def adapt(obj, protocol, alternate=AdaptationError)