_OldState = State() ;
_NextState = Automaton()->NextState( _OldState , anEvent ) ;
if ( _NextState == _OldState ) {
+ string anErrorMessage = string( "Automaton error for node " ) +
+ string( Name() ) + " (SuperVision executor error)." ;
+ _OutNode->Graph()->SetMessages( anErrorMessage ) ;
cdebug << pthread_self() << "/" << ThreadNo() << " " << Name()
<< " GraphExecutor::InNodeThreads::SendEvent SameStates ERROR _OldState/_NextState "
<< _OldState << " Event " << Automaton()->EventName( anEvent ) << endl ;
char * msg = "Cannot pthread_create " ;
perror( msg ) ;
cdebug << ThreadNo() << " " << msg << " --> sleep(5)" << endl ;
- cdebug << ThreadNo() << " PTHREAD_THREADS_MAX : "
- << PTHREAD_THREADS_MAX << " pthread_create status : " ;
+ // cdebug << ThreadNo() << " PTHREAD_THREADS_MAX : "
+ // << PTHREAD_THREADS_MAX << " pthread_create status : " ;
if ( pthread_sts == EAGAIN ) {
cdebug << "EAGAIN(" << pthread_sts << ")" << endl ;
cdebug << _OutNode->CreatedThreads() << " was created (and exited)" << endl ;
delete [] msg ;
pthread_exit( msg ) ;
}
+ _OutNode->setRunFuncThread( T ) ; // mkr : IPAL14711
#if ActionsTrace
cdebug << pthread_self() << "/" << ThreadNo() << " " << Name()
<< " executeAction has created thread " << T << endl ;
int GraphExecutor::InNode::DataWaiting_SomeDataReadyAction() {
#if SomeDataReadyActionTrace
cdebug_in << pthread_self() << "/" << ThreadNo() << " " << Name()
- << " DataWaiting_SomeDataReadyAction from " << DataFromNode() << endl;
+ << " DataWaiting_SomeDataReadyAction from " << DataFromNode()
+ << " " << GetNodeInPortsSize() << " Inport(s)" << endl;
#endif
unsigned int k;
int InReady = 0 ;
anOutPort = anInPort->GetOutPort() ;
if ( anOutPort ) {
#if SomeDataReadyActionTrace
- cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort "
+ cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort"
+ << k << " "
<< anInPort->PortName() << " already setted to OutPort " << anOutPort->NodeName()
<< "( " << anOutPort->PortName() << " )" << endl ;
#endif
anOutPort = CoupledNode()->GetChangeOutPort( anInPort->PortName() ) ;
if ( anOutPort ) {
#if SomeDataReadyActionTrace
- cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort "
+ cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort"
+ << k << " "
<< anInPort->PortName() << " change of OutPort from "
<< anInPort->GetOutPort()->NodeName() << "( " << anInPort->GetOutPort()->PortName()
<< " ) to " << anOutPort->NodeName() << "( " << anOutPort->PortName() << " )"
#endif
}
else {
- cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort "
+ cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort"
+ << k << " "
<< anInPort->PortName() << " have NO OutPort ERROR " << endl ;
return 0 ;
}
anOutPort = anInPort->GetOutPort() ;
}
#if SomeDataReadyActionTrace
- cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort "
+ cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " InPort"
+ << k << " "
<< anInPort->PortName() << " " << anInPort->PortState() << " "
<< anInPort->PortStatus() << " " << anInPort->Kind() ;
if ( anOutPort ) {
}
#endif
cdebug << endl ;
+#endif
+//JR 30.01.2007 : wrong debug for PAL12455
+#if 0
+ // mkr : PAL12455 -->
+ // MacroNode : give immediately the value to the corresponding graph
+ if ( IsMacroNode() ) {
+ GraphExecutor::DataFlow * aMacroGraph = GraphMacroNode()->CoupledNode()->GraphEditor()->Executor() ;
+ cdebug << "SomeDataReadyAction MacroNode " << aMacroGraph->Name() << " --> InputOfAny "
+ << InReady << "/" << GetNodeInPortsSize() << " InPorts are Ready ( "
+ << anInPort->PortName() << " ) ===> InputOfAny" << endl ;
+// GraphMacroNode()->MacroObject()->InputOfAny( anInPort->PortName() , *anOutPort->Value() ) ;
+//JR 30.03.2005 aMacroGraph->InputOfAny( anInPort->PortName() , *anOutPort->Value() ) ;
+ aMacroGraph->InputOfAny( anInPort->PortName() , anOutPort->Value() ) ;
+ }
+ // mkr : PAL12455 <--
#endif
}
else if ( IsLoopNode() && anInPort->IsDataConnected() ) {
InReady += 1 ;
//JR 21.02.2005 Debug Memory leak : CORBA::Any * anAny = new CORBA::Any() ;
CORBA::Any anAny = CORBA::Any() ;
-//JR 21.02.2005 Debug Memory leak : *anAny <<= (long ) 1 ;
- anAny <<= (long ) 1 ;
+//JR 21.02.2005 Debug Memory leak : *anAny <<= (CORBA::Long ) 1 ;
+ anAny <<= (CORBA::Long ) 1 ;
_OutNode->Graph()->GetGraphNode( anOutPort->NodeName() )->GetChangeNodeOutGate()->SetValue( anAny ) ;
#if SomeDataReadyActionTrace
cdebug << pthread_self() << "/" << ThreadNo() << " " << Name() << " "
else if ( anInPort->IsGate() ) {
//JR 30.03.2005 const CORBA::Any * theValue = anOutPort->Value() ;
const CORBA::Any theValue = anOutPort->Value() ;
- long GateOpened ;
+ CORBA::Long GateOpened ;
//JR 30.03.2005 (*theValue) >>= GateOpened ;
theValue >>= GateOpened ;
if ( GateOpened != 0 ) {
cdebug << pthread_self() << "/" << ThreadNo() << " Node " << Name() << " HasAllDataReady"
<< endl ;
#endif
+//JR 30.01.2007 Right Debug PAL12455 --->
+//That must be done only for DataConnected ports and only once
+ if ( IsMacroNode() ) {
+ GraphExecutor::DataFlow * aMacroGraph = GraphMacroNode()->CoupledNode()->GraphEditor()->Executor() ;
+ for ( k = 0 ; k < (unsigned int ) GetNodeInPortsSize() ; k++ ) {
+ GraphBase::InPort * anInPort = GetChangeNodeInPort(k) ;
+ GraphBase::OutPort * anOutPort ;
+ anOutPort = anInPort->GetOutPort() ;
+ if ( anInPort->IsDataConnected() ) {
+ cdebug << "SomeDataReadyAction MacroNode " << aMacroGraph->Name()
+ << " --> InputOfAny " << InReady << "/" << GetNodeInPortsSize()
+ << " InPorts are Ready ( " << anInPort->PortName()
+ << " ) ===> InputOfAny" << endl ;
+ aMacroGraph->InputOfAny( anInPort->PortName() , anOutPort->Value() ) ;
+ }
+ }
+ }
+// <--- JR 30.01.2007 Right Debug PAL12455
HasAllDataReady( true ) ; // ==> Ready to execute
res = 1 ;
}
else { // At least one Flag == 0 :
+#if SomeDataReadyActionTrace
+ cdebug << pthread_self() << "/" << ThreadNo() << " Node " << Name() << " HasNOTAllDataReady "
+ << InReady << "/" << GetNodeInPortsSize() << " DoAllDataReadyIf " << DoAllDataReadyIf << endl ;
+#endif
HasAllDataReady( false ) ;
res = SendEvent( GraphExecutor::NotAllDataReadyEvent );
}
//JR 29.09.2005 Debug for CEA (examples/GraphMacroNodes1) :
// Set of value of the OutGate of the corresponding MacroNode was missing
CORBA::Any anAny = CORBA::Any() ;
- anAny <<= (long ) 1 ;
+ anAny <<= (CORBA::Long ) 1 ;
GraphMacroNode()->GraphEditor()->Executor()->OutputOfAny( Name() , "Gate" , anAny ) ;
#if TraceDataReady_ExecuteAction
cdebug << "DataReady_ExecuteAction OutputOfAny( " << Name() << " , Gate , 1 )" << endl ;
}
#define SetWaitingStatesTrace 0
-// Set SUPERV::WaitingState to all InPorts
+// Set SUPERV::WaitingState to all InPorts and Nodes
void GraphExecutor::InNode::SetWaitingStates(GraphExecutor::InNode * EndNode ) {
int i ;
int j ;
if ( anOutPort ) {
//JR 21.02.2005 Debug Memory leak : CORBA::Any * anAny = new CORBA::Any() ;
CORBA::Any anAny = CORBA::Any() ;
-// *anAny <<= (long ) 1 ;
-//JR 21.02.2005 Debug Memory leak : *anAny <<= (long ) 0 ;
- anAny <<= (long ) 0 ;
+// *anAny <<= (CORBA::Long ) 1 ;
+//JR 21.02.2005 Debug Memory leak : *anAny <<= (CORBA::Long ) 0 ;
+ anAny <<= (CORBA::Long ) 0 ;
anOutPort->SetValue( anAny ) ;
anInPort->PortState( SUPERV::WaitingState ) ;
// delete anAny ;
cdebug << " --> InPort " << Name() << "( " << anInPort->PortName() << " ) "
<< anInPort->PortStatus() << " " << anInPort->PortState() << endl ;
#endif
+//JR NPAL14110 09.02.2007 : SetWaitingStates was missing in the corresponding SubGraph !...
+ if ( IsMacroNode() ) {
+ GraphExecutor::DataFlow * aMacroGraph = GraphMacroNode()->CoupledNode()->GraphEditor()->Executor() ;
+#if SetWaitingStatesTrace
+ cdebug << ThreadNo()
+ << " --> GraphExecutor::InNodeThreads::SetWaitingStates MacroNode " << Name()
+ << " ---> MacroGraph " << aMacroGraph->Name() << " Inport "
+ << anInPort->PortName() << endl;
+#endif
+ aMacroGraph->SetWaitingStates( anInPort->PortName() ) ;
+ }
}
for ( i = 0 ; i < GetNodeOutPortsSize() ; i++ ) {
GraphBase::OutPort * anOutPort = GetChangeNodeOutPort( i ) ;
if ( anOutPort ) {
//JR 21.02.2005 Debug Memory leak : CORBA::Any * anAny = new CORBA::Any() ;
CORBA::Any anAny = CORBA::Any() ;
-//JR 21.02.2005 Debug Memory leak : *anAny <<= (long ) 1 ;
- anAny <<= (long ) 1 ;
+//JR 21.02.2005 Debug Memory leak : *anAny <<= (CORBA::Long ) 1 ;
+ anAny <<= (CORBA::Long ) 1 ;
anOutPort->SetValue( anAny ) ;
aLabelNode->GetChangeNodeInGate()->PortState( SUPERV::ReadyState ) ;
// delete anAny ;
LoopOutPort->PortDone( true ) ;
//JR 21.02.2005 Debug Memory leak : CORBA::Any * anAny = new CORBA::Any() ; // InitLoop
CORBA::Any anAny = CORBA::Any() ; // InitLoop
-//JR 21.02.2005 Debug Memory leak : *anAny <<= (long ) 1 ;
- anAny <<= (long ) 1 ;
+//JR 21.02.2005 Debug Memory leak : *anAny <<= (CORBA::Long ) 1 ;
+ anAny <<= (CORBA::Long ) 1 ;
LoopOutPort->SetValue( anAny ) ;
int j ;
for ( j = 0 ; j < toNode->GetNodeInPortsSize() ; j++ ) {
if ( anInPort->IsGate() ) {
//JR 21.02.2005 Debug Memory leak : CORBA::Any * anAny = new CORBA::Any() ;
CORBA::Any anAny = CORBA::Any() ;
-//JR 21.02.2005 Debug Memory leak : *anAny <<= (long ) 0 ;
- anAny <<= (long ) 0 ;
+//JR 21.02.2005 Debug Memory leak : *anAny <<= (CORBA::Long ) 0 ;
+ anAny <<= (CORBA::Long ) 0 ;
theOutPort->SetValue( anAny ) ;
// delete anAny ;
}
- if ( !anInPort->IsDataStream() &&
+ if ( !anInPort->IsDataStream()
+ &&
!anInPort->IsDataConnected() ) {
- anInPort->PortState( SUPERV::WaitingState ) ;
+ anInPort->PortState( SUPERV::WaitingState ) ;
}
//JR 18.02.2005 Debug Memory leak : delete does not destroy that string ...
// D.Name = CORBA::string_dup( anInPort->GetServicesParameter().Parametername ) ;
const char * Type = anInPort->GetServicesParameter().Parametertype ;
switch ( D.Value.type()->kind() ) { // { string , long , double , objref }
case CORBA::tk_string:
- char * t;
+ const char * t;
D.Value >>= t;
#if InParametersSetTrace
cdebug << t << " (string)" ;
// theOutPort->Value( D.Value ) ;
}
else if ( !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- long l ;
- sscanf( t , "%ld" , &l ) ;
+ long ll ;
+ sscanf( t , "%ld" , &ll ) ;
+ CORBA::Long l = ll ;
D.Value <<= l ;
#if InParametersSetTrace
- cdebug << "string '" << t << " --> long " << l ;
+ cdebug << "string '" << t << " --> CORBA::Long " << l ;
#endif
// theOutPort->Value( D.Value ) ;
}
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= f ;
#else
- D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+ D.Value <<= (CORBA::Float) f ;
#endif
#if InParametersSetTrace
cdebug << "string '" << t << "' --> " << setw(25) << setprecision(18) << d << " --> float " << " = "
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= d ;
#else
- D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ D.Value <<= (CORBA::Double) d ;
#endif
#if InParametersSetTrace
cdebug << "string '" << t << " --> double " << setw(25) << setprecision(18) << d ;
theOutPort->StringValue( *GraphBase::Base::_fdebug ) ;
cdebug << endl ;
#endif
- long l;
+ CORBA::Long l;
D.Value >>= l;
#if InParametersSetTrace
- cdebug << l << " (long)" << endl ;
+ cdebug << l << " (CORBA::Long)" << endl ;
#endif
if ( !strcmp( Type , "string" ) ) {
char t[40] ;
- sprintf( t , "%ld" , l ) ;
+ sprintf( t , "%ld" , (long)l ) ;
D.Value <<= t ;
// theOutPort->Value( D.Value ) ;
}
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= f ;
#else
- D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+ D.Value <<= (CORBA::Float) f ;
#endif
// theOutPort->Value( D.Value ) ;
}
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= d ;
#else
- D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ D.Value <<= (CORBA::Double) d ;
#endif
// theOutPort->Value( D.Value ) ;
}
#endif
break;
case CORBA::tk_double:
- double d;
+ CORBA::Double d;
D.Value >>= d;
#if InParametersSetTrace
cdebug << d << " (double)" << endl ;
// theOutPort->Value( D.Value ) ;
}
else if ( !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- long l ;
- l = (long ) d ;
+ CORBA::Long l ;
+ l = (CORBA::Long ) d ;
D.Value <<= l ;
// theOutPort->Value( D.Value ) ;
}
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= f ;
#else
- D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+ D.Value <<= (CORBA::Float) f ;
#endif
// theOutPort->Value( D.Value ) ;
}
// theOutPort->Value( D.Value ) ;
}
else if ( !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- long l = 0 ;
+ CORBA::Long l = 0 ;
D.Value <<= l ;
// theOutPort->Value( D.Value ) ;
}
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= f ;
#else
- D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+ D.Value <<= (CORBA::Float) f ;
#endif
// theOutPort->Value( D.Value ) ;
}
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= d ;
#else
- D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ D.Value <<= (CORBA::Double) d ;
#endif
// theOutPort->Value( D.Value ) ;
}
D.Value <<= s ;
}
else if ( !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- D.Value <<= (long ) 0 ;
+ D.Value <<= (CORBA::Long ) 0 ;
}
else if ( !strcmp( Type , "float" ) ) {
float f = 0 ;
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= f ;
#else
- D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+//JR D.Value.replace(CORBA::TypeCode::PR_float_tc(), (void*)(&f));
+ D.Value <<= (CORBA::Float) f ;
#endif
}
else if ( !strcmp( Type , "double" ) ) {
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= d ;
#else
- D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ D.Value <<= (CORBA::Double) d ;
#endif
}
else {
#if InParametersSetTrace
switch (D.Value.type()->kind()) { // { string , long , double , objref }
case CORBA::tk_string:
- char * t;
+ const char * t;
D.Value >>= t;
cdebug << ThreadNo() << " " << t << "(string)" << endl ;
break;
cdebug << ThreadNo() << " " << c << "(char)" << endl ;
break;
case CORBA::tk_short:
- short s;
+ CORBA::Short s;
D.Value >>= s;
cdebug << ThreadNo() << " " << s << "(short)" << endl ;
break;
case CORBA::tk_long:
- long l;
+ CORBA::Long l;
D.Value >>= l;
- cdebug << ThreadNo() << " " << l << "(long)" << endl ;
+ cdebug << ThreadNo() << " " << l << "(CORBA::Long)" << endl ;
break;
case CORBA::tk_float:
- float f;
+ CORBA::Float f;
D.Value >>= f;
cdebug << ThreadNo() << " " << f << "(float)" << endl ;
break;
case CORBA::tk_double:
- double d;
+ CORBA::Double d;
D.Value >>= d;
cdebug << ThreadNo() << " " << d << "(double)" << endl ;
break;
ServicesAnyData D = OutParametersList[i] ;
switch (D.Value.type()->kind()) { // { string , long , double , objref }
case CORBA::tk_string: {
- char * t;
+ const char * t;
D.Value >>= t;
#if OutParametersSetTrace
cdebug << ThreadNo() << " " << t << "(string)" << endl ;
case CORBA::tk_boolean: {
bool b ;
D.Value >>= (CORBA::Any::to_boolean ) b;
- long l = (long ) b ;
+ CORBA::Long l = (CORBA::Long ) b ;
D.Value <<= l ;
#if OutParametersSetTrace
cdebug << ThreadNo() << " " << b << "(boolean)" << endl ;
case CORBA::tk_char: {
unsigned char c ;
D.Value >>= (CORBA::Any::to_char ) c;
- long l = (long ) c ;
+ CORBA::Long l = (CORBA::Long ) c ;
D.Value <<= l ;
#if OutParametersSetTrace
cdebug << ThreadNo() << " " << c << "(char)" << endl ;
break;
}
case CORBA::tk_short: {
- short s;
+ CORBA::Short s;
D.Value >>= s;
- long l = (long ) s ;
+ CORBA::Long l = (CORBA::Long ) s ;
D.Value <<= l ;
#if OutParametersSetTrace
cdebug << ThreadNo() << " " << s << "(short)" << endl ;
break;
}
case CORBA::tk_long: {
- long l;
+ CORBA::Long l;
D.Value >>= l;
#if OutParametersSetTrace
- cdebug << ThreadNo() << " " << l << "(long)" << endl ;
+ cdebug << ThreadNo() << " " << l << "(CORBA::Long)" << endl ;
#endif
break;
}
case CORBA::tk_float: {
- float f;
+ CORBA::Float f;
D.Value >>= f;
double d = (double ) f ;
#ifdef REDHAT // mkr : debug for PAL12255
D.Value <<= d ;
#else
- D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR D.Value.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ D.Value <<= (CORBA::Double) d ;
#endif
#if OutParametersSetTrace
cdebug << ThreadNo() << " " << f << "(float)" << endl ;
break;
}
case CORBA::tk_double: {
- double d;
+ CORBA::Double d;
D.Value >>= d;
#if OutParametersSetTrace
cdebug << ThreadNo() << " " << d << "(double)" << endl ;
#if OutParametersSetTrace
cdebug << " Gate " ;
#endif
- long l = 1;
+ CORBA::Long l = 1;
OutParametersList[i].Value <<= l;
anOutPort->SetValue( OutParametersList[i].Value );
}
const char * ToNodeName = anOutPort->ChangeInPorts( j )->NodeName() ;
if ( !strcmp( ToNodeName , _OutNode->Name() ) &&
_OutNode->Graph()->GraphMacroLevel() != 0 ) {
+//JR NPAL14110 09.02.2007 : That must be done only at the end of SubGraph because we may
+// have an output of the SubGraph in a Loop !...
+// So that code must be done in CheckAllDone
+#if 0
#if OutParametersSetTrace
cdebug << "OutParametersSet ToNodeName " << _OutNode->Name() << " CoupledNode "
<< _OutNode->Graph()->CoupledNodeName() << _OutNode->Graph()->CoupledNode()
<< _OutNode->Graph()->CoupledNodeName() << " , "
<< anOutPort->ChangeInPorts( j )->PortName() << " , value )" << endl ;
#endif
-
+#endif
}
else {
GraphBase::ComputingNode * ToNode = _OutNode->Graph()->GetChangeGraphNode( ToNodeName ) ;
#if OutParametersSetTrace
switch ( anOutPort->Value().type()->kind() ) {
case CORBA::tk_string:
- char * t;
+ const char * t;
(anOutPort->Value()) >>= t;
cdebug << ThreadNo() << " Out" << i << " : " << t << "(string)" << endl ;
break;
cdebug << ThreadNo() << " Out" << i << " : " << c << "(char)" << endl ;
break;
case CORBA::tk_short:
- short s;
+ CORBA::Short s;
(anOutPort->Value()) >>= s;
cdebug << ThreadNo() << " Out" << i << " : " << s << "(short)" << endl ;
break;
case CORBA::tk_long:
- long l;
+ CORBA::Long l;
(anOutPort->Value()) >>= l;
- cdebug << ThreadNo() << " Out" << i << " : " << l << "(long)" << endl ;
+ cdebug << ThreadNo() << " Out" << i << " : " << l << "(CORBA::Long)" << endl ;
break;
case CORBA::tk_float:
- float f;
+ CORBA::Float f;
(anOutPort->Value()) >>= f;
cdebug << ThreadNo() << " Out" << i << " : " << f << "(float)" << endl ;
break;
case CORBA::tk_double:
- double d;
+ CORBA::Double d;
(anOutPort->Value()) >>= d;
cdebug << ThreadNo() << " Out" << i << " : " << d << "(double)" << endl ;
break;
<< aGateOutPort->PortName() << " " << aGateOutPort->Kind() << " WITH DefaultPort"
<< endl ;
#endif
- long l = 1;
+ CORBA::Long l = 1;
OutParametersList[0].Value <<= l ;
aGateOutPort->SetValue( OutParametersList[0].Value ) ;
}
<< aGateOutPort->PortName() << " " << aGateOutPort->Kind() << " NO DefaultPort"
<< " OrSwitch " << OrSwitch << " DefaultSwitch " << DefaultSwitch << endl ;
#endif
- long l = 0;
+ CORBA::Long l = 0;
OutParametersList[0].Value <<= l ;
aGateOutPort->SetValue( OutParametersList[0].Value ) ;
}