|
Open Model Railroad Network (OpenMRN)
|
Partial template specialization of buffer traits for CAN frame-typed hubs. More...
#include <HubDeviceSelect.hxx>
Public Types | |
| typedef Buffer< CanHubData > | buffer_type |
| Helper type for declaring the payload buffer type. | |
Static Public Member Functions | |
| static void | resize_target (buffer_type *b) |
| CAN buffers do not need to be resized. | |
| static void | check_target_size (buffer_type *b, int remaining) |
| a CAN buffer is only okay if the entire buffer was read in in one go. | |
| static bool | needs_read_fully () |
| static bool | limit_input () |
Partial template specialization of buffer traits for CAN frame-typed hubs.
The implementation here is equivalent to SelectBufferInfo<Hubcontainer<StructContainer<T>>> but the c++ template inference cannot figure this out.
Definition at line 125 of file HubDeviceSelect.hxx.
| typedef Buffer<CanHubData> SelectBufferInfo< Buffer< CanHubData > >::buffer_type |
Helper type for declaring the payload buffer type.
Definition at line 127 of file HubDeviceSelect.hxx.
|
inlinestatic |
a CAN buffer is only okay if the entire buffer was read in in one go.
| b | is the filled buffer, |
| remaining | tells how many bytes are empty. |
Definition at line 136 of file HubDeviceSelect.hxx.
|
inlinestatic |
Definition at line 148 of file HubDeviceSelect.hxx.
|
inlinestatic |
Definition at line 142 of file HubDeviceSelect.hxx.
|
inlinestatic |
CAN buffers do not need to be resized.
Definition at line 130 of file HubDeviceSelect.hxx.