21#ifndef KICAD_API_SCH_UTILS_H
22#define KICAD_API_SCH_UTILS_H
25#include <tl/expected.hpp>
27#include <api/common/envelope.pb.h>
28#include <api/schematic/schematic_types.pb.h>
37bool PackSymbol( kiapi::schematic::types::SchematicSymbolInstance* aOutput,
const SCH_SYMBOL* aInput,
45tl::expected<bool, kiapi::common::ApiResponseStatus>
UnpackSheet(
SCH_SHEET* aOutput,
const kiapi::schematic::types::SheetSymbol& aInput );
std::unique_ptr< EDA_ITEM > CreateItemForType(KICAD_T aType, EDA_ITEM *aContainer)
bool PackSheet(kiapi::schematic::types::SheetSymbol *aOutput, const SCH_SHEET *aInput, const SCH_SHEET_PATH &aPath)
bool PackSymbol(kiapi::schematic::types::SchematicSymbolInstance *aOutput, const SCH_SYMBOL *aInput, const SCH_SHEET_PATH &aPath)
tl::expected< bool, kiapi::common::ApiResponseStatus > UnpackSheet(SCH_SHEET *aOutput, const kiapi::schematic::types::SheetSymbol &aInput)
bool UnpackSymbol(SCH_SYMBOL *aOutput, const kiapi::schematic::types::SchematicSymbolInstance &aInput)
A base class for most all the KiCad significant classes used in schematics and boards.
Handle access to a stack of flattened SCH_SHEET objects by way of a path for creating a flattened sch...
Sheet symbol placed in a schematic, and is the entry point for a sub schematic.
KICAD_T
The set of class identification values stored in EDA_ITEM::m_structType.