|
KiCad PCB EDA Suite
|
#include <sch_io/orcad/orcad_page.h>#include <algorithm>#include <optional>#include <utility>#include <ki_exception.h>#include <sch_io/orcad/orcad_cache.h>#include <sch_io/orcad/orcad_library.h>#include <sch_io/orcad/orcad_stream.h>#include <sch_io/orcad/orcad_structures.h>Go to the source code of this file.
Classes | |
| struct | V2_PART_CELL |
Functions | |
| ORCAD_RAW_PAGE | OrcadParsePage (const std::vector< char > &aData, const std::vector< std::string > &aStrings, const ORCAD_WARN_FN &aWarn) |
| Parse one 'Views/<folder>/Pages/<page>' stream into raw structure lists. | |
| std::vector< std::string > | OrcadParsePageOrder (const std::vector< char > &aData) |
| Parse the 'Views/<folder>/Schematic' stream and return the folder's page names in display order. | |
| std::map< uint32_t, std::string > | OrcadReadHierarchyLinks (const std::vector< char > &aData, const std::vector< std::string > &aStrings, const ORCAD_WARN_FN &aWarn, std::map< uint32_t, std::string > *aOccurrenceRefs) |
| Parse a 'Views/<folder>/Hierarchy/Hierarchy' stream into block-instance links: block db id -> child folder name. | |
| static uint8_t | readOccHeader (ORCAD_STREAM &aStream, int aExpectType) |
| static ORCAD_OCC_SCOPE | readOccScope (ORCAD_STREAM &aStream) |
| static void | readOccurrence (ORCAD_STREAM &aStream, ORCAD_OCC_SCOPE &aScope) |
| static std::string | v2Resolve (const std::vector< std::string > &aStrings, uint16_t aIdx) |
| static void | v2CheckCount (ORCAD_STREAM &aStream, uint32_t aCount) |
| static uint8_t | v2Prefix (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings, std::map< std::string, std::string > *aProps=nullptr) |
| static ORCAD_DISPLAY_PROP | v2DisplayProp (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static std::vector< ORCAD_DISPLAY_PROP > | v2DisplayPropList (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_ALIAS | v2Alias (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static void | v2Structure (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_WIRE | v2Wire (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_PIN_INST | v2PinInst (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_PLACED_INSTANCE | v2PlacedInstance (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_PRIMITIVE | v2PrimBody (ORCAD_STREAM &aStream, uint8_t aType, int aDepth=0) |
| static ORCAD_PRIMITIVE | v2Primitive (ORCAD_STREAM &aStream) |
| static ORCAD_SYMBOL_DEF | v2SymbolDef (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_GRAPHIC_INST | v2GraphicInst (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_PORT_TYPE | v2PortType (uint32_t aRaw) |
| static bool | v2SymbolPin (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings, ORCAD_SYMBOL_PIN &aOut) |
| static ORCAD_SYMBOL_DEF | v2LibSymbolDef (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings, int aTypeId) |
| static V2_PART_CELL | v2PartCell (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_DEVICE | v2Device (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static ORCAD_PACKAGE | v2Package (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| ORCAD_RAW_PAGE | OrcadParsePageV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings, const ORCAD_WARN_FN &) |
| Parse one v2.0 (pre-2003) 'Views/<folder>/Pages/<page>' stream. | |
| void | OrcadParseOlbSymbolStreamV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings, std::map< std::string, ORCAD_SYMBOL_DEF > &aSymbols) |
| Parse one v2.0 .OLB 'Symbols/<name>' stream (a single special symbol: power, port, off-page, title block or ERC) into aSymbols, keyed by symbol name. | |
| void | OrcadParseOlbPackageStreamV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings, std::map< std::string, ORCAD_SYMBOL_DEF > &aSymbols, std::map< std::string, ORCAD_PACKAGE > &aPackages) |
| Parse one v2.0 .OLB 'Packages/<name>' stream (a part's inline symbol definitions plus its package/device pin maps) into aSymbols (keyed by view name, e.g. | |
| ORCAD_OCC_SCOPE | OrcadReadOccurrenceTree (const std::vector< char > &aData, const ORCAD_WARN_FN &aWarn) |
| Parse the root folder 'Hierarchy/Hierarchy' stream into the full occurrence tree: per-scope part reference designators (keyed by placed-instance db id) and the hierarchical block occurrences that descend into child schematics, each with its own nested scope so a schematic reused N times yields N per-occurrence ref sets. | |
Variables | |
| static thread_local bool | g_v2ShortDisplayProp = false |
| void OrcadParseOlbPackageStreamV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| std::map< std::string, ORCAD_SYMBOL_DEF > & | aSymbols, | ||
| std::map< std::string, ORCAD_PACKAGE > & | aPackages ) |
Parse one v2.0 .OLB 'Packages/<name>' stream (a part's inline symbol definitions plus its package/device pin maps) into aSymbols (keyed by view name, e.g.
"7400.Normal") and aPackages (keyed by package name). Throws on a framing error.
Definition at line 1156 of file orcad_page.cpp.
References g_v2ShortDisplayProp, ORCAD_PACKAGE::name, ORCAD_SYMBOL_DEF::name, ORCAD_STREAM::ReadU16(), ORCAD_PACKAGE::refDes, ORCAD_STREAM::Remaining(), THROW_IO_ERROR, v2CheckCount(), v2Package(), and v2PartCell().
Referenced by SCH_IO_ORCAD::loadOlbSymbols().
| void OrcadParseOlbSymbolStreamV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| std::map< std::string, ORCAD_SYMBOL_DEF > & | aSymbols ) |
Parse one v2.0 .OLB 'Symbols/<name>' stream (a single special symbol: power, port, off-page, title block or ERC) into aSymbols, keyed by symbol name.
Throws IO_ERROR on a framing error.
Definition at line 1119 of file orcad_page.cpp.
References g_v2ShortDisplayProp, ORCAD_SYMBOL_DEF::name, ORCAD_STREAM::Remaining(), THROW_IO_ERROR, v2LibSymbolDef(), and v2Prefix().
Referenced by SCH_IO_ORCAD::loadOlbSymbols().
| ORCAD_RAW_PAGE OrcadParsePage | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn ) |
Parse one 'Views/<folder>/Pages/<page>' stream into raw structure lists.
Stream layout: one framed structure of type 10 (Page) whose body starts with lzt page name, lzt page-size name, then the 156-byte PageSettings block (OrcadParsePageSettings — supplies width/height/isMetric), followed by these u16-counted lists in order:
ERC objects framed (type 77)
The net table is authoritative for net names and junction computation: wires carry ids that key it. Structures that fail to parse are skipped with a warning via aWarn (never aborting the page); only a structurally unreadable Page structure itself throws IO_ERROR.
Definition at line 68 of file orcad_page.cpp.
References ORCAD_RAW_PAGE::blocks, ORCAD_RAW_PAGE::busEntries, ORCAD_RAW_PAGE::ercObjects, ORCAD_RAW_PAGE::globals, ORCAD_RAW_PAGE::graphics, ORCAD_PAGE_SETTINGS::height, ORCAD_RAW_PAGE::height, ORCAD_RAW_PAGE::instances, ORCAD_PAGE_SETTINGS::isMetric, ORCAD_RAW_PAGE::isMetric, ORCAD_RAW_PAGE::name, ORCAD_RAW_PAGE::netmap, ORCAD_RAW_PAGE::offpage, ORCAD_ST_PAGE, OrcadParsePageSettings(), OrcadReadT0x34Raw(), OrcadReadT0x35Raw(), ORCAD_RAW_PAGE::pageSize, ORCAD_RAW_PAGE::ports, ORCAD_STREAM::ReadLzt(), ORCAD_STRUCT_READER::ReadPrefixes(), ORCAD_STRUCT_READER::ReadStructure(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), result, ORCAD_STREAM::Skip(), THROW_IO_ERROR, ORCAD_RAW_PAGE::titleBlocks, ORCAD_PREFIXES::typeId, ORCAD_PAGE_SETTINGS::width, ORCAD_RAW_PAGE::width, and ORCAD_RAW_PAGE::wires.
Referenced by SCH_IO_ORCAD::LoadSchematicFile().
| std::vector< std::string > OrcadParsePageOrder | ( | const std::vector< char > & | aData | ) |
Parse the 'Views/<folder>/Schematic' stream and return the folder's page names in display order.
Layout: one prefix chain, lzt folder name, 4 bytes, u16 page count, then the lzt page names stored LAST-FIRST (the returned vector is already reversed into display order).
The caller (plugin shell) must intersect the result with the page streams that actually exist under 'Views/<folder>/Pages/', append any pages missing from the order stream, and fall back to name-sorted order with a warning when this parser throws IO_ERROR.
Definition at line 159 of file orcad_page.cpp.
References ORCAD_STREAM::ReadLzt(), ORCAD_STRUCT_READER::ReadPrefixes(), ORCAD_STREAM::ReadU16(), and ORCAD_STREAM::Skip().
Referenced by SCH_IO_ORCAD::LoadSchematicFile().
| ORCAD_RAW_PAGE OrcadParsePageV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn ) |
Parse one v2.0 (pre-2003) 'Views/<folder>/Pages/<page>' stream.
v2.0 uses short-prefix-only framing (no long prefixes, no FF E4 5C 39 preambles) with u16 string-table indices and a collapsed primitive envelope, but the same record vocabulary as the modern format. Throws IO_ERROR on any framing error (the format has no per-record skip offsets, so recovery is per-page).
Definition at line 990 of file orcad_page.cpp.
References ORCAD_RAW_PAGE::busEntries, ORCAD_BUS_ENTRY::color, ORCAD_RAW_PAGE::ercObjects, ORCAD_RAW_PAGE::globals, ORCAD_RAW_PAGE::graphics, group, ORCAD_PAGE_SETTINGS::height, ORCAD_RAW_PAGE::height, ORCAD_RAW_PAGE::instances, ORCAD_PAGE_SETTINGS::isMetric, ORCAD_RAW_PAGE::isMetric, ORCAD_RAW_PAGE::name, ORCAD_RAW_PAGE::netGroups, ORCAD_RAW_PAGE::netmap, ORCAD_RAW_PAGE::offpage, ORCAD_ST_PAGE, OrcadParsePageSettings(), ORCAD_RAW_PAGE::pageSize, ORCAD_RAW_PAGE::ports, ORCAD_STREAM::ReadI32(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::Skip(), THROW_IO_ERROR, ORCAD_RAW_PAGE::titleBlocks, v2CheckCount(), v2GraphicInst(), v2PlacedInstance(), v2Prefix(), v2Wire(), ORCAD_PAGE_SETTINGS::width, ORCAD_RAW_PAGE::width, ORCAD_RAW_PAGE::wires, ORCAD_BUS_ENTRY::x1, ORCAD_BUS_ENTRY::x2, ORCAD_BUS_ENTRY::y1, and ORCAD_BUS_ENTRY::y2.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| std::map< uint32_t, std::string > OrcadReadHierarchyLinks | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn, | ||
| std::map< uint32_t, std::string > * | aOccurrenceRefs = nullptr ) |
Parse a 'Views/<folder>/Hierarchy/Hierarchy' stream into block-instance links: block db id -> child folder name.
Used to name skipped child folders in hierarchy warnings (hierarchical designs are converted flat).
The stream header is version-fragile, so the reader scans for preambles and backtracks prefix chains (OrcadFindStructureStart), keeping only type-66 structures. Type-66 body: u32, u32 instance db id, u8 inner-frame marker that must equal 0x42, u32, u32, lzt child folder name, lzt occurrence reference. Bad candidates are skipped silently; the scan never throws.
When aOccurrenceRefs is non-null it receives instance db id -> reference designator from the second lzt, which occurrence-annotated designs use to store the real refdes that the placed instance itself leaves as "C?".
Definition at line 184 of file orcad_page.cpp.
References ORCAD_STREAM::Data(), ORCAD_PREFIXES::end, ORCAD_STREAM::ExpectByte(), ORCAD_STREAM::FindPreamble(), ORCAD_STREAM::GetOffset(), ORCAD_STREAM::npos, ORCAD_ST_HIERARCHY_LINK, OrcadFindStructureStart(), ORCAD_STREAM::ReadLzt(), ORCAD_STRUCT_READER::ReadPrefixes(), ORCAD_STREAM::ReadU32(), and ORCAD_STREAM::Seek().
Referenced by SCH_IO_ORCAD::LoadSchematicFile().
| ORCAD_OCC_SCOPE OrcadReadOccurrenceTree | ( | const std::vector< char > & | aData, |
| const ORCAD_WARN_FN & | aWarn ) |
Parse the root folder 'Hierarchy/Hierarchy' stream into the full occurrence tree: per-scope part reference designators (keyed by placed-instance db id) and the hierarchical block occurrences that descend into child schematics, each with its own nested scope so a schematic reused N times yields N per-occurrence ref sets.
Returns an empty scope for legacy pre-preamble streams (which are instance- annotated) and on any parse error (the caller then falls back to the scan-based OrcadReadHierarchyLinks for the flat root-scope refs).
Definition at line 1212 of file orcad_page.cpp.
References ORCAD_STREAM::ReadLzt(), readOccScope(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_STREAM::Skip(), and IO_ERROR::What().
Referenced by SCH_IO_ORCAD::LoadSchematicFile().
|
static |
Definition at line 255 of file orcad_page.cpp.
References ORCAD_STREAM::ExpectPreamble(), ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_STREAM::Skip(), and THROW_IO_ERROR.
Referenced by readOccScope(), and readOccurrence().
|
static |
Definition at line 333 of file orcad_page.cpp.
References ORCAD_STREAM::AtPreamble(), ORCAD_STREAM::ReadLzt(), readOccHeader(), readOccurrence(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), and ORCAD_STREAM::Skip().
Referenced by OrcadReadOccurrenceTree(), and readOccurrence().
|
static |
Definition at line 288 of file orcad_page.cpp.
References ORCAD_OCC_SCOPE::blocks, ORCAD_OCC_BLOCK::childFolder, ORCAD_STREAM::ExpectByte(), ORCAD_OCC_SCOPE::partRefs, ORCAD_STREAM::ReadLzt(), readOccHeader(), readOccScope(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_OCC_BLOCK::scope, and ORCAD_OCC_BLOCK::targetDbId.
Referenced by readOccScope().
|
static |
Definition at line 474 of file orcad_page.cpp.
References ORCAD_ALIAS::color, ORCAD_ALIAS::fontIdx, ORCAD_ALIAS::name, ORCAD_STREAM::ReadI32(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU32(), ORCAD_ALIAS::rotation, v2Prefix(), ORCAD_ALIAS::x, and ORCAD_ALIAS::y.
Referenced by v2Structure(), and v2Wire().
|
static |
Definition at line 397 of file orcad_page.cpp.
References ORCAD_STREAM::Remaining(), and THROW_IO_ERROR.
Referenced by OrcadParseOlbPackageStreamV2(), OrcadParsePageV2(), v2Device(), v2LibSymbolDef(), v2Package(), v2PartCell(), v2PrimBody(), and v2SymbolPin().
|
static |
Definition at line 938 of file orcad_page.cpp.
References ORCAD_STREAM::PeekMatches(), ORCAD_DEVICE::pinIgnore, ORCAD_DEVICE::pinNumbers, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU8(), ORCAD_DEVICE::refDes, ORCAD_STREAM::Skip(), ORCAD_DEVICE::unitRef, v2CheckCount(), and v2Prefix().
Referenced by v2Package().
|
static |
Definition at line 431 of file orcad_page.cpp.
References ORCAD_DISPLAY_PROP::color, ORCAD_DISPLAY_PROP::dispMode, ORCAD_STREAM::ExpectByte(), ORCAD_DISPLAY_PROP::fontIdx, g_v2ShortDisplayProp, ORCAD_DISPLAY_PROP::name, ORCAD_DISPLAY_PROP::nameIdx, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU8(), ORCAD_DISPLAY_PROP::rotation, v2Prefix(), v2Resolve(), ORCAD_DISPLAY_PROP::x, and ORCAD_DISPLAY_PROP::y.
Referenced by v2DisplayPropList(), v2LibSymbolDef(), v2Structure(), and v2SymbolPin().
|
static |
Definition at line 461 of file orcad_page.cpp.
References ORCAD_STREAM::ReadU16(), and v2DisplayProp().
Referenced by v2GraphicInst(), v2PinInst(), and v2PlacedInstance().
|
static |
Definition at line 748 of file orcad_page.cpp.
References ORCAD_GRAPHIC_INST::bbox, ORCAD_GRAPHIC_INST::color, ORCAD_GRAPHIC_INST::dbId, ORCAD_GRAPHIC_INST::displayProps, flag, ORCAD_GRAPHIC_INST::logicalName, ORCAD_GRAPHIC_INST::mirror, ORCAD_GRAPHIC_INST::name, ORCAD_GRAPHIC_INST::nested, ORCAD_GRAPHIC_INST::props, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_GRAPHIC_INST::rotation, ORCAD_STREAM::Skip(), ORCAD_GRAPHIC_INST::typeId, v2DisplayPropList(), v2Prefix(), v2Resolve(), v2SymbolDef(), ORCAD_GRAPHIC_INST::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_GRAPHIC_INST::y, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by OrcadParsePageV2().
|
static |
Definition at line 850 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::bbox, ORCAD_SYMBOL_DEF::color, ORCAD_SYMBOL_DEF::name, pin, ORCAD_SYMBOL_DEF::pins, ORCAD_SYMBOL_DEF::primitives, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_SYMBOL_DEF::sourceLib, ORCAD_SYMBOL_DEF::typeId, v2CheckCount(), v2DisplayProp(), v2Primitive(), v2SymbolPin(), ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by OrcadParseOlbSymbolStreamV2(), and v2PartCell().
|
static |
Definition at line 969 of file orcad_page.cpp.
References ORCAD_PACKAGE::devices, ORCAD_PACKAGE::name, ORCAD_PACKAGE::pcbFootprint, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_PACKAGE::refDes, ORCAD_PACKAGE::sourceLib, v2CheckCount(), v2Device(), and v2Prefix().
Referenced by OrcadParseOlbPackageStreamV2().
|
static |
Definition at line 903 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::generalFlags, V2_PART_CELL::name, ORCAD_ST_LIBRARY_PART, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), V2_PART_CELL::refDesPrefix, V2_PART_CELL::symbols, v2CheckCount(), v2LibSymbolDef(), v2Prefix(), and V2_PART_CELL::viewNames.
Referenced by OrcadParseOlbPackageStreamV2().
|
static |
Definition at line 522 of file orcad_page.cpp.
References pin, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), v2DisplayPropList(), and v2Prefix().
Referenced by v2PlacedInstance(), and v2Structure().
|
static |
Definition at line 538 of file orcad_page.cpp.
References ORCAD_PLACED_INSTANCE::bbox, ORCAD_PLACED_INSTANCE::color, ORCAD_PLACED_INSTANCE::dbId, ORCAD_PLACED_INSTANCE::displayProps, ORCAD_PLACED_INSTANCE::mirror, ORCAD_PLACED_INSTANCE::pins, ORCAD_PLACED_INSTANCE::pkgName, ORCAD_PLACED_INSTANCE::props, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_PLACED_INSTANCE::reference, ORCAD_PLACED_INSTANCE::rotation, ORCAD_STREAM::Skip(), ORCAD_PLACED_INSTANCE::sourcePackage, v2DisplayPropList(), v2PinInst(), v2Prefix(), v2Resolve(), ORCAD_PLACED_INSTANCE::value, ORCAD_PLACED_INSTANCE::x, ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_PLACED_INSTANCE::y, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by OrcadParsePageV2(), and v2Structure().
|
static |
|
static |
Definition at line 409 of file orcad_page.cpp.
References ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU8(), THROW_IO_ERROR, and v2Resolve().
Referenced by OrcadParseOlbSymbolStreamV2(), OrcadParsePageV2(), v2Alias(), v2Device(), v2DisplayProp(), v2GraphicInst(), v2Package(), v2PartCell(), v2PinInst(), v2PlacedInstance(), v2SymbolDef(), v2SymbolPin(), and v2Wire().
|
static |
Definition at line 620 of file orcad_page.cpp.
References ARC, BEZIER, ORCAD_PRIMITIVE::children, ELLIPSE, ORCAD_PRIMITIVE::end, ORCAD_STREAM::ExpectByte(), ORCAD_PRIMITIVE::fillStyle, ORCAD_PRIMITIVE::fontIdx, GROUP, ORCAD_PRIMITIVE::hatchStyle, ORCAD_PRIMITIVE::kind, LINE, ORCAD_PRIMITIVE::lineStyle, ORCAD_PRIMITIVE::lineWidth, ORCAD_PRIM_ARC, ORCAD_PRIM_BEZIER, ORCAD_PRIM_COMMENT_TEXT, ORCAD_PRIM_ELLIPSE, ORCAD_PRIM_LINE, ORCAD_PRIM_POLYGON, ORCAD_PRIM_POLYLINE, ORCAD_PRIM_RECT, ORCAD_PRIM_SYMBOL_VECTOR, ORCAD_PRIMITIVE::points, POLYGON, POLYLINE, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadI32(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), RECT, ORCAD_STREAM::Skip(), ORCAD_PRIMITIVE::start, TEXT, ORCAD_PRIMITIVE::text, THROW_IO_ERROR, v2CheckCount(), v2PrimBody(), ORCAD_PRIMITIVE::x1, ORCAD_PRIMITIVE::x2, ORCAD_PRIMITIVE::y1, and ORCAD_PRIMITIVE::y2.
Referenced by v2PrimBody(), and v2Primitive().
|
static |
Definition at line 587 of file orcad_page.cpp.
References ORCAD_STREAM::ReadU8(), and v2PrimBody().
Referenced by v2LibSymbolDef(), and v2SymbolDef().
|
static |
Definition at line 384 of file orcad_page.cpp.
Referenced by v2DisplayProp(), v2GraphicInst(), v2PlacedInstance(), and v2Prefix().
|
static |
Definition at line 789 of file orcad_page.cpp.
References ORCAD_ST_ALIAS, ORCAD_ST_PLACED_INSTANCE, ORCAD_ST_STH_IN_PAGES0, ORCAD_ST_SYMBOL_DISPLAY_PROP, ORCAD_ST_T0X10, ORCAD_ST_T0X11, ORCAD_ST_WIRE_BUS, ORCAD_ST_WIRE_SCALAR, ORCAD_STREAM::PeekU8(), THROW_IO_ERROR, v2Alias(), v2DisplayProp(), v2PinInst(), v2PlacedInstance(), v2SymbolDef(), and v2Wire().
Referenced by v2Wire().
|
static |
Definition at line 593 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::bbox, ORCAD_SYMBOL_DEF::color, ORCAD_SYMBOL_DEF::name, ORCAD_ST_STH_IN_PAGES0, ORCAD_SYMBOL_DEF::primitives, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_SYMBOL_DEF::sourceLib, ORCAD_SYMBOL_DEF::typeId, v2Prefix(), v2Primitive(), ORCAD_BBOX::x1, ORCAD_BBOX::x2, ORCAD_BBOX::y1, and ORCAD_BBOX::y2.
Referenced by v2GraphicInst(), and v2Structure().
|
static |
Definition at line 817 of file orcad_page.cpp.
References ORCAD_STREAM::ExpectByte(), ORCAD_SYMBOL_PIN::hotptX, ORCAD_SYMBOL_PIN::hotptY, ORCAD_SYMBOL_PIN::name, ORCAD_STREAM::PeekU8(), ORCAD_SYMBOL_PIN::portType, ORCAD_STREAM::ReadI32(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_SYMBOL_PIN::shapeBits, ORCAD_STREAM::Skip(), ORCAD_SYMBOL_PIN::startX, ORCAD_SYMBOL_PIN::startY, v2CheckCount(), v2DisplayProp(), v2PortType(), and v2Prefix().
Referenced by v2LibSymbolDef().
|
static |
Definition at line 493 of file orcad_page.cpp.
References ORCAD_WIRE::aliases, ORCAD_WIRE::color, ORCAD_WIRE::id, ORCAD_WIRE::isBus, ORCAD_ST_WIRE_BUS, ORCAD_STREAM::ReadI32(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::Skip(), v2Alias(), v2Prefix(), v2Structure(), ORCAD_WIRE::x1, ORCAD_WIRE::x2, ORCAD_WIRE::y1, and ORCAD_WIRE::y2.
Referenced by OrcadParsePageV2(), and v2Structure().
|
static |
Definition at line 392 of file orcad_page.cpp.
Referenced by OrcadParseOlbPackageStreamV2(), OrcadParseOlbSymbolStreamV2(), and v2DisplayProp().