1 // SUPERV GraphBase : contains fondamental classes for Services, Input Ports, Output Ports Links and Nodes.
3 // Copyright (C) 2003 CEA/DEN, EDF R&D
7 // File : DataFlowBase_InLineNode.hxx
8 // Author : Jean Rahuel, CEA
12 #ifndef _DATAFLOWBASE_INLINENODE_HXX
13 #define _DATAFLOWBASE_INLINENODE_HXX
17 #include "DataFlowBase_ComputingNode.hxx"
21 class InLineNode : public ComputingNode {
26 SUPERV::ListOfStrings _PythonFunction ;
27 PyObject * _MyPyRunMethod ;
32 InLineNode( CORBA::ORB_ptr ORB ,
33 SALOME_NamingService* ptrNamingService ,
34 const char * DataFlowName ,
35 const SUPERV::KindOfNode DataFlowkind ,
36 int * Graph_prof_debug ,
37 ofstream * Graph_fdebug ) ;
38 InLineNode( CORBA::ORB_ptr ORB ,
39 SALOME_NamingService* ptrNamingService ,
40 const SALOME_ModuleCatalog::Service& NodeService ,
41 const char *NodeName ,
42 const SUPERV::KindOfNode akind ,
43 const SUPERV::SDate NodeFirstCreation ,
44 const SUPERV::SDate NodeLastModification ,
45 const char * NodeEditorRelease ,
46 const char * NodeAuthor ,
47 const char * NodeComment ,
48 const bool GeneratedName ,
51 int * Graph_prof_debug = NULL ,
52 ofstream * Graph_fdebug = NULL ) ;
53 InLineNode( CORBA::ORB_ptr ORB ,
54 SALOME_NamingService* ptrNamingService ,
55 const char * FuncName ,
56 const SUPERV::ListOfStrings & aPythonFunction ,
57 const char *NodeName ,
58 const SUPERV::KindOfNode akind ,
59 const SUPERV::SDate NodeFirstCreation ,
60 const SUPERV::SDate NodeLastModification ,
61 const char * NodeEditorRelease ,
62 const char * NodeAuthor ,
63 const char * NodeComment ,
64 const bool GeneratedName ,
67 int * Graph_prof_debug = NULL ,
68 ofstream * Graph_fdebug = NULL ) ;
69 virtual ~InLineNode() ;
71 void SetPythonFunction( const char * FuncName ,
72 const SUPERV::ListOfStrings & aPythonFunction ) ;
73 const SUPERV::ListOfStrings * PythonFunction() const {
74 return &_PythonFunction ; } ;
75 char * PyFuncName() const {
76 return my_strdup( _FuncName ) ; } ;
77 void PyRunMethod( PyObject * MyPyRunMethod ) {
78 _MyPyRunMethod = MyPyRunMethod ; } ;
79 PyObject * PyRunMethod() {
80 return _MyPyRunMethod ; } ;
83 // bool SaveXML( ostream &f , char *Tabs ,
84 bool SaveXML( QDomDocument & Graph , QDomElement & info ,
85 int XCoordinate , int YCoordinate ) const ;
86 bool SavePY( ostream &f , const char * aGraphName ,
87 int XCoordinate , int YCoordinate ) const ;