break;
}
case CORBA::tk_long: {
- long l;
+ CORBA::Long l;
anAny >>= l;
*_fdebug << " " << l << "(tk_long)" << endl ;
break;
}
else if ( !strcmp( Type , "boolean" ) ) {
cdebug << "boolean" << endl ;
- InitialValue <<= (long ) 0 ;
+ InitialValue <<= (CORBA::Long ) 0 ;
}
else if ( !strcmp( Type , "char" ) ) {
cdebug << "char" << endl ;
- InitialValue <<= (long ) 0 ;
+ InitialValue <<= (CORBA::Long ) 0 ;
}
else if ( !strcmp( Type , "short" ) ) {
cdebug << "short" << endl ;
- InitialValue <<= (long ) 0 ;
+ InitialValue <<= (CORBA::Long ) 0 ;
}
else if ( !strcmp( Type , "int" ) ) {
cdebug << "long" << endl ;
- InitialValue <<= (long ) 0 ;
+ InitialValue <<= (CORBA::Long ) 0 ;
}
else if ( !strcmp( Type , "long" ) ) {
cdebug << "long" << endl ;
- InitialValue <<= (long ) 0 ;
+ InitialValue <<= (CORBA::Long ) 0 ;
}
else if ( !strcmp( Type , "float" ) ) {
cdebug << "float" << endl ;
}
// else {
// cdebug << "InitialValues ERROR (other) " << Type << endl ;
-// InitialValue <<= (long ) 0 ;
+// InitialValue <<= (CORBA::Long ) 0 ;
// }
_InitialValue = new CORBA::Any( InitialValue ) ;
_Value = &_InitialValue ;
CORBA::Any * theValue = new CORBA::Any() ;
if ( !strcmp( Type , "boolean" ) || !strcmp( Type , "char" ) ||
!strcmp( Type , "short" ) || !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- long l ;
- sscanf( t , "%ld" , &l ) ;
+ long ll ;
+ sscanf( t , "%ld" , &ll ) ;
+ CORBA::Long l = ll ;
*theValue <<= l ;
*theValue >>= l;
#if ValueTrace
- cdebug << " --> Value( " << l << ") (long) kind " << theValue->type()->kind() ;
+ cdebug << " --> Value( " << l << ") (CORBA::Long) kind " << theValue->type()->kind() ;
#endif
}
else if ( !strcmp( Type , "float" ) || !strcmp( Type , "double" ) ) {
}
break;
}
- case CORBA::tk_long: { // Input long Value
- long l;
+ case CORBA::tk_long: { // Input CORBA::Long Value
+ CORBA::Long l;
*aDataValue >>= l;
#if ValueTrace
- cdebug << "Value( " << l << ") (long)";
+ cdebug << "Value( " << l << ") (CORBA::Long)";
#endif
if ( !strcmp( Type , "boolean" ) || !strcmp( Type , "char" ) ||
!strcmp( Type , "short" ) || !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) { // SuperVision Value
*_Value = aDataValue ;
*_theValue >>= l;
#if ValueTrace
- cdebug << " == Value( " << l << ") (long)";
+ cdebug << " == Value( " << l << ") (CORBA::Long)";
#endif
}
else {
CORBA::Any * theValue = new CORBA::Any() ;
if ( !strcmp( Type , "string" ) ) {
+ long ll = l;
char t[40] ;
- sprintf( t , "%ld" , l ) ;
+ sprintf( t , "%ld" , ll ) ;
*theValue <<= t ;
char *tt ;
*theValue >>= tt ;
}
else if ( !strcmp( Type , "boolean" ) || !strcmp( Type , "char" ) ||
!strcmp( Type , "short" ) || !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- long l = (long ) d ;
+ CORBA::Long l = (CORBA::Long ) d ;
*theValue <<= l ;
*theValue >>= l;
#if ValueTrace
- cdebug << " --> Value( " << l << ") (long) kind " << theValue->type()->kind() ;
+ cdebug << " --> Value( " << l << ") (CORBA::Long) kind " << theValue->type()->kind() ;
#endif
}
else { // Default
}
else if ( !strcmp( Type , "boolean" ) || !strcmp( Type , "char" ) ||
!strcmp( Type , "short" ) || !strcmp( Type , "int" ) || !strcmp( Type , "long" ) ) {
- long l = (long ) obj ;
+ CORBA::Long l = (CORBA::Long ) obj ;
*theValue <<= l ;
*theValue >>= l;
#if ValueTrace
- cdebug << " --> Value( " << l << ") (long) kind " << theValue->type()->kind() ;
+ cdebug << " --> Value( " << l << ") (CORBA::Long) kind " << theValue->type()->kind() ;
#endif
}
else if ( !strcmp( Type , "float" ) || !strcmp( Type , "double" ) ) {
break;
}
case CORBA::tk_long: {
- long l;
+ CORBA::Long l;
//JR 30.03.2005 *theValue >>= l;
theValue >>= l;
-// cdebug << "GraphBase::DataPort::Value() : " << l << " (long) " << endl ;
+// cdebug << "GraphBase::DataPort::Value() : " << l << " (CORBA::Long) " << endl ;
break;
}
case CORBA::tk_objref: {
// cdebug << pthread_self() << " BoolValue() --> pthread_mutex_locked " << aMutexWait
// << endl ;
if ( (*_Value)->type()->kind() == CORBA::tk_long ) {
- long val ;
+ CORBA::Long val ;
**_Value >>= val ;
if ( val ) {
RetVal = true ;
f << d << " (double)" ;
break;
case CORBA::tk_long:
- long l;
+ CORBA::Long l;
*theValue >>= l;
- f << l << " (long)" ;
+ f << l << " (CORBA::Long)" ;
break;
case CORBA::tk_objref:
CORBA::Object_ptr ObjRef ;
CORBA::Any aValue ;
//JR 29.09.2005 Debug for CEA : we do not do that for MacroNodes :
if ( !fromNode->IsMacroNode() ) {
- aValue <<= (long ) 1 ;
+ aValue <<= (CORBA::Long ) 1 ;
}
else {
- aValue <<= (long ) 0 ;
+ aValue <<= (CORBA::Long ) 0 ;
}
fromPort->SetValue( aValue ) ;
}
cdebug << d << " (double) " ;
break;
case CORBA::tk_long:
- long l;
+ CORBA::Long l;
aValue >>= l;
- cdebug << l << " (long) " ;
+ cdebug << l << " (CORBA::Long) " ;
break;
case CORBA::tk_objref:
cdebug << "(object reference) " ;
cdebug << d << " (double) " ;
break;
case CORBA::tk_long:
- long l;
+ CORBA::Long l;
aValue >>= l;
- cdebug << l << " (long) " ;
+ cdebug << l << " (CORBA::Long) " ;
break;
case CORBA::tk_objref:
cdebug << "(object reference) " ;
cdebug << d << " (double) " ;
break;
case CORBA::tk_long:
- long l;
+ CORBA::Long l;
theValue >>= l;
- cdebug << l << " (long) " ;
+ cdebug << l << " (CORBA::Long) " ;
break;
case CORBA::tk_objref:
cdebug << "(object reference) " ;
break;
}
case CORBA::tk_long: {
- aLink.aLinkValue <<= (long ) 0 ;
- long l;
+ aLink.aLinkValue <<= (CORBA::Long ) 0 ;
+ CORBA::Long l;
aLink.aLinkValue >>= l;
#if TRACE
- MESSAGE( l << " (long)" );
+ MESSAGE( l << " (CORBA::Long)" );
#endif
break;
}
break;
}
case CORBA::tk_long: {
- long l;
- sscanf( fieldvalue[depth].c_str() , "%ld" , &l ) ;
+ long ll;
+ sscanf( fieldvalue[depth].c_str() , "%ld" , &ll ) ;
+ CORBA::Long l = ll ;
aLink.aLinkValue <<= l;
#if TRACE
- MESSAGE( l << " (long)" );
+ MESSAGE( l << " (CORBA::Long)" );
#endif
break;
}
break ;
}
case CORBA::tk_long: {
- long l;
+ CORBA::Long l;
aLink.aLinkValue >>= l;
// f << Tabs << " <value>" << l << "</value>" << endl ;
QDomElement value = Graph.createElement( "value" ) ;
aField = Graph.createTextNode( aKind ) ;
datavalue.appendChild( value ) ;
value.appendChild( aField ) ;
-// MESSAGE( "ToString( long ) " << l );
+// MESSAGE( "ToString( CORBA::Long ) " << l );
break ;
}
case CORBA::tk_objref: {
break ;
}
case CORBA::tk_long: {
- long l;
+ CORBA::Long l;
aLink.aLinkValue >>= l;
f << l ;
break ;
break ;
}
case CORBA::tk_long : {
- long l ;
+ CORBA::Long l ;
data >>= l ;
- cdebug << "ArgIn" << i << " : " << ArgName << " Value " << l << " (long)" << endl ;
+ cdebug << "ArgIn" << i << " : " << ArgName << " Value " << l << " (CORBA::Long)" << endl ;
break ;
}
case CORBA::tk_float : {
break ;
}
case CORBA::tk_long : {
- long l ;
+ CORBA::Long l ;
data >>= l ;
- cdebug << "ArgOut" << i << " : " << ArgName << " Value " << l << " (long)" << endl ;
+ cdebug << "ArgOut" << i << " : " << ArgName << " Value " << l << " (CORBA::Long)" << endl ;
break ;
}
case CORBA::tk_float : {
anOutPort->PortDone( true ) ;
//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 ) ;
_InitLoop = true ;
cdebug << "InPort" << i << " " << anInPort->PortName() << " " << anInPort->PortStatus()
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 ) {
//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 ;
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 ;
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 ;
}
// 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 ) ;
}
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 ) ;
}
// 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 ) ;
}
// 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 ) ;
}
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 ;
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;
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 ;
case CORBA::tk_short: {
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;
}
#if OutParametersSetTrace
cdebug << " Gate " ;
#endif
- long l = 1;
+ CORBA::Long l = 1;
OutParametersList[i].Value <<= l;
anOutPort->SetValue( OutParametersList[i].Value );
}
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;
<< 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 ) ;
}
break ;
}
case CORBA::tk_long : {
- long l ;
+ CORBA::Long l ;
data >>= l ;
PyObject * ArgValue = Py_BuildValue( "l" , l ) ;
#if PyDynInvokeTrace
PyTuple_SetItem( ArgsList , i , ArgValue ) ;
#if PyDynInvokeTrace
cdebug << "ArgIn" << i << " : " << sname << " " << method << " Value " << l
- << " (long) ArgsList->ob_refcnt" << ArgsList->ob_refcnt << " ArgValue->ob_refcnt"
+ << " (CORBA::Long) ArgsList->ob_refcnt" << ArgsList->ob_refcnt << " ArgValue->ob_refcnt"
<< ArgValue->ob_refcnt << endl ;
#endif
break ;
break ;
}
case CORBA::tk_long : {
- long l = 0 ;
+ CORBA::Long l = 0 ;
PyObject * ArgValue ;
if ( PyTuple_Check( Result ) ) {
ArgValue = PyTuple_GetItem( Result , i ) ;
data <<= l ;
#if PyDynInvokeTrace
if ( ArgValue )
- cdebug << "ArgOut" << i << " : " << sname << " " << method << " Value " << l << " (long)"
+ cdebug << "ArgOut" << i << " : " << sname << " " << method << " Value " << l << " (CORBA::Long)"
<< " Result->ob_refcnt" << Result->ob_refcnt << " ArgValue->ob_refcnt"
<< ArgValue->ob_refcnt << endl ;
#endif
if ( !PyFloat_Check( ArgValue ) ) {
// mkr : bug PAL12454
if ( PyLong_Check( ArgValue ) ) {
- cdebug << "ArgOut" << i << " : " << sname << " " << method << " OK (long)" << endl ;
- long l = PyLong_AsLong( ArgValue );
+ cdebug << "ArgOut" << i << " : " << sname << " " << method << " OK (CORBA::Long)" << endl ;
+ CORBA::Long l = PyLong_AsLong( ArgValue );
f = (float) l;
}
else if ( PyInt_Check( ArgValue ) ) {
cdebug << "ArgOut" << i << " : " << sname << " " << method << " OK (int)" << endl ;
- long l = PyInt_AsLong( ArgValue );
+ CORBA::Long l = PyInt_AsLong( ArgValue );
f = (float) l;
}
else {
if ( !PyFloat_Check( ArgValue ) ) {
// mkr : bug PAL12454
if ( PyLong_Check( ArgValue ) ) {
- cdebug << "ArgOut" << i << " : " << sname << " " << method << " OK (long)" << endl ;
- long l = PyLong_AsLong( ArgValue );
+ cdebug << "ArgOut" << i << " : " << sname << " " << method << " OK (CORBA::Long)" << endl ;
+ CORBA::Long l = PyLong_AsLong( ArgValue );
d = (double) l;
}
else if ( PyInt_Check( ArgValue ) ) {
cdebug << "ArgOut" << i << " : " << sname << " " << method << " OK (int)" << endl ;
- long l = PyInt_AsLong( ArgValue );
+ CORBA::Long l = PyInt_AsLong( ArgValue );
d = (double) l;
}
else {
break ;
}
case CORBA::tk_long: {
- long l;
+ CORBA::Long l;
anAny >>= l;
astr << l << ends ;
retstr = astr.str().c_str() ;
-// MESSAGE( "ToString( long ) '" << l << " " << retstr << "'" );
+// MESSAGE( "ToString( CORBA::Long ) '" << l << " " << retstr << "'" );
break ;
}
case CORBA::tk_double: {