nds2-client - Developer 0.16.7
Loading...
Searching...
No Matches
nds_request_fragment.hh
Go to the documentation of this file.
1#ifndef NDS_REQUEST_FRAGMENT_HH
2#define NDS_REQUEST_FRAGMENT_HH
3
4#include <memory>
5
6#include "nds_availability.hh"
7
8namespace NDS
9{
10 namespace detail
11 {
13 {
14 // typedef std::pair<buffer::gps_second_type,
15 // buffer::gps_second_type>
16 // time_span_type;
17 typedef std::vector< buffer* > working_buffers;
19
20 channel::channel_names_type names;
23
24 bool is_compatible( const time_span_type& avail ) const;
25
26 bool push_back_if( const std::string& name,
27 time_span_type avail,
28 buffer* dest_buffer );
29
31 const working_buffers& dest_buffers,
32 buffer::gps_second_type gps_start,
33 buffer::gps_second_type gps_stop );
34 };
35
36 typedef std::vector< request_fragment > request_fragments_type;
37 }
38}
39
40#endif // NDS_CONNECTION_REQUEST_HH
A buffer holds the data contents of a channel.
Definition nds_buffer.hh:28
std::vector< std::string > channel_names_type
A vector of channel names.
Definition nds_channel.hh:104
A list of simple segments. This does not contain the channel name.
Definition nds_availability.hh:80
std::vector< request_fragment > request_fragments_type
Definition nds_request_fragment.hh:36
The NDS client namespace.
Definition debug_stream.cc:18
Definition nds_request_fragment.hh:13
channel::channel_names_type names
Definition nds_request_fragment.hh:20
bool is_compatible(const time_span_type &avail) const
Definition nds_request_fragment.cc:13
time_span_type time_spans
Definition nds_request_fragment.hh:22
std::vector< buffer * > working_buffers
Definition nds_request_fragment.hh:17
simple_segment_list_type time_span_type
Definition nds_request_fragment.hh:18
bool push_back_if(const std::string &name, time_span_type avail, buffer *dest_buffer)
Definition nds_request_fragment.cc:23
void bulk_set(const buffer::channel_names_type &names, const working_buffers &dest_buffers, buffer::gps_second_type gps_start, buffer::gps_second_type gps_stop)
Definition nds_request_fragment.cc:41
working_buffers buffers
Definition nds_request_fragment.hh:21