28#include <api/common/types/base_types.pb.h>
61 void Serialize( google::protobuf::Any &aContainer )
const override;
62 void Serialize( kiapi::common::types::DesignBlock& aDesignBlock )
const;
64 bool Deserialize(
const google::protobuf::Any &aContainer )
override;
65 bool Deserialize(
const kiapi::common::types::DesignBlock& aDesignBlock );
79 nlohmann::ordered_map<wxString, wxString>
m_fields;
void SetLibDescription(const wxString &aDesc)
wxString m_schematicFile
File name and path for schematic file.
void SetKeywords(const wxString &aKeywords)
wxString GetLibNickname() const override
wxString GetDesc() override
void SetSchematicFile(const wxString &aFile)
void SetBoardFile(const wxString &aFile)
DESIGN_BLOCK(DESIGN_BLOCK &&aOther)=delete
This is the only way to get m_fields to compile as a class member.
LIB_ID GetLIB_ID() const override
const wxString & GetKeywords() const
wxString m_keywords
Search keywords to find design block in library.
const wxString & GetLibDescription() const
wxString m_libDescription
File name and path for documentation file.
std::vector< SEARCH_TERM > m_searchTerms
void SetLibId(const LIB_ID &aName)
const wxString & GetBoardFile() const
const wxString & GetSchematicFile() const
nlohmann::ordered_map< wxString, wxString > m_fields
wxString m_boardFile
File name and path for board file.
const LIB_ID & GetLibId() const
wxString GetName() const override
const nlohmann::ordered_map< wxString, wxString > & GetFields() const
nlohmann::ordered_map< wxString, wxString > & GetFields()
A logical library item identifier and consists of various portions much like a URI.
A mix-in to provide polymorphism between items stored in libraries (symbols, aliases and footprints).
virtual std::vector< SEARCH_TERM > & GetSearchTerms()=0
Interface for objects that can be serialized to Protobuf messages.
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.