}
VXSize = 0 ;
GraphsNumber = 0 ;
+
+ aLinkValue = CORBA::Any();
}
GraphBase::XmlHandler::XmlHandler() {}
if ( constructor ) {
int sizedata = aListOfDataFlows[ GraphsNumber ].Datas.size() ;
aListOfDataFlows[ GraphsNumber ].Datas.resize( sizedata+1 ) ;
- aListOfDataFlows[ GraphsNumber ].Datas[ sizedata ] = aLink ;
+
+ if ( aLink.aLinkValue.type()->kind() == CORBA::tk_double ) // mkr : PAL12235
+ aLink.aLinkValue = *aLinkDoubleValue ;
+
+ aListOfDataFlows[ GraphsNumber ].Datas[ sizedata ] = aLink ;
+
if ( VXSize ) {
aListOfDataFlows[ GraphsNumber ].Datas[ sizedata ].aListOfCoords.resize( VXSize ) ;
int ic ;
else if ( qName == "streamgraph-deltatime" ) {
if ( fieldvalue[depth] == NULLSTRING )
return returnfalse( this , "depth3-3" , qName ) ;
- sscanf( fieldvalue[depth].c_str() ,"%lf" , (int * ) &aNode.theDeltaTime ) ;
+ sscanf( fieldvalue[depth].c_str() ,"%lf" , (double * ) &aNode.theDeltaTime ) ;
fieldvalue[depth] = NULLSTRING ;
step[depth]++ ;
step[4] = 0 ;
aLink.aLinkValue = CORBA::Any() ;
switch ( Kind ) {
case CORBA::tk_string: {
- aLink.aLinkValue <<= (char *) NULL ;
+//Mandrake 10.1/Salome 3 aLink.aLinkValue <<= (char *) NULL ;
+ aLink.aLinkValue <<= (char *) "" ;
char * t;
aLink.aLinkValue >>= t;
#if TRACE
break;
}
case CORBA::tk_double: {
- aLink.aLinkValue <<= (double ) 0. ;
- double d;
+ //aLink.aLinkValue <<= (double ) 0. ;
+ double d = 0.;
+ aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
aLink.aLinkValue >>= d;
#if TRACE
MESSAGE( d << " (double)" );
if ( fieldvalue[depth] == NULLSTRING )
return returnfalse( this , "depth4-4" , qName ) ;
if ( !strcmp( fieldvalue[depth].c_str() , "?" ) ) {
-// aLink.aLinkValue.Value = fieldvalue[depth].c_str() ;
- aLink.aLinkValue = CORBA::Any() ; // ???
+ aLink.aLinkValue <<= "" ;
}
else {
switch ( aLink.aLinkValue.type()->kind() ) {
case CORBA::tk_double: {
double d;
sscanf( fieldvalue[depth].c_str() , "%lf" , &d ) ;
- aLink.aLinkValue <<= d;
+ //aLink.aLinkValue <<= d;
+ aLink.aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ aLinkValue.replace(CORBA::TypeCode::PR_double_tc(), (void*)(&d));
+ aLinkDoubleValue = new CORBA::Any( aLinkValue );
#if TRACE
- MESSAGE( d << " (double)" );
+ MESSAGE( d << " (double)" );
#endif
break;
}
fieldvalue[depth] = NULLSTRING ;
#if TRACE
//cout << "InDataStreamParameter.inParameter-dependency " << anInDataStreamParameter.theDataStreamParameter.Parameterdependency << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
// step[depth]++ ;
// step[depth] = 4 ;
fieldvalue[depth] = NULLSTRING ;
#if TRACE
//cout << "InDataStreamParameter.inParameter-schema " << anInDataStreamParameter.theKindOfSchema << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
// step[depth]++ ;
// step[depth] = 4 ;
fieldvalue[depth] = NULLSTRING ;
#if TRACE
//cout << "InDataStreamParameter.inParameter-interpolation " << anInDataStreamParameter.theKindOfInterpolation << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
// step[depth]++ ;
// step[depth] = 4 ;
step[depth] = 4 ;
#if TRACE
//cout << "InDataStreamParameter.inParameter-extrapolation " << anInDataStreamParameter.theKindOfExtrapolation << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
break ;
}
step[depth] = 7 ;
#if TRACE
//cout << "OutDataStreamParameter.outParameter-type " << anOutDataStreamParameter.theDataStreamParameter.Parametertype << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
}
else
fieldvalue[depth] = NULLSTRING ;
#if TRACE
//cout << "OutDataStreamParameter.outParameter-name " << anOutDataStreamParameter.theDataStreamParameter.Parametername << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
// step[depth]++ ;
// step[depth] = 6 ;
fieldvalue[depth] = NULLSTRING ;
#if TRACE
//cout << "OutDataStreamParameter.outParameter-dependency " << anOutDataStreamParameter.theDataStreamParameter.Parameterdependency << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
// step[depth]++ ;
// step[depth] = 6 ;
step[depth] = 6 ;
#if TRACE
//cout << "OutDataStreamParameter.outParameter-values " << anOutDataStreamParameter.theNumberOfValues << " step[" << depth << "]"
- << step[depth] << endl ;
+ // << step[depth] << endl ;
#endif
}
else