SST/macro
serializable_type.h
Go to the documentation of this file.
1 #ifndef SERIALIZABLE_TYPE_H
2 #define SERIALIZABLE_TYPE_H
3 
5 #include <typeinfo>
6 #include <stdint.h>
7 
8 namespace sprockit {
9 
11 {
12  public:
13  virtual const char*
14  cls_name() const = 0;
15 
16  virtual void
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>
30 {
31  virtual T*
32  you_forgot_to_add_ImplementSerializable_to_this_class() = 0;
33 };
34 
35 }
36 
37 #endif // SERIALIZABLE_TYPE_H
virtual const char * cls_name() const =0
virtual void serialize_order(sprockit::serializer &ser)=0
This class is basically a wrapper for objects to declare the order in which their members should be s...
Definition: serializer.h:33
virtual uint32_t cls_id() const =0