MyGUI 3.5.3
MyGUI_IDataStream.h
Go to the documentation of this file.
1/*
2 * This source file is part of MyGUI. For the latest info, see http://mygui.info/
3 * Distributed under the MIT License
4 * (See accompanying file COPYING.MIT or copy at http://opensource.org/licenses/MIT)
5 */
6
7#ifndef MYGUI_I_DATA_STREAM_H_
8#define MYGUI_I_DATA_STREAM_H_
9
10#include "MyGUI_Prerequest.h"
11#include "MyGUI_Types.h"
12#include <cstddef>
13
14namespace MyGUI
15{
16
17 class MYGUI_EXPORT IDataStream
18 {
19 public:
20 virtual ~IDataStream() = default;
21
22 virtual bool eof() = 0;
24 virtual size_t size() = 0;
25 virtual void readline(std::string& _source, Char _delim = '\n') = 0;
27 virtual size_t read(void* _buf, size_t _count) = 0;
28
32 std::vector<std::byte> readAll();
33
35 std::string readAllText();
36 };
37
38} // namespace MyGUI
39
40#endif // MYGUI_I_DATA_STREAM_H_
#define MYGUI_EXPORT