1 #ifndef NDS_INTERNAL_CHANNEL_CACHE_HH
2 #define NDS_INTERNAL_CHANNEL_CACHE_HH
8 #include "nds_connection.hh"
17 struct nds1_cached_channel
24 channel::channel_type channel_type;
25 channel::data_type data_type;
26 std::array< char, 64 + 60 + 1 > name;
27 std::array< char, 40 + 1 > units;
30 class channel_cache_nds1
33 typedef detail::nds1_cached_channel cache_entry_type;
34 typedef std::vector< cache_entry_type > cache_type;
36 channel_cache_nds1( detail::daq_accessor& server );
38 size_t count_channels( std::string channel_glob,
39 channel::channel_type channel_type_mask,
40 channel::data_type data_type_mask,
41 channel::sample_rate_type min_sample_rate,
42 channel::sample_rate_type max_sample_rate );
45 find_channels( std::string channel_glob,
46 channel::channel_type channel_type_mask,
47 channel::data_type data_type_mask,
48 channel::sample_rate_type min_sample_rate,
49 channel::sample_rate_type max_sample_rate );
54 detail::daq_accessor& server_;
60 #endif // NDS_INTERNAL_CHANNEL_CACHE_HH