本文整理汇总了C++中DataStream::SetOutputFilter方法的典型用法代码示例。如果您正苦于以下问题:C++ DataStream::SetOutputFilter方法的具体用法?C++ DataStream::SetOutputFilter怎么用?C++ DataStream::SetOutputFilter使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类DataStream
的用法示例。
在下文中一共展示了DataStream::SetOutputFilter方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: CreateAndRestoreSavedStreamProperties
bool Multiplexer::CreateAndRestoreSavedStreamProperties()
{
DataStream *dstr = new DataStream( this,
port_save,
baud_rate_save,
port_type_save,
priority_save,
bGarmin_GRMN_mode_save
);
dstr->SetInputFilter(input_sentence_list_save);
dstr->SetInputFilterType(input_sentence_list_type_save);
dstr->SetOutputFilter(output_sentence_list_save);
dstr->SetOutputFilterType(output_sentence_list_type_save);
dstr->SetChecksumCheck(bchecksum_check_save);
AddStream(dstr);
return true;
}
示例2: StartAllStreams
void Multiplexer::StartAllStreams( void )
{
for ( size_t i = 0; i < g_pConnectionParams->Count(); i++ )
{
ConnectionParams *cp = g_pConnectionParams->Item(i);
if( cp->bEnabled ) {
#ifdef __WXGTK__
if( cp->GetDSPort().Contains(_T("Serial"))) {
if( ! g_bserial_access_checked ){
if( !CheckSerialAccess() ){
}
g_bserial_access_checked = true;
}
}
#endif
dsPortType port_type = cp->IOSelect;
DataStream *dstr = new DataStream( this,
cp->Type,
cp->GetDSPort(),
wxString::Format(wxT("%i"),cp->Baudrate),
port_type,
cp->Priority,
cp->Garmin
);
dstr->SetInputFilter(cp->InputSentenceList);
dstr->SetInputFilterType(cp->InputSentenceListType);
dstr->SetOutputFilter(cp->OutputSentenceList);
dstr->SetOutputFilterType(cp->OutputSentenceListType);
dstr->SetChecksumCheck(cp->ChecksumCheck);
cp->b_IsSetup = true;
AddStream(dstr);
}
}
}