예제 #1
0
//virtual
bool
datafile::getTIC( int /* fcn */, adcontrols::Chromatogram& c ) const
{
    if ( lrpfile_ ) {
        std::vector< double > time, intens;
        lrpfile_->getTIC( time, intens );
        c.resize( time.size() );
        c.setTimeArray( time.data() );
        c.setIntensityArray( intens.data() );
        return true;
    }
	return false;
}
예제 #2
0
// virtual
bool
datafile::getTIC( int fcn, adcontrols::Chromatogram& c ) const
{
	(void)fcn;

	CComBSTR strSumIntensities( L"SumIntensity" );
	CComBSTR strRetentionTime(  L"RetentionTime" );

	if( pAnalysis_->HasAnalysisData( &strSumIntensities ) )	{
		_variant_t vIntens = pAnalysis_->GetAnalysisData( &strSumIntensities );
		SafeArray sIntens( vIntens );
		c.resize( sIntens.size() );
		c.setIntensityArray( reinterpret_cast< const double *>( sIntens.p() ) );
	}

	if( pAnalysis_->HasAnalysisData( &strRetentionTime ) )	{
		// array of seconds
		_variant_t vTimes = pAnalysis_->GetAnalysisData( &strRetentionTime );
		SafeArray sTimes( vTimes );
		c.setTimeArray( reinterpret_cast< const double *>( sTimes.p() ) );
	}
	return true;
}