1 //=============================================================================
2 // File : DataFlowBase_Base.hxx
4 // Author : Jean Rahuel, CEA
7 //=============================================================================
9 #ifndef _DATAFLOW_BASE_HXX
10 #define _DATAFLOW_BASE_HXX
25 #include <SALOMEconfig.h>
26 #include CORBA_CLIENT_HEADER(SUPERV)
28 #include "utilities.h"
31 #include "SALOME_NamingService.hxx"
33 extern char *SuperVision_Version ;
35 extern char *NULLSTRING ;
37 extern char *FACTORYSERVER ;
39 inline char * my_strdup( const char * s ) {
40 if (s == NULL) return NULL;
42 size_t l = strlen(s) + 1;
43 char * t = new char[l];
48 enum StatusOfPort { NotConnected , PortConnected , PortAndDataConnected ,
58 typedef vector<SCoord> ListOfCoords;
60 typedef string FuncName ;
62 typedef vector< FuncName > ListOfFuncName ;
64 typedef vector<const SUPERV::ListOfStrings *> ListOfPythonFunctions ;
66 struct NodeParameter {
67 SALOME_ModuleCatalog::ServicesParameter theInParameter ;
68 SALOME_ModuleCatalog::ServicesParameter theOutParameter ;
71 typedef vector<NodeParameter> ListOfParameters;
74 string theComponentName ;
75 string theInterfaceName ;
77 SUPERV::KindOfNode theKind ;
78 string theCoupledNode ;
79 SALOME_ModuleCatalog::Service theService ;
80 ListOfParameters theListOfParameters ;
81 ListOfFuncName theListOfFuncName ;
82 ListOfPythonFunctions theListOfPythonFunctions ;
83 SUPERV::SDate theFirstCreation ;
84 SUPERV::SDate theLastModification ;
85 string theEditorRelease ;
92 typedef vector<SNode> ListOfNodes;
95 SALOME_ModuleCatalog::ServicesParameter aDataParameter ;
96 CORBA::Any aDataValue;
99 typedef vector<ServicesData> ListOfServicesData;
102 string FromNodeName ;
103 string FromServiceParameterName ;
105 string ToServiceParameterName ;
106 CORBA::Any aLinkValue;
107 ListOfCoords aListOfCoords ;
110 typedef vector<SLink> ListOfLinks;
119 typedef vector<SGraph> ListOfGraphs;
125 CORBA::ORB_ptr _Orb ;
135 void SetDebug( CORBA::ORB_ptr ORB ,
136 int * prof_debug , ostream * fdebug ) ;
138 char * ObjectToString( CORBA::Object_ptr obj ) const ;
139 CORBA::Object_ptr StringToObject(char * obj ) const ;
145 if ( GraphBase::Base::_prof_debug ) \
146 *GraphBase::Base::_fdebug << " " /*<< setw(3*(*GraphBase::Base::_prof_debug)) */<< " "
149 if ( GraphBase::Base::_prof_debug ) \
150 *GraphBase::Base::_fdebug << endl << "-->" /*<< setw(3*((*GraphBase::Base::_prof_debug)++)) */<< " "
152 # define cdebug_out \
153 if ( GraphBase::Base::_prof_debug ) \
154 *GraphBase::Base::_fdebug << endl << "<--" /*<< setw(3*(--(*GraphBase::Base::_prof_debug)))*/ << " "
157 # define cdebug while (false) std::cerr
158 # define cdebug_in cdebug
159 # define cdebug_out cdebug
160 # define debugFile(x)