KiCad PCB EDA Suite
Loading...
Searching...
No Matches
api_sch_utils.h File Reference
#include <memory>
#include <tl/expected.hpp>
#include <core/typeinfo.h>
#include <api/common/envelope.pb.h>
#include <api/schematic/schematic_types.pb.h>

Go to the source code of this file.

Functions

std::unique_ptr< EDA_ITEMCreateItemForType (KICAD_T aType, EDA_ITEM *aContainer)
 
bool PackSymbol (kiapi::schematic::types::SchematicSymbolInstance *aOutput, const SCH_SYMBOL *aInput, const SCH_SHEET_PATH &aPath)
 
bool UnpackSymbol (SCH_SYMBOL *aOutput, const kiapi::schematic::types::SchematicSymbolInstance &aInput)
 
bool PackSheet (kiapi::schematic::types::SheetSymbol *aOutput, const SCH_SHEET *aInput, const SCH_SHEET_PATH &aPath)
 
tl::expected< bool, kiapi::common::ApiResponseStatus > UnpackSheet (SCH_SHEET *aOutput, const kiapi::schematic::types::SheetSymbol &aInput)
 

Function Documentation

◆ CreateItemForType()

◆ PackSheet()

◆ PackSymbol()

◆ UnpackSheet()

tl::expected< bool, kiapi::common::ApiResponseStatus > UnpackSheet ( SCH_SHEET * aOutput,
const kiapi::schematic::types::SheetSymbol & aInput )

◆ UnpackSymbol()