12 #ifndef __SERIALIZABLE_FILE_H__
13 #define __SERIALIZABLE_FILE_H__
33 #ifndef DOXYGEN_SHOULD_SKIP_THIS
34 virtual bool read_scalar_wrapped(
37 virtual bool read_cont_begin_wrapped(
40 virtual bool read_cont_end_wrapped(
44 virtual bool read_string_begin_wrapped(
46 virtual bool read_string_end_wrapped(
49 virtual bool read_stringentry_begin_wrapped(
51 virtual bool read_stringentry_end_wrapped(
54 virtual bool read_sparse_begin_wrapped(
57 virtual bool read_sparse_end_wrapped(
61 virtual bool read_sparseentry_begin_wrapped(
64 virtual bool read_sparseentry_end_wrapped(
68 virtual bool read_item_begin_wrapped(
70 virtual bool read_item_end_wrapped(
73 virtual bool read_sgserializable_begin_wrapped(
75 EPrimitiveType*
generic) = 0;
76 virtual bool read_sgserializable_end_wrapped(
77 const TSGDataType* type,
const char* sgserializable_name,
78 EPrimitiveType
generic) = 0;
80 virtual bool read_type_begin_wrapped(
82 const char* prefix) = 0;
83 virtual bool read_type_end_wrapped(
85 const char* prefix) = 0;
97 bool is_task_warn(
char rw,
const char* name,
const char* prefix);
98 bool false_warn(
const char* prefix,
const char* name);
113 virtual void init(FILE* fstream,
char task,
const char* filename);
118 #ifndef DOXYGEN_SHOULD_SKIP_THIS
120 char* dest_version,
size_t n) = 0;
122 virtual bool write_scalar_wrapped(
125 virtual bool write_cont_begin_wrapped(
128 virtual bool write_cont_end_wrapped(
132 virtual bool write_string_begin_wrapped(
134 virtual bool write_string_end_wrapped(
137 virtual bool write_stringentry_begin_wrapped(
139 virtual bool write_stringentry_end_wrapped(
142 virtual bool write_sparse_begin_wrapped(
145 virtual bool write_sparse_end_wrapped(
149 virtual bool write_sparseentry_begin_wrapped(
152 virtual bool write_sparseentry_end_wrapped(
156 virtual bool write_item_begin_wrapped(
158 virtual bool write_item_end_wrapped(
161 virtual bool write_sgserializable_begin_wrapped(
162 const TSGDataType* type,
const char* sgserializable_name,
163 EPrimitiveType
generic) = 0;
164 virtual bool write_sgserializable_end_wrapped(
165 const TSGDataType* type,
const char* sgserializable_name,
166 EPrimitiveType
generic) = 0;
168 virtual bool write_type_begin_wrapped(
170 const char* prefix) = 0;
171 virtual bool write_type_end_wrapped(
173 const char* prefix) = 0;
201 virtual void close();
209 #ifndef DOXYGEN_SHOULD_SKIP_THIS
210 virtual bool write_scalar(
211 const TSGDataType* type,
const char* name,
const char* prefix,
213 virtual bool read_scalar(
214 const TSGDataType* type,
const char* name,
const char* prefix,
217 virtual bool write_cont_begin(
218 const TSGDataType* type,
const char* name,
const char* prefix,
220 virtual bool read_cont_begin(
221 const TSGDataType* type,
const char* name,
const char* prefix,
224 virtual bool write_cont_end(
225 const TSGDataType* type,
const char* name,
const char* prefix,
227 virtual bool read_cont_end(
228 const TSGDataType* type,
const char* name,
const char* prefix,
231 virtual bool write_string_begin(
232 const TSGDataType* type,
const char* name,
const char* prefix,
234 virtual bool read_string_begin(
235 const TSGDataType* type,
const char* name,
const char* prefix,
238 virtual bool write_string_end(
239 const TSGDataType* type,
const char* name,
const char* prefix,
241 virtual bool read_string_end(
242 const TSGDataType* type,
const char* name,
const char* prefix,
245 virtual bool write_stringentry_begin(
246 const TSGDataType* type,
const char* name,
const char* prefix,
248 virtual bool read_stringentry_begin(
249 const TSGDataType* type,
const char* name,
const char* prefix,
252 virtual bool write_stringentry_end(
253 const TSGDataType* type,
const char* name,
const char* prefix,
255 virtual bool read_stringentry_end(
256 const TSGDataType* type,
const char* name,
const char* prefix,
259 virtual bool write_sparse_begin(
260 const TSGDataType* type,
const char* name,
const char* prefix,
262 virtual bool read_sparse_begin(
263 const TSGDataType* type,
const char* name,
const char* prefix,
266 virtual bool write_sparse_end(
267 const TSGDataType* type,
const char* name,
const char* prefix,
269 virtual bool read_sparse_end(
270 const TSGDataType* type,
const char* name,
const char* prefix,
273 virtual bool write_sparseentry_begin(
274 const TSGDataType* type,
const char* name,
const char* prefix,
277 virtual bool read_sparseentry_begin(
278 const TSGDataType* type,
const char* name,
const char* prefix,
282 virtual bool write_sparseentry_end(
283 const TSGDataType* type,
const char* name,
const char* prefix,
286 virtual bool read_sparseentry_end(
287 const TSGDataType* type,
const char* name,
const char* prefix,
291 virtual bool write_item_begin(
292 const TSGDataType* type,
const char* name,
const char* prefix,
294 virtual bool read_item_begin(
295 const TSGDataType* type,
const char* name,
const char* prefix,
298 virtual bool write_item_end(
299 const TSGDataType* type,
const char* name,
const char* prefix,
301 virtual bool read_item_end(
302 const TSGDataType* type,
const char* name,
const char* prefix,
305 virtual bool write_sgserializable_begin(
306 const TSGDataType* type,
const char* name,
const char* prefix,
307 const char* sgserializable_name, EPrimitiveType
generic);
308 virtual bool read_sgserializable_begin(
309 const TSGDataType* type,
const char* name,
const char* prefix,
310 char* sgserializable_name, EPrimitiveType*
generic);
312 virtual bool write_sgserializable_end(
313 const TSGDataType* type,
const char* name,
const char* prefix,
314 const char* sgserializable_name, EPrimitiveType
generic);
315 virtual bool read_sgserializable_end(
316 const TSGDataType* type,
const char* name,
const char* prefix,
317 const char* sgserializable_name, EPrimitiveType
generic);
319 virtual bool write_type_begin(
320 const TSGDataType* type,
const char* name,
const char* prefix);
321 virtual bool read_type_begin(
322 const TSGDataType* type,
const char* name,
const char* prefix);
324 virtual bool write_type_end(
325 const TSGDataType* type,
const char* name,
const char* prefix);
326 virtual bool read_type_end(
327 const TSGDataType* type,
const char* name,
const char* prefix);
333 #endif // __SERIALIZABLE_FILE_H__