blob: 2f799330ee3eb63a20523d08c22a33e3dffa6e67 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
/* -------------------------------------------
Copyright Mahrouss Logic
------------------------------------------- */
#ifndef _SYSTEM_KIT_HCORE_FILE_HPP
#define _SYSTEM_KIT_HCORE_FILE_HPP
#include <CompilerKit/CompilerKit.hxx>
#include <NewKit/Defines.hpp>
using namespace HCore;
/// @brief SOM class, translated to C++
namespace System {
class File final {
public:
explicit File(const char *path);
~File();
public:
HCORE_COPY_DEFAULT(File);
public:
voidPtr Read(SizeT off, SizeT sz);
void Write(voidPtr buf, SizeT off, SizeT sz);
void Seek(SizeT off);
voidPtr Read(SizeT sz);
void Write(voidPtr buf, SizeT sz);
void Rewind();
public:
const char *MIME();
void MIME(const char *mime);
};
typedef File *FilePtr;
} // namespace System
#endif // ifndef _SYSTEM_KIT_HCORE_FILE_HPP
|