Rudiments

input.h
1 // Copyright (c) 1999-2018 David Muse
2 // See the COPYING file for more information.
3
4 #ifndef RUDIMENTS_INPUT_H
5 #define RUDIMENTS_INPUT_H
6
7 #include <rudiments/private/inputincludes.h>
8
9 class RUDIMENTS_DLLSPEC input {
10 public:
11 virtual ~input();
12
13 virtual ssize_t read(unsigned char *buffer, size_t size)=0;
14 virtual ssize_t read(char *buffer, size_t length)=0;
15 virtual ssize_t read(char *character)=0;
16 virtual ssize_t read(int16_t *number)=0;
17 virtual ssize_t read(int32_t *number)=0;
18 virtual ssize_t read(int64_t *number)=0;
19 virtual ssize_t read(unsigned char *character)=0;
20 virtual ssize_t read(uint16_t *number)=0;
21 virtual ssize_t read(uint32_t *number)=0;
22 virtual ssize_t read(uint64_t *number)=0;
23 virtual ssize_t read(float *number)=0;
24 virtual ssize_t read(double *number)=0;
25
26 virtual ssize_t read(unsigned char *buffer, size_t size,
27 int32_t sec, int32_t usec);
28 virtual ssize_t read(char *buffer, size_t length,
29 int32_t sec, int32_t usec);
30 virtual ssize_t read(char *character,
31 int32_t sec, int32_t usec);
32 virtual ssize_t read(int16_t *number,
33 int32_t sec, int32_t usec);
34 virtual ssize_t read(int32_t *number,
35 int32_t sec, int32_t usec);
36 virtual ssize_t read(int64_t *number,
37 int32_t sec, int32_t usec);
38 virtual ssize_t read(unsigned char *character,
39 int32_t sec, int32_t usec);
40 virtual ssize_t read(uint16_t *number,
41 int32_t sec, int32_t usec);
42 virtual ssize_t read(uint32_t *number,
43 int32_t sec, int32_t usec);
44 virtual ssize_t read(uint64_t *number,
45 int32_t sec, int32_t usec);
46 virtual ssize_t read(float *number,
47 int32_t sec, int32_t usec);
48 virtual ssize_t read(double *number,
49 int32_t sec, int32_t usec);
50 };
51
52 #endif
character
Definition: character.h:11
input
Definition: input.h:9