#include "StreamPort_Impl.hxx"
+char *FACTORYSERVERPY = "localhost/FactoryServerPy" ;
+
CNode_Impl::CNode_Impl( CORBA::ORB_ptr orb ,
PortableServer::POA_ptr poa ,
PortableServer::ObjectId * contId ,
const char * NodeName ,
const SUPERV::KindOfNode NodeKindOfNode ,
const char * FuncName ,
- const SUPERV::ListOfStrings & PythonFunction ) :
+ const SUPERV::ListOfStrings & PythonFunction ,
+ bool isCimpl ) :
Engines_Component_i(orb, poa, contId, instanceName, interfaceName, false, false) {
// beginService( "CNode_Impl::CNode_Impl" );
// cout << "CNode_Impl::CNode_Impl -->" << endl ;
aPythonFunction.resize(1) ;
aPythonFunction[0] = &PythonFunction ;
}
- _DataFlowNode = DataFlowEditor()->AddNode( NodeService , "" , "" , NodeName ,
- NodeKindOfNode ,
- aFuncName ,
- aPythonFunction ) ;
+
+ // mkr : PAL11273 -->
+ if ( isCimpl ) // C++ implementation
+ _DataFlowNode = DataFlowEditor()->AddNode( NodeService , "" , "" , NodeName ,
+ NodeKindOfNode ,
+ aFuncName ,
+ aPythonFunction ) ;
+ else // Python implementation
+ _DataFlowNode = DataFlowEditor()->AddNode( NodeService , "" , "" , NodeName ,
+ NodeKindOfNode ,
+ aFuncName ,
+ aPythonFunction ,
+ SUPERV::SDate() ,
+ SUPERV::SDate() ,
+ NULLSTRING ,
+ NULLSTRING ,
+ FACTORYSERVERPY ) ;
+ // mkr : PAL11273 <--
+
_IsNode = true ;
// endService( "CNode_Impl::CNode_Impl" );
// cout << "<-- CNode_Impl::CNode_Impl" << endl ;
begin = false ;
}
if ( anInPort->IsLoop() || ( anInPort->IsGate() && anInPort->IsNotConnected() &&
- ( IsExecuting() || DataFlowEditor()->IsReadOnly() ) ) ) {
+ ( /*IsExecuting() || */DataFlowEditor()->IsReadOnly() ) ) ) { // mkr : IPAL11362
// MESSAGE( "InPort " << i << " " << anInPort->PortName() << " of Node " << Name() << " ignored" ) ;
}
else if ( CORBA::is_nil( anInPort->ObjRef() ) ) {
begin = false ;
}
if ( anOutPort->IsLoop() || ( anOutPort->IsGate() && anOutPort->IsNotConnected() &&
- ( IsExecuting() || DataFlowEditor()->IsReadOnly() ) ) ) {
+ ( /*IsExecuting() || */DataFlowEditor()->IsReadOnly() ) ) ) { // mkr : IPAL11362
// MESSAGE( "OutPort " << i << " " << anOutPort->PortName() << " of Node " << Name() << " ignored" ) ;
}
else if ( CORBA::is_nil( anOutPort->ObjRef() ) ) {
return RetVal ;
}
-bool CNode_Impl::IsLinked(const char * ServiceParameterName ) {
+// mkr : PAL8060 : this method is not used
+/*bool CNode_Impl::IsLinked(const char * ServiceParameterName ) {
beginService( "CNode_Impl::IsLinked" );
bool RetVal = DataFlowNode()->IsLinked( ServiceParameterName ) ;
MESSAGE( Name() << "->IsLinked( '" << ServiceParameterName << "' )" ) ;
endService( "CNode_Impl::IsLinked" );
return RetVal ;
-}
+ }*/
bool CNode_Impl::HasInput(const char * ServiceParameterName ) {
// beginService( "CNode_Impl::HasInput" );