KiCad PCB EDA Suite
|
Interface for objects that can be serialized to Protobuf messages. More...
#include <serializable.h>
Public Member Functions | |
virtual void | Serialize (google::protobuf::Any &aContainer) const |
Serializes this object to the given Any message. | |
virtual bool | Deserialize (const google::protobuf::Any &aContainer) |
Deserializes the given protobuf message into this object. | |
Interface for objects that can be serialized to Protobuf messages.
Definition at line 35 of file serializable.h.
|
inlinevirtual |
Deserializes the given protobuf message into this object.
aContainer | is an Any which should have a concrete type matching this object |
Reimplemented in SCH_LABEL, SCH_DIRECTIVE_LABEL, SCH_GLOBALLABEL, SCH_HIERLABEL, SCH_LINE, BOARD_STACKUP, FOOTPRINT, PAD, PADSTACK, PCB_FIELD, PCB_SHAPE, PCB_TEXT, PCB_TRACK, PCB_ARC, and PCB_VIA.
Definition at line 53 of file serializable.h.
|
inlinevirtual |
Serializes this object to the given Any message.
The Any message's concrete type will be specific to the object in question.
aContainer | will be filled with a message describing this object |
Reimplemented in SCH_LABEL, SCH_DIRECTIVE_LABEL, SCH_GLOBALLABEL, SCH_HIERLABEL, SCH_LINE, BOARD_STACKUP, FOOTPRINT, PAD, PADSTACK, PCB_FIELD, PCB_SHAPE, PCB_TEXT, PCB_TRACK, PCB_ARC, and PCB_VIA.
Definition at line 43 of file serializable.h.
Referenced by API_HANDLER_SCH::handleCreateUpdateItemsInternal(), and API_HANDLER_PCB::handleCreateUpdateItemsInternal().