cgv
binary_io_reflection_handlers.h
1
#pragma once
2
3
#include <stdio.h>
4
#include "io_reflection_handler.h"
5
6
#include "lib_begin.h"
7
8
namespace
cgv
{
9
namespace
data {
10
11
13
class
CGV_API
binary_reflection_handler
:
public
io_reflection_handler
14
{
15
protected
:
16
FILE* fp;
17
public
:
19
binary_reflection_handler
(
const
std::string& _content,
unsigned
_ver);
21
bool
reflect_header();
23
void
close();
24
};
25
27
class
CGV_API
binary_read_reflection_handler
:
public
binary_reflection_handler
28
{
29
protected
:
30
bool
read_reflect_header(
const
std::string& _content,
unsigned
_ver);
31
public
:
32
binary_read_reflection_handler
(
const
std::string& file_name,
const
std::string& _content,
unsigned
_ver);
34
binary_read_reflection_handler
(FILE* _fp,
const
std::string& _content,
unsigned
_ver);
36
bool
is_creative()
const
;
38
bool
reflect_member_void(
const
std::string& member_name,
39
void
* member_ptr,
cgv::reflect::abst_reflection_traits
* rt);
40
};
41
42
44
class
CGV_API
binary_write_reflection_handler
:
public
binary_reflection_handler
45
{
46
public
:
48
binary_write_reflection_handler
(
const
std::string& file_name,
const
std::string& _content,
unsigned
_ver);
50
binary_write_reflection_handler
(FILE* _fp,
const
std::string& _content,
unsigned
_ver);
52
bool
reflect_member_void(
const
std::string& member_name,
53
void
* member_ptr,
cgv::reflect::abst_reflection_traits
* rt);
54
};
55
56
57
}
58
}
59
60
#include <cgv/config/lib_end.h>
cgv::reflect::abst_reflection_traits
abstract interface for type reflection with basic type management and optional string conversion
Definition:
reflection_traits.h:24
cgv::data::io_reflection_handler
Definition:
io_reflection_handler.h:19
cgv::data::binary_write_reflection_handler
Definition:
binary_io_reflection_handlers.h:45
cgv::data::binary_read_reflection_handler
Definition:
binary_io_reflection_handlers.h:28
cgv
the cgv namespace
Definition:
vr_calib.cxx:9
cgv::data::binary_reflection_handler
Definition:
binary_io_reflection_handlers.h:14
projects
git
cgv
cgv
data
binary_io_reflection_handlers.h
Generated by
1.8.18