}
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 ;
#ifdef REDHAT // mkr : debug for PAL12255
- InitialValue <<= (double ) 0. ;
+ InitialValue <<= (float ) 0. ;
#else
- double d = 0.;
- InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR double d = 0.;
+//JR InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ InitialValue <<= (CORBA::Float) 0. ;
#endif
}
#ifdef REDHAT // mkr : debug for PAL12255
InitialValue <<= (double ) 0. ;
#else
- double d = 0.;
- InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR double d = 0.;
+//JR InitialValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ InitialValue <<= (CORBA::Double) 0. ;
#endif
}
else { // Default
}
// else {
// cdebug << "InitialValues ERROR (other) " << Type << endl ;
-// InitialValue <<= (long ) 0 ;
+// InitialValue <<= (CORBA::Long ) 0 ;
// }
_InitialValue = new CORBA::Any( InitialValue ) ;
_Value = &_InitialValue ;
#endif
switch (aDataValue->type()->kind()) { // Input Value
case CORBA::tk_string: { // Input string Value
- char * t;
+ const char * t;
*aDataValue >>= t;
#if ValueTrace
cdebug << t << " (string)" ;
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" ) ) {
#ifdef REDHAT // mkr : debug for PAL12255
*theValue <<= d ;
#else
- theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ *theValue <<= (CORBA::Double) d ;
#endif
*theValue >>= d ;
#if ValueTrace
}
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 ;
+ const char *tt ;
*theValue >>= tt ;
#if ValueTrace
cdebug << " --> Value( " << t << ") (string) kind " << theValue->type()->kind() ;
#ifdef REDHAT // mkr : debug for PAL12255
*theValue <<= d ;
#else
- theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ *theValue <<= (CORBA::Double) d ;
#endif
*theValue >>= d ;
char t[40] ;
sprintf( t , "%lf" , d ) ;
*theValue <<= t ;
- char *tt ;
+ const char *tt ;
*theValue >>= tt ;
#if ValueTrace
cdebug << " --> Value( " << t << ") (string) kind " << theValue->type()->kind() ;
}
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 ;
+#ifdef OMNI_LONG_IS_INT
+ long ll = (long ) obj ;
+ CORBA::Long l = (CORBA::Long ) ll ;
+#else
+ CORBA::Long l = (CORBA::Long ) obj ;
+#endif
*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" ) ) {
#ifdef REDHAT // mkr : debug for PAL12255
*theValue <<= d ;
#else
- theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR theValue->replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ *theValue <<= (CORBA::Double) d ;
#endif
*theValue >>= d;
#if ValueTrace
//JR 30.03.2005 switch ( theValue->type()->kind() ) {
switch ( theValue.type()->kind() ) {
case CORBA::tk_string: {
- char * t;
+ const char * t;
//JR 30.03.2005 *theValue >>= t;
theValue >>= t;
// cdebug << "GraphBase::DataPort::Value() : " << t << " (string) " << endl ;
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 ;
const CORBA::Any * theValue = *_Value ;
switch (theValue->type()->kind()) {
case CORBA::tk_string:
- char * t;
+ const char * t;
*theValue >>= t;
f << t << " (string)" ;
break;
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 ;