|
KiCad PCB EDA Suite
|
#include <sch_io/orcad/orcad_page.h>#include <algorithm>#include <utility>#include <set>#include <ki_exception.h>#include <wx/translation.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 | |
| class | V2_DISPLAY_PROP_SCOPE |
| 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) |
| A body failure skips that structure. | |
| static std::vector< std::string > | pageOrderBody (ORCAD_STREAM &aStream) |
| std::vector< std::string > | OrcadParsePageOrder (const std::vector< char > &aData) |
| Returns display order. | |
| std::vector< std::string > | OrcadParseSchematicFolderOrder (const std::vector< char > &aData) |
| Unlisted Views storages can be stale. | |
| static uint8_t | readOccHeader (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings, int aExpectType, std::map< std::string, std::string > *aProps=nullptr) |
| static ORCAD_OCC_SCOPE | readOccScope (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| static void | readOccurrence (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings, 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) |
| 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 void | v2LibraryPartTail (ORCAD_STREAM &aStream, ORCAD_SYMBOL_DEF &aDef) |
| 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) |
| static ORCAD_DRAWN_INSTANCE | v2DrawnInstance (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 &, bool aShortDisplayProp) |
| Legacy records have no stop offsets. | |
| void | OrcadParseOlbSymbolStreamV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings, std::map< std::string, ORCAD_SYMBOL_DEF > &aSymbols, bool aShortDisplayProp) |
| aShortDisplayProp selects the version 1 display-property layout. | |
| std::vector< std::string > | OrcadParsePageOrderV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings) |
| Returns display order; throws IO_ERROR for invalid legacy framing. | |
| static void | v2CachePartCell (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| void | OrcadParseCacheV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings, const ORCAD_WARN_FN &aWarn, std::map< std::string, ORCAD_SYMBOL_DEF > &aSymbols, std::map< std::string, ORCAD_PACKAGE > &aPackages) |
| Keep decoded entries if a framing error ends the legacy cache. | |
| 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, bool aShortDisplayProp) |
| aShortDisplayProp selects the version 1 display-property layout. | |
| static void | v2ReadOccurrence (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings, ORCAD_OCC_SCOPE &aScope) |
| static ORCAD_OCC_SCOPE | v2ReadOccScope (ORCAD_STREAM &aStream, const std::vector< std::string > &aStrings) |
| ORCAD_OCC_SCOPE | OrcadReadOccurrenceTreeV2 (const std::vector< char > &aData, const std::vector< std::string > &aStrings) |
| Parse a short-prefix-only v2.0 Hierarchy stream without scan recovery. | |
| ORCAD_OCC_SCOPE | OrcadReadOccurrenceTree (const std::vector< char > &aData, const std::vector< std::string > &aStrings, const ORCAD_WARN_FN &aWarn) |
| Returns occurrence references and child scopes. | |
Variables | |
| static thread_local bool | g_v2ShortDisplayProp = false |
| void OrcadParseCacheV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn, | ||
| std::map< std::string, ORCAD_SYMBOL_DEF > & | aSymbols, | ||
| std::map< std::string, ORCAD_PACKAGE > & | aPackages ) |
Keep decoded entries if a framing error ends the legacy cache.
Definition at line 1295 of file orcad_page.cpp.
References _, ORCAD_STREAM::AtEnd(), ORCAD_STREAM::ExpectByte(), ORCAD_SYMBOL_DEF::generalFlags, ORCAD_STREAM::GetOffset(), group, ORCAD_PACKAGE::name, ORCAD_SYMBOL_DEF::name, ORCAD_ST_LIBRARY_PART, ORCAD_ST_PACKAGE, ORCAD_ST_PART_CELL, ORCAD_SYMBOL_DEF::props, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_STREAM::Remaining(), THROW_IO_ERROR, THROW_IO_ERRORF, v2CachePartCell(), v2CheckCount(), v2LibraryPartTail(), v2LibSymbolDef(), v2Package(), v2Prefix(), and IO_ERROR::What().
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| 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, | ||
| bool | aShortDisplayProp ) |
aShortDisplayProp selects the version 1 display-property layout.
Definition at line 1395 of file orcad_page.cpp.
References 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 BOOST_AUTO_TEST_CASE(), SCH_IO_ORCAD::loadOlbSymbols(), and SCH_IO_ORCAD::LoadSchematicFile().
| void OrcadParseOlbSymbolStreamV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| std::map< std::string, ORCAD_SYMBOL_DEF > & | aSymbols, | ||
| bool | aShortDisplayProp ) |
aShortDisplayProp selects the version 1 display-property layout.
Definition at line 1239 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::name, ORCAD_ST_LIBRARY_PART, ORCAD_SYMBOL_DEF::props, ORCAD_STREAM::Remaining(), THROW_IO_ERROR, v2LibraryPartTail(), v2LibSymbolDef(), and v2Prefix().
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::loadOlbSymbols().
| ORCAD_RAW_PAGE OrcadParsePage | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn ) |
A body failure skips that structure.
Invalid page framing throws IO_ERROR.
Definition at line 69 of file orcad_page.cpp.
References ORCAD_RAW_PAGE::blocks, ORCAD_PAGE_SETTINGS::borderPrinted, ORCAD_RAW_PAGE::borderPrinted, ORCAD_RAW_PAGE::busEntries, ORCAD_PAGE_SETTINGS::createTimestamp, ORCAD_RAW_PAGE::createTimestamp, ORCAD_PREFIXES::end, ORCAD_RAW_PAGE::ercObjects, ORCAD_STREAM::GetOffset(), ORCAD_RAW_PAGE::globals, ORCAD_RAW_PAGE::graphics, ORCAD_PAGE_SETTINGS::gridRefPrinted, ORCAD_RAW_PAGE::gridRefPrinted, ORCAD_PAGE_SETTINGS::height, ORCAD_RAW_PAGE::height, ORCAD_PAGE_SETTINGS::horizontalAscending, ORCAD_RAW_PAGE::horizontalAscending, ORCAD_PAGE_SETTINGS::horizontalChar, ORCAD_RAW_PAGE::horizontalChar, ORCAD_PAGE_SETTINGS::horizontalCount, ORCAD_RAW_PAGE::horizontalCount, ORCAD_PAGE_SETTINGS::horizontalWidth, ORCAD_RAW_PAGE::horizontalWidth, ORCAD_RAW_PAGE::instances, ORCAD_PAGE_SETTINGS::isMetric, ORCAD_RAW_PAGE::isMetric, ORCAD_PAGE_SETTINGS::modifyTimestamp, ORCAD_RAW_PAGE::modifyTimestamp, ORCAD_RAW_PAGE::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netGroups, ORCAD_RAW_PAGE::netmap, ORCAD_RAW_PAGE::offpage, ORCAD_ST_PAGE, OrcadParsePageSettings(), OrcadReadT0x34Raw(), OrcadReadT0x35Raw(), ORCAD_RAW_PAGE::pageSize, ORCAD_RAW_PAGE::ports, ORCAD_RAW_PAGE::props, ORCAD_STRUCT_READER::PropsDict(), 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_PAGE_SETTINGS::verticalAscending, ORCAD_RAW_PAGE::verticalAscending, ORCAD_PAGE_SETTINGS::verticalChar, ORCAD_RAW_PAGE::verticalChar, ORCAD_PAGE_SETTINGS::verticalCount, ORCAD_RAW_PAGE::verticalCount, ORCAD_PAGE_SETTINGS::verticalWidth, ORCAD_RAW_PAGE::verticalWidth, 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 | ) |
Returns display order.
The caller must reconcile these names with available page streams.
Definition at line 187 of file orcad_page.cpp.
References ORCAD_ST_SCH_LIB, pageOrderBody(), and ORCAD_STRUCT_READER::ReadPrefixes().
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| std::vector< std::string > OrcadParsePageOrderV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings ) |
Returns display order; throws IO_ERROR for invalid legacy framing.
Definition at line 1268 of file orcad_page.cpp.
References pageOrderBody(), and v2Prefix().
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| ORCAD_RAW_PAGE OrcadParsePageV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn, | ||
| bool | aShortDisplayProp = false ) |
Legacy records have no stop offsets.
A framing error throws IO_ERROR and discards the page.
Definition at line 1098 of file orcad_page.cpp.
References ORCAD_RAW_PAGE::blocks, ORCAD_PAGE_SETTINGS::borderPrinted, ORCAD_RAW_PAGE::borderPrinted, ORCAD_RAW_PAGE::busEntries, ORCAD_PAGE_SETTINGS::createTimestamp, ORCAD_RAW_PAGE::createTimestamp, ORCAD_RAW_PAGE::ercObjects, ORCAD_RAW_PAGE::globals, ORCAD_RAW_PAGE::graphics, ORCAD_PAGE_SETTINGS::gridRefPrinted, ORCAD_RAW_PAGE::gridRefPrinted, group, ORCAD_PAGE_SETTINGS::height, ORCAD_RAW_PAGE::height, ORCAD_PAGE_SETTINGS::horizontalAscending, ORCAD_RAW_PAGE::horizontalAscending, ORCAD_PAGE_SETTINGS::horizontalChar, ORCAD_RAW_PAGE::horizontalChar, ORCAD_PAGE_SETTINGS::horizontalCount, ORCAD_RAW_PAGE::horizontalCount, ORCAD_PAGE_SETTINGS::horizontalWidth, ORCAD_RAW_PAGE::horizontalWidth, ORCAD_RAW_PAGE::instances, ORCAD_PAGE_SETTINGS::isMetric, ORCAD_RAW_PAGE::isMetric, ORCAD_PAGE_SETTINGS::modifyTimestamp, ORCAD_RAW_PAGE::modifyTimestamp, ORCAD_RAW_PAGE::name, ORCAD_RAW_PAGE::netAliases, ORCAD_RAW_PAGE::netGroups, ORCAD_RAW_PAGE::netmap, ORCAD_RAW_PAGE::offpage, ORCAD_ST_DRAWN_INSTANCE, ORCAD_ST_PAGE, OrcadParsePageSettings(), OrcadReadBusEntryBody(), ORCAD_RAW_PAGE::pageSize, ORCAD_STREAM::PeekU8(), ORCAD_RAW_PAGE::ports, ORCAD_RAW_PAGE::props, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::Skip(), THROW_IO_ERRORF, ORCAD_RAW_PAGE::titleBlocks, v2CheckCount(), v2DrawnInstance(), v2GraphicInst(), v2PlacedInstance(), v2Prefix(), v2Wire(), ORCAD_PAGE_SETTINGS::verticalAscending, ORCAD_RAW_PAGE::verticalAscending, ORCAD_PAGE_SETTINGS::verticalChar, ORCAD_RAW_PAGE::verticalChar, ORCAD_PAGE_SETTINGS::verticalCount, ORCAD_RAW_PAGE::verticalCount, ORCAD_PAGE_SETTINGS::verticalWidth, ORCAD_RAW_PAGE::verticalWidth, ORCAD_PAGE_SETTINGS::width, ORCAD_RAW_PAGE::width, and ORCAD_RAW_PAGE::wires.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| std::vector< std::string > OrcadParseSchematicFolderOrder | ( | const std::vector< char > & | aData | ) |
Unlisted Views storages can be stale.
Import them only if a hierarchy occurrence refers to them.
Definition at line 198 of file orcad_page.cpp.
References ORCAD_STREAM::AtEnd(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::Skip(), and THROW_IO_ERROR.
Referenced by BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| ORCAD_OCC_SCOPE OrcadReadOccurrenceTree | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings, | ||
| const ORCAD_WARN_FN & | aWarn ) |
Returns occurrence references and child scopes.
Parse errors return an empty scope.
Definition at line 1571 of file orcad_page.cpp.
References ORCAD_STREAM::ReadLzt(), readOccHeader(), readOccScope(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_STREAM::Skip(), and IO_ERROR::What().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
| ORCAD_OCC_SCOPE OrcadReadOccurrenceTreeV2 | ( | const std::vector< char > & | aData, |
| const std::vector< std::string > & | aStrings ) |
Parse a short-prefix-only v2.0 Hierarchy stream without scan recovery.
Definition at line 1544 of file orcad_page.cpp.
References ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::Remaining(), ORCAD_STREAM::Skip(), THROW_IO_ERROR, THROW_IO_ERRORF, v2CheckCount(), v2Prefix(), and v2ReadOccScope().
Referenced by BOOST_AUTO_TEST_CASE(), BOOST_AUTO_TEST_CASE(), and SCH_IO_ORCAD::LoadSchematicFile().
|
static |
Definition at line 168 of file orcad_page.cpp.
References ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), and ORCAD_STREAM::Skip().
Referenced by OrcadParsePageOrder(), and OrcadParsePageOrderV2().
|
static |
Definition at line 225 of file orcad_page.cpp.
References ORCAD_STREAM::npos, ORCAD_STRUCT_READER::PropsDict(), ORCAD_STRUCT_READER::ReadPrefixes(), and ORCAD_PREFIXES::typeId.
Referenced by OrcadReadOccurrenceTree(), readOccScope(), and readOccurrence().
|
static |
Definition at line 296 of file orcad_page.cpp.
References ORCAD_STREAM::AtPreamble(), name, ORCAD_OCC_SCOPE::netNames, ORCAD_STREAM::ReadLzt(), readOccHeader(), readOccurrence(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), and ORCAD_STREAM::Skip().
Referenced by OrcadReadOccurrenceTree(), and readOccurrence().
|
static |
Definition at line 241 of file orcad_page.cpp.
References ORCAD_OCC_SCOPE::blocks, ORCAD_OCC_BLOCK::childFolder, ORCAD_STREAM::ExpectByte(), ORCAD_OCC_SCOPE::partProps, ORCAD_OCC_SCOPE::partRefs, ORCAD_OCC_SCOPE::partUnitRefs, 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 452 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 1280 of file orcad_page.cpp.
References ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), v2CheckCount(), and v2Prefix().
Referenced by OrcadParseCacheV2().
|
static |
Definition at line 375 of file orcad_page.cpp.
References ORCAD_STREAM::Remaining(), and THROW_IO_ERRORF.
Referenced by OrcadParseCacheV2(), OrcadParseOlbPackageStreamV2(), OrcadParsePageV2(), OrcadReadOccurrenceTreeV2(), v2CachePartCell(), v2Device(), v2DrawnInstance(), v2LibSymbolDef(), v2Package(), v2PartCell(), v2PrimBody(), v2ReadOccScope(), v2ReadOccurrence(), and v2SymbolPin().
|
static |
Definition at line 963 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 408 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 439 of file orcad_page.cpp.
References ORCAD_STREAM::ReadU16(), and v2DisplayProp().
Referenced by v2DrawnInstance(), v2GraphicInst(), v2PinInst(), and v2PlacedInstance().
|
static |
Definition at line 1014 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::bbox, ORCAD_DRAWN_INSTANCE::dbId, ORCAD_DRAWN_INSTANCE::displayProps, ORCAD_STREAM::ExpectByte(), ORCAD_DRAWN_INSTANCE::h, ORCAD_DRAWN_INSTANCE::name, ORCAD_ST_LIBRARY_PART, pin, ORCAD_DRAWN_INSTANCE::pins, ORCAD_SYMBOL_DEF::pins, ORCAD_DRAWN_INSTANCE::props, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), ORCAD_DRAWN_INSTANCE::reference, ORCAD_STREAM::Skip(), THROW_IO_ERRORF, v2CheckCount(), v2DisplayPropList(), v2LibSymbolDef(), v2PinInst(), v2Prefix(), v2Resolve(), ORCAD_DRAWN_INSTANCE::w, ORCAD_BBOX::x1, ORCAD_DRAWN_INSTANCE::x1, ORCAD_BBOX::x2, ORCAD_BBOX::y1, ORCAD_DRAWN_INSTANCE::y1, and ORCAD_BBOX::y2.
Referenced by OrcadParsePageV2().
|
static |
Definition at line 749 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 893 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::generalFlags, ORCAD_SYMBOL_DEF::props, ORCAD_STREAM::ReadLzt(), and ORCAD_STREAM::ReadU16().
Referenced by OrcadParseCacheV2(), and OrcadParseOlbSymbolStreamV2().
|
static |
Definition at line 851 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 OrcadParseCacheV2(), OrcadParseOlbSymbolStreamV2(), v2DrawnInstance(), and v2PartCell().
|
static |
Definition at line 994 of file orcad_page.cpp.
References ORCAD_PACKAGE::devices, ORCAD_PACKAGE::name, ORCAD_PACKAGE::pcbFootprint, ORCAD_PACKAGE::props, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_PACKAGE::refDes, ORCAD_PACKAGE::sourceLib, v2CheckCount(), v2Device(), and v2Prefix().
Referenced by OrcadParseCacheV2(), and OrcadParseOlbPackageStreamV2().
|
static |
Definition at line 918 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::generalFlags, name, V2_PART_CELL::name, ORCAD_ST_LIBRARY_PART, ORCAD_SYMBOL_DEF::props, V2_PART_CELL::props, 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 502 of file orcad_page.cpp.
References pin, ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadU32(), v2DisplayPropList(), and v2Prefix().
Referenced by v2DrawnInstance(), v2PlacedInstance(), and v2Structure().
|
static |
Definition at line 518 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::partByte, ORCAD_PLACED_INSTANCE::partIndex, 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::sourceLibrary, ORCAD_PLACED_INSTANCE::sourcePackage, ORCAD_PLACED_INSTANCE::unitIndex, 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 386 of file orcad_page.cpp.
References ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU8(), THROW_IO_ERRORF, and v2Resolve().
Referenced by OrcadParseCacheV2(), OrcadParseOlbSymbolStreamV2(), OrcadParsePageOrderV2(), OrcadParsePageV2(), OrcadReadOccurrenceTreeV2(), v2Alias(), v2CachePartCell(), v2Device(), v2DisplayProp(), v2DrawnInstance(), v2GraphicInst(), v2Package(), v2PartCell(), v2PinInst(), v2PlacedInstance(), v2ReadOccScope(), v2ReadOccurrence(), v2SymbolDef(), v2SymbolPin(), and v2Wire().
|
static |
Definition at line 604 of file orcad_page.cpp.
References ARC, BEZIER, ORCAD_PRIMITIVE::children, ORCAD_PRIMITIVE::data, ELLIPSE, ORCAD_PRIMITIVE::end, ORCAD_STREAM::ExpectByte(), ORCAD_PRIMITIVE::fillStyle, ORCAD_PRIMITIVE::fontIdx, ORCAD_STREAM::GetOffset(), GROUP_PRIM, ORCAD_PRIMITIVE::hatchStyle, IMAGE, ORCAD_PRIMITIVE::kind, LINE, ORCAD_PRIMITIVE::lineStyle, ORCAD_PRIMITIVE::lineWidth, ORCAD_PRIM_ARC, ORCAD_PRIM_BEZIER, ORCAD_PRIM_BITMAP, 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::ReadBytes(), ORCAD_STREAM::ReadI16(), ORCAD_STREAM::ReadI32(), ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_STREAM::ReadU8(), RECTANGLE, ORCAD_STREAM::Remaining(), ORCAD_STREAM::Skip(), ORCAD_PRIMITIVE::start, TEXT, ORCAD_PRIMITIVE::text, ORCAD_PRIMITIVE::textBoundsStart, THROW_IO_ERRORF, v2CheckCount(), v2PrimBody(), ORCAD_PRIMITIVE::x1, ORCAD_PRIMITIVE::x2, ORCAD_PRIMITIVE::y1, and ORCAD_PRIMITIVE::y2.
Referenced by v2PrimBody(), and v2Primitive().
|
static |
Definition at line 569 of file orcad_page.cpp.
References ORCAD_STREAM::ReadU8(), and v2PrimBody().
Referenced by v2LibSymbolDef(), and v2SymbolDef().
|
static |
Definition at line 1450 of file orcad_page.cpp.
References name, ORCAD_OCC_SCOPE::netNames, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), THROW_IO_ERROR, v2CheckCount(), v2Prefix(), and v2ReadOccurrence().
Referenced by OrcadReadOccurrenceTreeV2(), and v2ReadOccurrence().
|
static |
Definition at line 1491 of file orcad_page.cpp.
References ORCAD_OCC_SCOPE::blocks, ORCAD_OCC_BLOCK::childFolder, ORCAD_OCC_SCOPE::partProps, ORCAD_OCC_SCOPE::partRefs, ORCAD_OCC_SCOPE::partUnitRefs, ORCAD_STREAM::ReadLzt(), ORCAD_STREAM::ReadU16(), ORCAD_STREAM::ReadU32(), ORCAD_OCC_BLOCK::scope, ORCAD_OCC_BLOCK::targetDbId, THROW_IO_ERROR, v2CheckCount(), v2Prefix(), and v2ReadOccScope().
Referenced by v2ReadOccScope().
|
static |
Definition at line 347 of file orcad_page.cpp.
Referenced by v2DisplayProp(), v2DrawnInstance(), v2GraphicInst(), v2PlacedInstance(), and v2Prefix().
|
static |
Definition at line 793 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_ERRORF, v2Alias(), v2DisplayProp(), v2PinInst(), v2PlacedInstance(), v2SymbolDef(), and v2Wire().
Referenced by v2Wire().
|
static |
Definition at line 575 of file orcad_page.cpp.
References ORCAD_SYMBOL_DEF::bbox, ORCAD_SYMBOL_DEF::color, g_v2ShortDisplayProp, 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 819 of file orcad_page.cpp.
References ORCAD_SYMBOL_PIN::displayProps, 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 471 of file orcad_page.cpp.
References ORCAD_WIRE::aliases, ORCAD_WIRE::color, ORCAD_WIRE::dbId, 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 354 of file orcad_page.cpp.
Referenced by V2_DISPLAY_PROP_SCOPE::V2_DISPLAY_PROP_SCOPE(), v2DisplayProp(), v2SymbolDef(), and V2_DISPLAY_PROP_SCOPE::~V2_DISPLAY_PROP_SCOPE().