Reshuffling directories to separate include and sources, part one.
[fail.git] / include / core / serializable.h
blob09337bd8bb25c74e2cf570298f69910fa2defa5e
1 #ifndef AWFUL_SERIALIZABLE_H_
2 #define AWFUL_SERIALIZABLE_H_
4 #include "refcounted.h"
6 namespace awful
8 struct Serialization_tag {};
10 class Serializable : public RefCounted
12 public:
13 Serializable() {}
15 // This is a special constructor called when instanciating an object frmo a stream.
16 // The parameter does nothing.
17 Serializable( const Serialization_tag& ) {}
19 // This is called when the serialization process is complete. At that point, all relevant Pointers
20 // to other objects have been set.
21 virtual void postLoad() {}
25 #endif