nds2-client - ClientUser  0.16.8
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Pages
Public Member Functions | Static Public Attributes | List of all members
NDS::abi_0::request_period Struct Reference

This represents a [start, stop) time with an optional data stride. More...

#include <nds_data_iterator.hh>

Public Member Functions

 request_period ()
 Default constructor, represent a request for an endless amount of live data.
 
 request_period (stride_type requested_stride)
 Represent a request for an endless amount of live data with a given stride. More...
 
 request_period (gps_second_type requested_start, gps_second_type requested_stop)
 Represent a request for bounded data [start, stop) More...
 
 request_period (gps_second_type requested_start, gps_second_type requested_stop, stride_type requested_stride)
 Represent a request for bounded data [start, stop) with a stride. More...
 

Static Public Attributes

static const stride_type FAST_STRIDE = -1
 a data stride of FAST_STRIDE requests sub-second data if possible. On systems that do not support sub-second data this is treated as AUTO_STRIDE.
 
static const stride_type AUTO_STRIDE = 0
 a data stride of AUTO_STRIDE requests that the NDS systems determine the stride of data. For online requests this will typically be 1s, for offline data this may vary but is likely to be around the size of a data frame.
 

Detailed Description

This represents a [start, stop) time with an optional data stride.

This is used to represent a time range associated with a data request. Constructors are provided to allow requesting a [start, stop) time in the past, a bounded request of live data [0, duration), and an endless request of live data [0, infinite).

Constructor & Destructor Documentation

NDS::abi_0::request_period::request_period ( stride_type  requested_stride)
inlineexplicit

Represent a request for an endless amount of live data with a given stride.

Parameters
requested_strideThe number of seconds to return in each iteration.
Note
the requested_stride should be considered a requested max, the server may return less.
NDS::abi_0::request_period::request_period ( gps_second_type  requested_start,
gps_second_type  requested_stop 
)
inlineexplicit

Represent a request for bounded data [start, stop)

Parameters
requested_startThe start time, 0 represents live/online data, else a gps time
requested_stopFor online data this is the duration, otherwise it is the stop time
Note
the requested_stride should be considered a requested max, the server may return less.
NDS::abi_0::request_period::request_period ( gps_second_type  requested_start,
gps_second_type  requested_stop,
stride_type  requested_stride 
)
inlineexplicit

Represent a request for bounded data [start, stop) with a stride.

Parameters
requested_startThe start time, 0 represents live/online data, else a gps time
requested_stopFor online data this is the duration, otherwise it is the stop time
requested_strideThe number of seconds to return data for each iteration.
Note
the requested_stride should be considered a requested max, the server may return less.

The documentation for this struct was generated from the following file: