21#ifndef KICAD_SERIALIZABLE_H
22#define KICAD_SERIALIZABLE_H
43 virtual void Serialize( google::protobuf::Any &aContainer )
const
45 wxASSERT_MSG(
false, wxS(
"Serialize called on an object that doesn't implement it!" ) );
53 virtual bool Deserialize(
const google::protobuf::Any &aContainer )
55 wxASSERT_MSG(
false, wxS(
"Deserialize called on an object that doesn't implement it!" ) );
Interface for objects that can be serialized to Protobuf messages.
virtual bool Deserialize(const google::protobuf::Any &aContainer)
Deserializes the given protobuf message into this object.
virtual void Serialize(google::protobuf::Any &aContainer) const
Serializes this object to the given Any message.