21#ifndef KICAD_API_UTILS_H
22#define KICAD_API_UTILS_H
25#include <google/protobuf/any.pb.h>
29#include <api/common/types/base_types.pb.h>
39std::optional<KICAD_T>
TypeNameFromAny(
const google::protobuf::Any& aMessage );
A logical library item identifier and consists of various portions much like a URI.
Represent a polyline containing arcs as well as line segments: A chain of connected line and/or arc s...
std::optional< KICAD_T > TypeNameFromAny(const google::protobuf::Any &aMessage)
types::LibraryIdentifier LibIdToProto(const LIB_ID &aId)
VECTOR2I UnpackVector2(const types::Vector2 &aInput)
void PackVector2(types::Vector2 &aOutput, const VECTOR2I &aInput)
void PackPolyLine(kiapi::common::types::PolyLine &aOutput, const SHAPE_LINE_CHAIN &aSlc)
BOX2I UnpackBox2(const types::Box2 &aInput)
SHAPE_LINE_CHAIN UnpackPolyLine(const kiapi::common::types::PolyLine &aInput)
LIB_ID LibIdFromProto(const types::LibraryIdentifier &aId)
void PackBox2(types::Box2 &aOutput, const BOX2I &aInput)