Template Class InputOutputByteDeviceConcept
Defined in File devices.hpp
Class Documentation
-
template<typename Implementation>
class InputOutputByteDeviceConcept Validates functionality for the input-output byte device concept.
This checks if a device can handle input-output of all char types (char, signed char, unsigned char).
Public Functions
-
inline ecl_compile_time_concept_test(InputOutputByteDeviceConcept)
Implements a concept test for input-output byte devices.
The following conditions are required by input-output byte devices:
long read(char &c) : read a single character from the device buffer.
long read(char *s, unsigned long n) : read a char buffer from the device buffer.
long write(char &c) : write a single character to the device buffer.
long write(char *s, unsigned long n) : write a char buffer to the device buffer.
void flush() : a method for flushing the output device buffer to the device.
Along with the read/write functions implemented for signed and unsigned char types.
-
inline ecl_compile_time_concept_test(InputOutputByteDeviceConcept)