1 #include "common.hpp" 2 3 namespace horizon { 4 const LutEnumStr<PatchType> patch_type_lut = { 5 {"other", PatchType::OTHER}, {"pad", PatchType::PAD}, 6 {"pad_th", PatchType::PAD_TH}, {"plane", PatchType::PLANE}, 7 {"track", PatchType::TRACK}, {"via", PatchType::VIA}, 8 {"hole_pth", PatchType::HOLE_PTH}, {"hole_npth", PatchType::HOLE_NPTH}, 9 {"board_edge", PatchType::BOARD_EDGE}, {"text", PatchType::TEXT}, 10 }; 11 12 const LutEnumStr<ObjectType> object_type_lut = { 13 {"unit", ObjectType::UNIT}, {"symbol", ObjectType::SYMBOL}, {"entity", ObjectType::ENTITY}, 14 {"padstack", ObjectType::PADSTACK}, {"package", ObjectType::PACKAGE}, {"part", ObjectType::PART}, 15 {"schematic", ObjectType::SCHEMATIC}, {"board", ObjectType::BOARD}, {"frame", ObjectType::FRAME}, 16 {"model_3d", ObjectType::MODEL_3D}, {"decal", ObjectType::DECAL}, {"project", ObjectType::PROJECT}}; 17 18 const LutEnumStr<Orientation> orientation_lut = { 19 {"up", Orientation::UP}, 20 {"down", Orientation::DOWN}, 21 {"left", Orientation::LEFT}, 22 {"right", Orientation::RIGHT}, 23 }; 24 } // namespace horizon 25