acme
Foundational cross-platform layer of the ca2 framework
Toggle main menu visibility
Loading...
Searching...
No Matches
serialize.h
1
#pragma once
2
3
//#include "file_stream.h"
4
5
namespace
file
6
{
7
8
class
exception
;
9
class
file
;
10
11
}
// namespace
12
13
enum
e_set_version
14
{
15
16
set_version,
17
18
};
19
20
21
//class CLASS_DECL_ACME stream :
22
// virtual public stream
23
//{
24
//public:
25
//
26
//
27
// bool m_b64bit;
28
//
29
//
30
// stream(stream & stream);
31
// stream(e_set_version = set_version, ::collection::index iVersion = FIRST_VERSION);
32
// stream(::file::file * pfile, ::collection::index iVersion = FIRST_VERSION);
33
// stream(e_create_new, ::particle * pparticle, ::collection::index iVersion = FIRST_VERSION);
34
// virtual ~stream();
35
//
36
//
37
// //stream & operator = (const stream & stream);
38
//
39
// virtual bool is_stream_null();
40
// virtual bool is_stream_set();
41
//
42
// virtual void close();
43
//
44
// virtual filesize get_position() const;
45
//
50
//
51
// using stream::read;
52
// virtual stream & read (bool & b) override;
53
// virtual stream & read (::i8 & ch) override;
54
// virtual stream & read (::u8 & uch) override;
55
//#ifdef WINDOWS
56
// virtual stream & read (unichar & wch) override;
57
//#endif
58
// virtual stream & read(::i8 & I) override;
59
// virtual stream & read (::i16 & sh) override;
60
// virtual stream & read (::u16 & u) override;
61
// virtual stream & read (::i32 & i) override;
62
// virtual stream & read (::u32 & u) override;
63
// virtual stream & read (::i64 & i) override;
64
// virtual stream & read (::u64 & u) override;
65
// virtual stream & read (::f32 & f) override;
66
// virtual stream & read (::f64 & d) override;
67
// virtual stream & read(::i32_point * ppoint) ;
68
// virtual stream & read(::i32_size * psize) ;
69
// virtual stream & read (::i32_rectangle * prectangle) ;
70
//
71
// virtual stream & read (string & str) override;
72
//
73
// virtual string get_location() const;
74
//
75
// void full_load(string & str);
76
//
77
// using stream::write;
78
// virtual stream & write(::i8 ch) override;
79
// virtual stream & write(uchar uch) override;
80
// virtual stream & write(::i8 i) override;
81
// virtual stream & write (::i16 sh) override;
82
// virtual stream & write (::u16 u) override;
83
//#ifdef WINDOWS
84
// virtual stream & write (unichar wch) override;
85
//#endif
86
// virtual stream & write (bool b) override;
87
// virtual stream & write (::i32 i) override;
88
// virtual stream & write (::u32 u) override;
89
// virtual stream & write (::i64 i) override;
90
// virtual stream & write (::u64 u) override;
91
// virtual stream & write (::f32 f) override;
92
// virtual stream & write (::f64 d) override;
93
// virtual stream & write(const ::i32_point * ppoint);
94
// virtual stream & write(const ::i32_size & psize) ;
95
// virtual stream & write (const ::i32_rectangle * prectangle) ;
96
// virtual stream & write (const ::scoped_string & scopedstr) override;
97
// virtual stream & write (const ::scoped_string & scopedstr) override;
98
//
99
// virtual void write_from_hex(const ::scoped_string & scopedstr, character_count iLen = -1);
100
// virtual void write_from_hex(const ::scoped_string & scopedstr);
101
//
102
//};
103
104
105
106
107
108
109
110
111
//class CLASS_DECL_ACME reader :
112
// virtual public stream
113
//{
114
//public:
115
//
116
//
117
// reader(reader && reader);
118
// reader(::particle * pparticle, ::collection::index iVersion = FIRST_VERSION);
119
// reader(::file::file * pfile, ::collection::index iVersion = FIRST_VERSION);
120
// virtual ~reader();
121
//
122
//
123
// virtual bool is_storing();
124
//
125
//
126
//};
127
//
128
//
129
//class CLASS_DECL_ACME writer :
130
// virtual public stream
131
//{
132
//public:
133
//
134
//
135
// writer(writer && writer);
136
// writer(::particle * pparticle, ::collection::index iVersion = FIRST_VERSION);
137
// writer(::file::file * pfile, ::collection::index iVersion = FIRST_VERSION);
138
// virtual ~writer();
139
//
140
//
141
// virtual bool is_storing();
142
//
143
//
144
//};
145
146
147
//class CLASS_DECL_ACME memory_reader :
148
// virtual public reader
149
//{
150
//public:
151
//
152
//
153
// memory_reader(memory_reader && reader);
154
// memory_reader(::particle * pparticle, ::collection::index iVersion = FIRST_VERSION);
155
// virtual ~memory_reader();
156
//
157
//
158
// memory & get_memory();
159
//
160
//
161
//};
162
163
164
//class CLASS_DECL_ACME memory_writer :
165
// virtual public writer
166
//{
167
//public:
168
//
169
//
170
// memory_writer(memory_writer && writer);
171
// memory_writer(::particle * pparticle, ::collection::index iVersion = FIRST_VERSION);
172
// virtual ~memory_writer();
173
//
174
//
175
// memory & get_memory();
176
//
177
//
178
//};
179
file::exception
Definition
exception.h:13
file::file
Definition
file.h:33
file
Definition
filesystem.h:16
filesystem
file
serialize.h
Generated by
1.17.0