SST/macro
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
sprockit
sprockit
serializable_type.h
Go to the documentation of this file.
1
#ifndef SERIALIZABLE_TYPE_H
2
#define SERIALIZABLE_TYPE_H
3
4
#include <
sprockit/serializer_fwd.h
>
5
#include <typeinfo>
6
#include <stdint.h>
7
8
namespace
sprockit
{
9
10
class
serializable
11
{
12
public
:
13
virtual
const
char
*
14
cls_name
()
const
= 0;
15
16
virtual
void
17
serialize_order
(
sprockit::serializer
& ser) = 0;
18
19
virtual
uint32_t
20
cls_id
()
const
= 0;
21
22
virtual
~serializable
() { }
23
24
protected
:
25
typedef
enum
{
ConstructorFlag
}
cxn_flag_t
;
26
};
27
28
template
<
class
T>
29
class
serializable_type
30
{
31
virtual
T*
32
you_forgot_to_add_ImplementSerializable_to_this_class() = 0;
33
};
34
35
}
36
37
#endif // SERIALIZABLE_TYPE_H
sprockit::serializable::ConstructorFlag
Definition:
serializable_type.h:25
sprockit::serializable::cls_name
virtual const char * cls_name() const =0
sprockit
Definition:
basic_string_tokenizer.h:21
sprockit::serializable::serialize_order
virtual void serialize_order(sprockit::serializer &ser)=0
serializer_fwd.h
sprockit::serializable::cxn_flag_t
cxn_flag_t
Definition:
serializable_type.h:25
sprockit::serializable
Definition:
serializable_type.h:10
sprockit::serializer
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition:
serializer.h:33
sprockit::serializable_type
Definition:
serializable_type.h:29
sprockit::serializable::cls_id
virtual uint32_t cls_id() const =0
sprockit::serializable::~serializable
virtual ~serializable()
Definition:
serializable_type.h:22
Generated by
1.8.11