コード例 #1
0
void ImageSaveDlg::Save( PvConfigurationWriter &aWriter )
{
    aWriter.Store( GetSaveEnabled() ? "1" : "0", "saveenabled" );

    QString lStr;

    aWriter.Store( lStr.setNum(mOneOutOf).toAscii().data(), "oneoutof" );
    aWriter.Store( lStr.setNum(mMaxRate).toAscii().data(), "maxrate" );
    aWriter.Store( lStr.setNum(mAverageThroughput).toAscii().data(), "averagethroughput" );
    aWriter.Store( lStr.setNum(mSaveThrottling).toAscii().data(), "savethrottleoption" );
    aWriter.Store( mSavePath.toAscii().data(), "savepath" );
    aWriter.Store( mFormat == 0 ? "bmp" : "raw", "saveformat" );

}
コード例 #2
0
ファイル: logbuffer.cpp プロジェクト: HEROES-GSFC/SAS
// =============================================================================
void LogBuffer::Save( PvConfigurationWriter &aWriter )
{
    // Save a version string, just in case we need it in the future
    aWriter.Store( LOGBUFFER_VERSION, TAG_VERSION );

	// bool mGenICamEnabled;
    aWriter.Store( mGenICamEnabled ? VAL_TRUE : VAL_FALSE, TAG_GENICAMENABLED );

	// bool mBufferAllEnabled;
    aWriter.Store( mBufferAllEnabled ? VAL_TRUE : VAL_FALSE, TAG_BUFFERALLENABLED );

	// bool mBufferErrorEnabled;
    aWriter.Store( mBufferErrorEnabled ? VAL_TRUE : VAL_FALSE, TAG_BUFFERERRORENABLED );

	// QString mFilename;
	aWriter.Store( mFilename.toAscii().data(), TAG_LOGFILENAME );

	// bool mWriteToFileEnabled;
    aWriter.Store( mWriteToFileEnabled ? VAL_TRUE : VAL_FALSE, TAG_WRITETOFILEENABLED );
}