Template Class InputOutputCharDeviceConcept

Class Documentation

template<typename Implementation>
class InputOutputCharDeviceConcept

Validates functionality for the input-output char device concept.

This checks if a device can handle input-output of char types.

Public Functions

inline ecl_compile_time_concept_test(InputOutputCharDeviceConcept)

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.