KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SERIALIZABLE Class Reference

Interface for objects that can be serialized to Protobuf messages. More...

#include <serializable.h>

Inheritance diagram for SERIALIZABLE:
BOARD_STACKUP EDA_ITEM EDA_SHAPE EDA_TEXT NETCLASS PADSTACK BASE_SCREEN BOARD_BOUNDING_BOX BOARD_ITEM CONSTRAINT_BADGE_ITEM DS_DRAW_ITEM_BASE DS_PROXY_UNDO_ITEM DS_PROXY_VIEW_ITEM EDIT_POINTS GBR_LAYOUT GERBER_DRAW_ITEM GERBER_FILE_IMAGE KIGFX::ANCHOR_DEBUG KIGFX::CONSTRUCTION_GEOM KIGFX::ORIGIN_VIEWITEM KIGFX::PREVIEW::ARC_ASSISTANT KIGFX::PREVIEW::BEZIER_ASSISTANT KIGFX::PREVIEW::ELLIPSE_ASSISTANT KIGFX::PREVIEW::RULER_ITEM KIGFX::PREVIEW::SIMPLE_OVERLAY_ITEM KIGFX::PREVIEW::TWO_POINT_ASSISTANT MY_DRAWING RATSNEST_VIEW_ITEM RECT_RADIUS_TEXT_ITEM ROUTER_PREVIEW_ITEM ROUTER_STATUS_VIEW_ITEM SCHEMATIC SCH_ITEM TEST_EDA_ITEM TEST_EDA_ITEM TUNING_STATUS_VIEW_ITEM EDA_SHAPE_MOCK PCB_SHAPE SCH_SHAPE DS_DRAW_ITEM_TEXT PCB_TEXT PCB_TEXTBOX SCH_FIELD SCH_TEXT SCH_TEXTBOX

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.
 

Detailed Description

Interface for objects that can be serialized to Protobuf messages.

Definition at line 36 of file serializable.h.

Constructor & Destructor Documentation

◆ ~SERIALIZABLE()

virtual SERIALIZABLE::~SERIALIZABLE ( )
virtualdefault

References Deserialize(), and Serialize().

Member Function Documentation

◆ Deserialize()

bool SERIALIZABLE::Deserialize ( const google::protobuf::Any & aContainer)
virtual

◆ Serialize()


The documentation for this class was generated from the following files: