21#ifndef KICAD_API_PCB_UTLIS_H
22#define KICAD_API_PCB_UTLIS_H
32#include <api/common/types/base_types.pb.h>
33#include <api/common/types/embedded_files.pb.h>
34#include <api/common/commands/cross_probe_commands.pb.h>
35#include <api/board/board_types.pb.h>
49void PackLayerSet( google::protobuf::RepeatedField<int>& aOutput,
const LSET& aLayerSet );
51LSET
UnpackLayerSet(
const google::protobuf::RepeatedField<int>& aInput );
55void PackTeardropSettings( types::PadTeardropSettings& aOutput,
const TEARDROP_PARAMETERS& aParams );
60 const std::map<PCB_LAYER_ID, ZONE_LAYER_OVERRIDE>& aInput );
63 const google::protobuf::RepeatedPtrField<types::ZoneLayerOverrideEntry>& aInput );
78 const google::protobuf::RepeatedPtrField<kiapi::common::commands::SelectionSpec>& aItems );
std::unique_ptr< BOARD_ITEM > CreateItemForType(KICAD_T aType, BOARD_ITEM_CONTAINER *aContainer)
Abstract interface for BOARD_ITEMs capable of storing other items inside.
A base class for any item which can be embedded within the BOARD container class, and therefore insta...
Information pertinent to a Pcbnew printed circuit board.
TEARDROP_PARAMETARS is a helper class to handle parameters needed to build teardrops for a board thes...
void PackLayerSet(google::protobuf::RepeatedField< int > &aOutput, const LSET &aLayerSet)
void PackBoardStackup(const BOARD &aBoard, BoardStackup &aOut)
void PackEmbeddedFiles(common::types::EmbeddedFiles &aOutput, const EMBEDDED_FILES &aFiles)
void PackZoneLayerOverrides(google::protobuf::RepeatedPtrField< types::ZoneLayerOverrideEntry > *aOutput, const std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > &aInput)
void UnpackTeardropSettings(TEARDROP_PARAMETERS &aOutput, const types::PadTeardropSettings &aProto)
bool UnpackEmbeddedFiles(EMBEDDED_FILES &aOutput, const common::types::EmbeddedFiles &aProto)
LSET UnpackLayerSet(const google::protobuf::RepeatedField< int > &aProtoLayerSet)
std::vector< BOARD_ITEM * > FindItemsFromSyncSelection(const BOARD *aBoard, const google::protobuf::RepeatedPtrField< kiapi::common::commands::SelectionSpec > &aItems)
Resolve a cross-probe selection request against a board.
void UnpackZoneLayerOverrides(std::map< PCB_LAYER_ID, ZONE_LAYER_OVERRIDE > &aOutput, const google::protobuf::RepeatedPtrField< types::ZoneLayerOverrideEntry > &aInput)
void PackTeardropSettings(types::PadTeardropSettings &aOutput, const TEARDROP_PARAMETERS &aParams)
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.