|
KiCad PCB EDA Suite
|
Plain data records produced by the OrCAD Capture DSN stream parsers and consumed by ORCAD_CONVERTER. More...
#include <cstdint>#include <functional>#include <map>#include <memory>#include <optional>#include <string>#include <utility>#include <vector>#include <wx/string.h>Go to the source code of this file.
Classes | |
| struct | ORCAD_POINT |
| Integer point in OrCAD DBU. More... | |
| struct | ORCAD_BBOX |
| Axis-aligned box in OrCAD DBU; corner order as stored (not normalized). More... | |
| struct | ORCAD_DISPLAY_PROP |
| One displayed property of an instance (Part Reference, Value, user fields). More... | |
| struct | ORCAD_ALIAS |
| Net alias attached to a wire (becomes a local label). More... | |
| struct | ORCAD_WIRE |
| One wire or bus segment. More... | |
| struct | ORCAD_PIN_INST |
| T0x10: one pin of a placed instance, carrying the pin's absolute page position (the connection point wires attach to). More... | |
| struct | ORCAD_PLACED_INSTANCE |
| A placed part instance on a page (structure type 13). More... | |
| struct | ORCAD_GRAPHIC_INST |
| Shared body of Port / Global / OffPageConnector / TitleBlock / ERCObject and the Graphic*Inst shapes (structure types 23, 37, 38, 55..62, 65, 77, 88, 89). More... | |
| struct | ORCAD_PRIMITIVE |
| One graphic primitive of a symbol body or nested page graphic. More... | |
| struct | ORCAD_SYMBOL_PIN |
| One pin of a symbol definition (structure types 26/27). More... | |
| struct | ORCAD_SYMBOL_DEF |
| A symbol definition from the design Cache (LibraryPart / GlobalSymbol / PortSymbol / OffPageSymbol / TitleBlockSymbol / ERCSymbol / ...), or the nested SthInPages0 body of a page graphic. More... | |
| struct | ORCAD_DEVICE |
| One device of a package: the pin-number map of a unit (structure type 32). More... | |
| struct | ORCAD_PACKAGE |
| A package: refdes prefix, footprint and per-unit devices (structure type 31). More... | |
| struct | ORCAD_BLOCK_PIN |
| One interface pin of a hierarchical block, at its absolute page position. More... | |
| struct | ORCAD_DRAWN_INSTANCE |
| Structure type 12: a hierarchical block instance placed on a page. More... | |
| struct | ORCAD_BUS_ENTRY |
| Bus entry (structure type 29). More... | |
| struct | ORCAD_FONT |
| One text font from the Library stream (a Win32 LOGFONTA record, 60 bytes: lfHeight i32 at +0, lfWeight i32 at +16, lfItalic u8 at +20, lfFaceName char[32] at +28). More... | |
| struct | ORCAD_PAGE_SETTINGS |
| The 156-byte PageSettings block embedded in the Library stream and in every Page stream: 8 bytes create/modify dates, 16 unknown, u32 width, u32 height, u32 pinToPin, 2 bytes, 4 bytes horizontal/vertical count, 2 bytes, 8 bytes horizontal/vertical width, 48 unknown, 24 bytes grid-reference settings, 8 x u32 flags of which flags[0] is isMetric. More... | |
| struct | ORCAD_NET_GROUP |
| struct | ORCAD_LIBRARY_INFO |
| Decoded Library stream: format version, fonts, and the string table that all property name/value indices reference throughout the file. More... | |
| struct | ORCAD_RAW_PAGE |
| One parsed 'Views/<folder>/Pages/<page>' stream, raw structure lists in stream order. More... | |
| struct | ORCAD_OCC_SCOPE |
| One node of the design occurrence tree parsed from the root Hierarchy stream. More... | |
| struct | ORCAD_OCC_BLOCK |
| A hierarchical block occurrence: one placement of a child schematic folder on a parent page. More... | |
| struct | ORCAD_DESIGN |
| Everything parsed from one .DSN, as handed to ORCAD_CONVERTER. More... | |
Typedefs | |
| using | ORCAD_WARN_FN = std::function<void( const wxString& aMsg )> |
| Warning sink shared by all parser entry points (recoverable-issue channel). | |
Plain data records produced by the OrCAD Capture DSN stream parsers and consumed by ORCAD_CONVERTER.
Header-only; no behavior beyond trivial defaults.
Coordinates throughout are in OrCAD schematic database units (DBU): 1 DBU = 10 mil = 0.254 mm on modern designs. Y grows downward, the same as the KiCad schematic canvas AND KiCad's in-memory LIB_SYMBOL space — no axis flip is required anywhere (the .kicad_sch writer itself flips symbol bodies into the file's Y-up space).
Strings hold the raw Windows-1252 stream bytes (std::string); convert with FromOrcadString() (orcad_stream.h) only where the text reaches the UI or a KiCad object.
Definition in file orcad_records.h.
| using ORCAD_WARN_FN = std::function<void( const wxString& aMsg )> |
Warning sink shared by all parser entry points (recoverable-issue channel).
Definition at line 54 of file orcad_records.h.
|
strong |
Pin electrical type codes (u32 portType field of a symbol pin).
Values outside 0..7 must be mapped to PASSIVE by the parser.
| Enumerator | |
|---|---|
| INPUT | |
| BIDIRECTIONAL | |
| OUTPUT | |
| OPEN_COLLECTOR | |
| PASSIVE | |
| TRI_STATE | |
| OPEN_EMITTER | |
| POWER_IN | |
Definition at line 153 of file orcad_records.h.
| enum ORCAD_PRIM : int |
Graphic primitive type ids, stored as a doubled u8 pair (t, t) before each primitive body inside symbol definitions.
Definition at line 117 of file orcad_records.h.
|
strong |
Decoded primitive kind after parsing.
| Enumerator | |
|---|---|
| GROUP | |
| RECT | |
| LINE | |
| ARC | |
| ELLIPSE | |
| POLYGON | |
| POLYLINE | |
| BEZIER | |
| TEXT | |
| IMAGE | |
Definition at line 134 of file orcad_records.h.
| enum ORCAD_ST : int |
Structure type ids as they appear in the u8 type byte of the long/short prefixes.
Definition at line 60 of file orcad_records.h.