| 
    KiCad PCB EDA Suite
    
   | 
 
Interface for objects that can be serialized to Protobuf messages. More...
#include <serializable.h>
  
Public Member Functions | |
| virtual | ~SERIALIZABLE ()=default | 
| 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 36 of file serializable.h.
      
  | 
  virtualdefault | 
References Deserialize(), and Serialize().
      
  | 
  virtual | 
Deserializes the given protobuf message into this object.
| aContainer | is an Any which should have a concrete type matching this object | 
Reimplemented in BOARD_STACKUP, EDA_SHAPE, EDA_TEXT, FOOTPRINT, NETCLASS, PAD, PADSTACK, PCB_ARC, PCB_DIM_ALIGNED, PCB_DIM_CENTER, PCB_DIM_LEADER, PCB_DIM_ORTHOGONAL, PCB_DIM_RADIAL, PCB_DIMENSION_BASE, PCB_FIELD, PCB_GROUP, PCB_SHAPE, PCB_TEXT, PCB_TEXTBOX, PCB_TRACK, PCB_VIA, SCH_DIRECTIVE_LABEL, SCH_GLOBALLABEL, SCH_HIERLABEL, SCH_LABEL, SCH_LINE, and ZONE.
Definition at line 30 of file serializable.cpp.
Referenced by ~SERIALIZABLE().
      
  | 
  virtual | 
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 BOARD_STACKUP, EDA_SHAPE, EDA_TEXT, FOOTPRINT, NETCLASS, PAD, PADSTACK, PCB_ARC, PCB_DIM_ALIGNED, PCB_DIM_CENTER, PCB_DIM_LEADER, PCB_DIM_ORTHOGONAL, PCB_DIM_RADIAL, PCB_DIMENSION_BASE, PCB_FIELD, PCB_GROUP, PCB_SHAPE, PCB_TEXT, PCB_TEXTBOX, PCB_TRACK, PCB_VIA, SCH_DIRECTIVE_LABEL, SCH_GLOBALLABEL, SCH_HIERLABEL, SCH_LABEL, SCH_LINE, and ZONE.
Definition at line 24 of file serializable.cpp.
Referenced by API_HANDLER_PCB::handleCreateUpdateItemsInternal(), and ~SERIALIZABLE().