40 #if defined __cplusplus
140 if( ( target->
absPath =
xDataMisc_getAbsPath( smr, fileName ) ) == NULL )
return( _tpia_target_heated_releaseAndReturnOne( smr, doc, target ) );
141 if( ( doc =
xData_parseReadFile( smr, fileName, NULL, NULL ) ) == NULL )
return( _tpia_target_heated_releaseAndReturnOne( smr, doc, target ) );
146 if( strcmp( element->
name,
"xTargetHeated" ) != 0 ) {
156 if(
smr_isOk( smr ) ) _tpia_target_heated_getEnergyGridAndAllocateTotalCrossSections( smr, target, element );
160 return( _tpia_target_heated_releaseAndReturnOne( smr, doc, target ) );
165 return( _tpia_target_heated_releaseAndReturnOne( smr, doc, target ) );
167 if( !strcmp( channelElement->
name,
"channel" ) ) {
182 if( !
smr_isOk( smr ) )
return( _tpia_target_heated_releaseAndReturnOne( smr, doc, target ) ); }
189 if( !strcmp( channelElement->
name,
"channel" ) ) {
191 if( channel == NULL )
break;
201 if(
smr_isOk( smr ) && checkElememtsForAccess ) _tpia_target_heated_checkElememtsForAccess( smr, doc );
211 xData_Int i, energyGridIndex, energyGridStart, energyGridEnd, energyGridLength;
220 xData_getCommonData( smr, energyGrid, &energyGridIndex, &energyGridStart, &energyGridEnd, &energyGridLength );
267 if( ( index >= 0 ) && ( index < target->nChannels ) ) channel = target->
channels[
index];
277 if( channel == NULL ) {
278 smr_setMessageError( smr, NULL, __FILE__, __LINE__, 1,
"bad channel index = %d for %s + %s", index,
299 if( energyGrid != NULL ) *energyGrid = target->
energyGrid;
314 int crossSectionType ) {
330 int crossSectionType ) {
346 if( channel == NULL )
return( -1 );
365 _tpia_target_heated_checkElememtsForAccess2( smr, element );
377 _tpia_target_heated_checkElememtsForAccess2( smr, child );
381 #if defined __cplusplus