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
#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
#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 ;
#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
#ifdef REDHAT // mkr : debug for PAL12255
aLink.aLinkValue <<= (double ) 0. ;
#else
- aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ aLink.aLinkValue <<= (CORBA::Double) 0. ;
#endif
aLink.aLinkValue >>= d;
#if TRACE
aLink.aLinkValue <<= d;
aLinkValue <<= d;
#else
- aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
- aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+//JR aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ aLink.aLinkValue <<= (CORBA::Double) d;
+ aLinkValue <<= (CORBA::Double) d;
#endif
aLinkDoubleValue = new CORBA::Any( aLinkValue );
#if TRACE
#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 ;
#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 ) ;
}
#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 <<= 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 ) ;
}
#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 {
#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 ;