src/po8e_conf.cpp
size_t po8eConf::numChannels(po8e::channel_DataTypes x)
{
	size_t n = 0;
	for (auto &c : cards) {
		if (c->enabled()) {
			for (auto i=0; i<c->channel_size(); i++) {
				if (c->channel(i).data_type() == x) {
					n += 1;
				}
			}
		}
	}
	return n;
}
// returns the number of channels over all cards
returns the number of channels over all cards
returns the number of channels over all cards
size_t po8eConf::numChannels(po8e::channel_DataTypes x)
{
	size_t n = 0;
	for (auto &c : cards) {
		if (c->enabled()) {
			for (auto i=0; i<c->channel_size(); i++) {
				if (c->channel(i).data_type() == x) {
					n += 1;
				}
			}
		}
	}
	return n;
}
size_t po8eConf :: numChannels ( po8e :: channel_DataTypes x ) { size_t n = 0 ; for ( auto & c : cards ) { if ( c -> enabled ( ) ) { for ( auto i = 0 ; i < c -> channel_size ( ) ; i ++ ) { if ( c -> channel ( i ) . data_type ( ) == x ) { n += 1 ; } } } } return n ; }
returns the number of channels over all cards
returns the number of channels over all cards