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
11class RUDIMENTS_DLLSPEC input : virtual public object {
12 public:
13
16
18 virtual ~input();
19
20
28 virtual off64_t setPositionRelativeToBeginning(off64_t offset);
29
37 virtual off64_t setPositionRelativeToCurrent(off64_t offset);
38
47 virtual off64_t setPositionRelativeToEnd(off64_t offset);
48
55 virtual off64_t getPosition();
56
57
61 virtual ssize_t read(byte_t *buffer, size_t size)=0;
62
66 virtual ssize_t read(char *buffer, size_t length)=0;
67
71 virtual ssize_t read(char *buffer)=0;
72
76 virtual ssize_t read(wchar_t *buffer, size_t length)=0;
77
81 virtual ssize_t read(wchar_t *buffer)=0;
82
86 virtual ssize_t readUcs2(ucs2_t *buffer, size_t length)=0;
87
91 virtual ssize_t readUcs2(ucs2_t *buffer)=0;
92
96 virtual ssize_t read(int16_t *buffer)=0;
97
101 virtual ssize_t read(int32_t *buffer)=0;
102
106 virtual ssize_t read(int64_t *buffer)=0;
107
111 virtual ssize_t read(byte_t *buffer)=0;
112
117 virtual ssize_t read(uint16_t *buffer)=0;
118
123 virtual ssize_t read(uint32_t *buffer)=0;
124
129 virtual ssize_t read(uint64_t *buffer)=0;
130
135 virtual ssize_t read(float *buffer)=0;
136
141 virtual ssize_t read(double *buffer)=0;
142
151 ssize_t read(char **buffer, const char *terminator);
152
164 ssize_t read(char **buffer,
165 const char *terminator, size_t maxbytes);
166
175 virtual ssize_t read(byte_t *buffer, size_t size,
176 int32_t sec, int32_t usec);
177
186 virtual ssize_t read(char *buffer, size_t length,
187 int32_t sec, int32_t usec);
188
197 virtual ssize_t read(char *buffer,
198 int32_t sec, int32_t usec);
199
208 virtual ssize_t read(wchar_t *buffer, size_t length,
209 int32_t sec, int32_t usec);
210
219 virtual ssize_t read(wchar_t *buffer,
220 int32_t sec, int32_t usec);
221
230 virtual ssize_t readUcs2(ucs2_t *buffer, size_t length,
231 int32_t sec, int32_t usec);
232
241 virtual ssize_t readUcs2(ucs2_t *buffer,
242 int32_t sec, int32_t usec);
243
252 virtual ssize_t read(int16_t *buffer,
253 int32_t sec, int32_t usec);
254
263 virtual ssize_t read(int32_t *buffer,
264 int32_t sec, int32_t usec);
265
274 virtual ssize_t read(int64_t *buffer,
275 int32_t sec, int32_t usec);
276
285 virtual ssize_t read(byte_t *buffer,
286 int32_t sec, int32_t usec);
287
297 virtual ssize_t read(uint16_t *buffer,
298 int32_t sec, int32_t usec);
299
309 virtual ssize_t read(uint32_t *buffer,
310 int32_t sec, int32_t usec);
311
321 virtual ssize_t read(uint64_t *buffer,
322 int32_t sec, int32_t usec);
323
333 virtual ssize_t read(float *buffer,
334 int32_t sec, int32_t usec);
335
345 virtual ssize_t read(double *buffer,
346 int32_t sec, int32_t usec);
347
357 ssize_t read(char **buffer, const char *terminator,
358 int32_t sec, int32_t usec);
359
372 ssize_t read(char **buffer,
373 const char *terminator, size_t maxbytes,
374 int32_t sec, int32_t usec);
375
391 ssize_t read(char **buffer,
392 const char *terminator, size_t maxbytes,
393 char escapechar, int32_t sec, int32_t usec);
394
395 #include <rudiments/private/input.h>
396};
397
398#include <rudiments/private/inputinlines.h>
399
400#endif
Definition input.h:11
virtual ssize_t read(byte_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(char *buffer)=0
virtual ssize_t read(byte_t *buffer)=0
virtual ssize_t read(double *buffer)=0
virtual ssize_t read(char *buffer, int32_t sec, int32_t usec)
virtual ssize_t readUcs2(ucs2_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(int16_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(char *buffer, size_t length, int32_t sec, int32_t usec)
virtual ssize_t readUcs2(ucs2_t *buffer)=0
virtual ssize_t read(uint16_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(wchar_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(uint16_t *buffer)=0
virtual ssize_t read(uint32_t *buffer)=0
virtual ssize_t read(wchar_t *buffer, size_t length)=0
virtual ssize_t read(int32_t *buffer)=0
virtual ssize_t read(wchar_t *buffer)=0
virtual ssize_t read(float *buffer)=0
virtual ssize_t read(int64_t *buffer)=0
virtual ssize_t read(int32_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(char *buffer, size_t length)=0
virtual ssize_t read(uint64_t *buffer)=0
ssize_t read(char **buffer, const char *terminator, size_t maxbytes, char escapechar, int32_t sec, int32_t usec)
virtual ssize_t read(float *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(double *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(uint32_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t readUcs2(ucs2_t *buffer, size_t length)=0
virtual ssize_t read(uint64_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t read(int16_t *buffer)=0
virtual ssize_t read(byte_t *buffer, size_t size, int32_t sec, int32_t usec)
virtual ssize_t read(byte_t *buffer, size_t size)=0
virtual ~input()
virtual ssize_t read(wchar_t *buffer, size_t length, int32_t sec, int32_t usec)
virtual ssize_t read(int64_t *buffer, int32_t sec, int32_t usec)
virtual ssize_t readUcs2(ucs2_t *buffer, size_t length, int32_t sec, int32_t usec)
Definition object.h:10