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...
void PackVector2(kiapi::common::types::Vector2 &aOutput, const VECTOR2I aInput)
std::optional< KICAD_T > TypeNameFromAny(const google::protobuf::Any &aMessage)
types::LibraryIdentifier LibIdToProto(const LIB_ID &aId)
VECTOR2I UnpackVector2(const types::Vector2 &aInput)
void PackPolyLine(kiapi::common::types::PolyLine &aOutput, const SHAPE_LINE_CHAIN &aSlc)
SHAPE_LINE_CHAIN UnpackPolyLine(const kiapi::common::types::PolyLine &aInput)
LIB_ID LibIdFromProto(const types::LibraryIdentifier &aId)