29 #ifndef Pt_SerializationSurrogate_h
30 #define Pt_SerializationSurrogate_h
33 #include <Pt/SerializationInfo.h>
38 class SerializationInfo;
41 class SerializationSurrogate
44 virtual ~SerializationSurrogate()
47 const std::string& typeName()
const
51 SerializationSurrogate(
const std::string& typeName)
55 SerializationSurrogate(
const char* typeName)
60 std::string _typeName;
65 class BasicSerializationSurrogate :
public SerializationSurrogate
71 BasicSerializationSurrogate(
const std::string& typeName, Compose c, Decompose d)
72 : SerializationSurrogate( typeName )
78 { _decompose(si, type); }
81 { _compose(si, type); }
90 #endif // Pt_SerializationSurrogate_h
Represents arbitrary types during serialization.
Definition: SerializationInfo.h:58