-
Notifications
You must be signed in to change notification settings - Fork 5
/
inanity-base-meta.ipp
54 lines (46 loc) · 1.5 KB
/
inanity-base-meta.ipp
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
43
44
45
46
47
48
49
50
51
52
53
54
#include "RefCounted.hpp"
META_CLASS(Inanity::RefCounted, Inanity.RefCounted);
META_CLASS_END();
#include "File.hpp"
META_CLASS(Inanity::File, Inanity.File);
META_METHOD(GetSize);
META_METHOD(Slice);
META_METHOD(SliceFrom);
META_CLASS_END();
#include "FileSystem.hpp"
META_CLASS(Inanity::FileSystem, Inanity.FileSystem);
META_METHOD(LoadFile);
META_METHOD(TryLoadFile);
META_METHOD(LoadStream);
META_METHOD(SaveFile);
META_METHOD(SaveStream);
META_CLASS_END();
#include "Exception.hpp"
META_CLASS(Inanity::Exception, Inanity.Exception);
META_CLASS_END();
#include "InputStream.hpp"
META_CLASS(Inanity::InputStream, Inanity.InputStream);
META_METHOD_FULL(Read, ptr<File> (InputStream::*)(size_t), Read);
META_CLASS_END();
#include "OutputStream.hpp"
META_CLASS(Inanity::OutputStream, Inanity.OutputStream);
META_METHOD_FULL(Write, void (OutputStream::*)(ptr<File>), Write);
META_METHOD(ReadAllFromStream);
META_CLASS_END();
#include "Strings.hpp"
META_CLASS(Inanity::Strings, Inanity.Strings);
META_STATIC_METHOD(String2File);
META_STATIC_METHOD(File2String);
META_CLASS_END();
#include "MemoryFile.hpp"
META_CLASS(Inanity::MemoryFile, Inanity.MemoryFile);
META_CLASS_PARENT(Inanity::File);
META_CONSTRUCTOR(size_t);
META_STATIC_METHOD_FULL(CreateViaCopy, ptr<MemoryFile> (*)(ptr<File>), CreateViaCopy);
META_CLASS_END();
#include "MemoryStream.hpp"
META_CLASS(Inanity::MemoryStream, Inanity.MemoryStream);
META_CLASS_PARENT(Inanity::OutputStream);
META_CONSTRUCTOR();
META_METHOD(ToFile);
META_CLASS_END();