|
KiCad PCB EDA Suite
|
#include "convert/allegro_parser.h"#include <array>#include <cstring>#include <wx/sstream.h>#include <wx/log.h>#include <wx/translation.h>#include <core/profile.h>#include <core/throttle.h>#include <core/type_helpers.h>#include <ki_exception.h>Go to the source code of this file.
Functions | |
| static FILE_HEADER::LINKED_LIST | ReadLL (FILE_STREAM &aStream, FMT_VER aVer) |
| static double | ReadAllegroFloat (FILE_STREAM &aStream) |
| template<typename ARRAY> | |
| static void | ReadArrayU32 (FILE_STREAM &aStream, ARRAY &aArray) |
| template<typename T> | |
| static T | ReadField (FILE_STREAM &aStream, FMT_VER aFmtVer) |
| template<typename COND_T> | |
| static void | ReadCond (FILE_STREAM &aStream, FMT_VER aFmtVer, COND_T &aField) |
| Read a single conditional field from the stream, if it exists at the current version. | |
| static void | ReadStringMap (FILE_STREAM &stream, DB &aDb, uint32_t count) |
| static LAYER_INFO | ParseLayerInfo (FILE_STREAM &aStream) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x01_ARC (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x03 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x04_NET_ASSIGNMENT (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x05_TRACK (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x06 (FILE_STREAM &stream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x07 (FILE_STREAM &stream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x08 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x09 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x0A_DRC (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x0C (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x0D_PAD (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x0E (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x0F (FILE_STREAM &stream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x10 (FILE_STREAM &stream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x11 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x12 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x14 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x15_16_17_SEGMENT (FILE_STREAM &aStream, FMT_VER aVer, uint8_t aType) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x1B_NET (FILE_STREAM &stream, FMT_VER aVer) |
| static PAD_TYPE | decodePadType (uint8_t aVal) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x1C_PADSTACK (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x1D (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x1E (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x1F (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x20 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x21 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x22 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x23_RATLINE (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x24_RECT (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x26 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x27 (FILE_STREAM &aStream, FMT_VER aVer, size_t aEndOff) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x28_SHAPE (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x29_PIN (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x2A (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x2B (FILE_STREAM &stream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x2C_TABLE (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x2D (FILE_STREAM &stream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x2E (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x2F (FILE_STREAM &aStream, FMT_VER aVer) |
| static BLK_0x30_STR_WRAPPER::TEXT_PROPERTIES | ParseTextProps (FILE_STREAM &aStream) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x30_STR_WRAPPER (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x31_SGRAPHIC (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x32_PLACED_PAD (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x33_VIA (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x34_KEEPOUT (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x35 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x36 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x37 (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x38_FILM (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x39_FILM_LAYER_LIST (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x3A_FILM_LIST_NODE (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x3B (FILE_STREAM &aStream, FMT_VER aVer) |
| static std::unique_ptr< BLOCK_BASE > | ParseBlock_0x3C (FILE_STREAM &aStream, FMT_VER aVer) |
| template<typename T> | |
| void | dumpLL (const char *name, const T &aLL) |
Variables | |
| static const wxChar *const | traceAllegroParser = wxT( "KICAD_ALLEGRO_PARSER" ) |
| Flag to enable debug output of Allegro parsing. | |
| static const wxChar *const | traceAllegroParserBlocks = wxT( "KICAD_ALLEGRO_PARSER_BLOCKS" ) |
| static const wxChar *const | traceAllegroPerf = wxT( "KICAD_ALLEGRO_PERF" ) |
|
static |
Definition at line 992 of file allegro_parser.cpp.
References ALLEGRO::NPTH, ALLEGRO::SLOT, ALLEGRO::SMD_PIN, ALLEGRO::THROUGH_VIA, THROW_IO_ERROR, and ALLEGRO::VIA.
Referenced by ParseBlock_0x1C_PADSTACK().
Definition at line 2676 of file allegro_parser.cpp.
References dumpLL(), name, T, and traceAllegroParser.
Referenced by dumpLL(), and ALLEGRO::PARSER::Parse().
|
static |
Definition at line 359 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadAllegroFloat(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 396 of file allegro_parser.cpp.
References ALLEGRO::BLK_0x03_FIELD::SUB_0x6C::m_Entries, ALLEGRO::BLK_0x03_FIELD::SUB_0x70_0x74::m_Entries, ALLEGRO::BLK_0x03_FIELD::SUB_0xF6::m_Entries, ALLEGRO::BLK_0x03_FIELD::SUB_0x6C::m_NumEntries, ALLEGRO::BLK_0x03_FIELD::SUB_0x70_0x74::m_X0, ALLEGRO::BLK_0x03_FIELD::SUB_0x70_0x74::m_X1, ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), ALLEGRO::FILE_STREAM::Skip(), THROW_IO_ERROR, and traceAllegroParserBlocks.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 526 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 545 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 577 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 600 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 629 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 656 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 685 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 713 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 761 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 790 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 825 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadBytes(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 850 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 873 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 893 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 914 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 937 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 963 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1018 of file allegro_parser.cpp.
References comp, decodePadType(), ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_A, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_ArrayNX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ArrayNX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_ArrayNY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ArrayNY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_B, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_ClearanceX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ClearanceX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_ClearanceY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ClearanceY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_D, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_D, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillChar, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_DrillChars, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillMarkShape, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_DrillMarkShape, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillMarkSizeX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_DrillMarkSizeX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillMarkSizeY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_DrillMarkSizeY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillOffsetX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillOffsetY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_DrillSize, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_DrillSize, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_Flags, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Flags, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_LayerCount, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_LayerCount, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_PadType, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_SlotX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_SlotX, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_SlotY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_SlotY, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_ToleranceNeg, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ToleranceNeg, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_TolerancePos, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_TolerancePos, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ToleranceTravelNeg, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_ToleranceTravelPos, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Unknown1, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Unknown2, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_unknown3, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Unknown4, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Unknown5, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Unknown6a, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_Unknown6b, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_Unknown_1, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_Unknown_2, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_Unknown_3, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_Unknown_4, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_UnknownArr3, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_UnknownArr_v180, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v16x::m_UnknownStr, ALLEGRO::BLK_0x1C_PADSTACK::HEADER_v17x::m_UnknownStr, ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), ALLEGRO::V_165, and ALLEGRO::V_172.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1171 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadBytes(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1203 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1228 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadBytes(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::Skip(), ALLEGRO::V_162, ALLEGRO::V_172, and ALLEGRO::V_175.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1263 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1281 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadBytes(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), and THROW_IO_ERROR.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1308 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1326 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1357 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1387 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1409 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1444 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1482 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1516 of file allegro_parser.cpp.
References ALLEGRO::BLK_0x2A_LAYER_LIST::NONREF_ENTRY::m_Name, ALLEGRO::BLK_0x2A_LAYER_LIST::REF_ENTRY::m_Properties, ALLEGRO::BLK_0x2A_LAYER_LIST::REF_ENTRY::m_Unknown, ALLEGRO::BLK_0x2A_LAYER_LIST::REF_ENTRY::mLayerNameId, ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1559 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1588 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1617 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1660 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1683 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1732 of file allegro_parser.cpp.
References ParseLayerInfo(), ParseTextProps(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1778 of file allegro_parser.cpp.
References ALLEGRO::BLK_0x31_SGRAPHIC::BOT_PIN, ALLEGRO::BLK_0x31_SGRAPHIC::BOT_REFDES, ALLEGRO::BLK_0x31_SGRAPHIC::BOT_TEXT, ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), ALLEGRO::BLK_0x31_SGRAPHIC::TOP_PIN, ALLEGRO::BLK_0x31_SGRAPHIC::TOP_PIN_LABEL, ALLEGRO::BLK_0x31_SGRAPHIC::TOP_REFDES, ALLEGRO::BLK_0x31_SGRAPHIC::TOP_TEXT, and ALLEGRO::BLK_0x31_SGRAPHIC::UNKNOWN.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1819 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1857 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1897 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1920 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadBytes(), ALLEGRO::FILE_STREAM::ReadU16(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 1934 of file allegro_parser.cpp.
References ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_A, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_B, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_CharacterSpace, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_CharHeight, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_CharWidth, ALLEGRO::BLK_0x36_DEF_TABLE::X0F::m_Key, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_LineSpace, ALLEGRO::BLK_0x36_DEF_TABLE::X06::m_N, ALLEGRO::BLK_0x36_DEF_TABLE::X0F::m_Ptr2, ALLEGRO::BLK_0x36_DEF_TABLE::X0F::m_Ptrs, ALLEGRO::BLK_0x36_DEF_TABLE::X06::m_R, ALLEGRO::BLK_0x36_DEF_TABLE::X06::m_S, ALLEGRO::BLK_0x36_DEF_TABLE::X03::m_Str, ALLEGRO::BLK_0x36_DEF_TABLE::X03::m_Str16x, ALLEGRO::BLK_0x36_DEF_TABLE::X02::m_String, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_StrokeWidth, ALLEGRO::BLK_0x36_DEF_TABLE::X05::m_Unknown, ALLEGRO::BLK_0x36_DEF_TABLE::X0B::m_Unknown, ALLEGRO::BLK_0x36_DEF_TABLE::X0C::m_Unknown, ALLEGRO::BLK_0x36_DEF_TABLE::X0D::m_Unknown, ALLEGRO::BLK_0x36_DEF_TABLE::X10::m_Unknown, ALLEGRO::BLK_0x36_DEF_TABLE::X03::m_Unknown1, ALLEGRO::BLK_0x36_DEF_TABLE::X06::m_Unknown1, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_Unknown2, ALLEGRO::BLK_0x36_DEF_TABLE::X05::m_Unknown2, ALLEGRO::BLK_0x36_DEF_TABLE::X06::m_Unknown2, ALLEGRO::BLK_0x36_DEF_TABLE::X10::m_Unknown2, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_Unknown3, ALLEGRO::BLK_0x36_DEF_TABLE::X02::m_Xs, ALLEGRO::BLK_0x36_DEF_TABLE::FontDef_X08::m_Ys, ALLEGRO::BLK_0x36_DEF_TABLE::X02::m_Ys, ALLEGRO::BLK_0x36_DEF_TABLE::X02::m_Zs, ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ALLEGRO::FILE_STREAM::ReadBytes(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), ALLEGRO::FILE_STREAM::Skip(), THROW_IO_ERROR, and ALLEGRO::V_172.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 2114 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadArrayU32(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 2137 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 2168 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 2189 of file allegro_parser.cpp.
References ParseLayerInfo(), ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::Skip().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 2208 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadStringFixed(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 2232 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::Position(), ReadCond(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), and THROW_IO_ERROR.
Referenced by ALLEGRO::BLOCK_PARSER::ParseBlock().
|
static |
Definition at line 345 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::ReadU8().
Referenced by ParseBlock_0x05_TRACK(), ParseBlock_0x0A_DRC(), ParseBlock_0x0C(), ParseBlock_0x0E(), ParseBlock_0x14(), ParseBlock_0x23_RATLINE(), ParseBlock_0x24_RECT(), ParseBlock_0x28_SHAPE(), ParseBlock_0x30_STR_WRAPPER(), ParseBlock_0x32_PLACED_PAD(), ParseBlock_0x33_VIA(), ParseBlock_0x34_KEEPOUT(), and ParseBlock_0x3A_FILM_LIST_NODE().
|
static |
Definition at line 1699 of file allegro_parser.cpp.
References ALLEGRO::BLK_0x30_STR_WRAPPER::CENTER, ALLEGRO::BLK_0x30_STR_WRAPPER::LEFT, ALLEGRO::BLK_0x30_STR_WRAPPER::TEXT_PROPERTIES::m_Alignment, ALLEGRO::BLK_0x30_STR_WRAPPER::TEXT_PROPERTIES::m_Flags, ALLEGRO::BLK_0x30_STR_WRAPPER::TEXT_PROPERTIES::m_Key, ALLEGRO::BLK_0x30_STR_WRAPPER::TEXT_PROPERTIES::m_Reversal, ALLEGRO::FILE_STREAM::ReadU8(), ALLEGRO::BLK_0x30_STR_WRAPPER::REVERSED, ALLEGRO::BLK_0x30_STR_WRAPPER::RIGHT, ALLEGRO::BLK_0x30_STR_WRAPPER::STRAIGHT, and ALLEGRO::BLK_0x30_STR_WRAPPER::UNKNOWN.
Referenced by ParseBlock_0x30_STR_WRAPPER().
|
static |
Definition at line 76 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::ReadU32(), and result.
Referenced by ParseBlock_0x01_ARC().
|
static |
Definition at line 92 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::ReadU32().
Referenced by ParseBlock_0x0A_DRC(), ParseBlock_0x1C_PADSTACK(), ParseBlock_0x20(), ParseBlock_0x22(), ParseBlock_0x23_RATLINE(), ParseBlock_0x2B(), ParseBlock_0x2F(), ParseBlock_0x36(), ParseBlock_0x37(), and ALLEGRO::HEADER_PARSER::ParseHeader().
|
static |
Read a single conditional field from the stream, if it exists at the current version.
Definition at line 148 of file allegro_parser.cpp.
References ReadField().
Referenced by ParseBlock_0x01_ARC(), ParseBlock_0x03(), ParseBlock_0x04_NET_ASSIGNMENT(), ParseBlock_0x05_TRACK(), ParseBlock_0x06(), ParseBlock_0x07(), ParseBlock_0x08(), ParseBlock_0x09(), ParseBlock_0x0A_DRC(), ParseBlock_0x0C(), ParseBlock_0x0D_PAD(), ParseBlock_0x0E(), ParseBlock_0x0F(), ParseBlock_0x10(), ParseBlock_0x11(), ParseBlock_0x12(), ParseBlock_0x14(), ParseBlock_0x15_16_17_SEGMENT(), ParseBlock_0x1B_NET(), ParseBlock_0x1C_PADSTACK(), ParseBlock_0x1D(), ParseBlock_0x1E(), ParseBlock_0x20(), ParseBlock_0x22(), ParseBlock_0x23_RATLINE(), ParseBlock_0x24_RECT(), ParseBlock_0x26(), ParseBlock_0x28_SHAPE(), ParseBlock_0x2A(), ParseBlock_0x2B(), ParseBlock_0x2C_TABLE(), ParseBlock_0x2D(), ParseBlock_0x2E(), ParseBlock_0x30_STR_WRAPPER(), ParseBlock_0x31_SGRAPHIC(), ParseBlock_0x32_PLACED_PAD(), ParseBlock_0x33_VIA(), ParseBlock_0x34_KEEPOUT(), ParseBlock_0x36(), ParseBlock_0x37(), ParseBlock_0x38_FILM(), ParseBlock_0x3A_FILM_LIST_NODE(), ParseBlock_0x3B(), ParseBlock_0x3C(), and ALLEGRO::HEADER_PARSER::ParseHeader().
|
static |
Definition at line 102 of file allegro_parser.cpp.
References ReadLL(), ALLEGRO::FILE_STREAM::ReadS16(), ALLEGRO::FILE_STREAM::ReadS32(), ALLEGRO::FILE_STREAM::ReadU16(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::ReadU8(), and T.
Referenced by ReadCond().
|
static |
Definition at line 54 of file allegro_parser.cpp.
References ALLEGRO::FILE_STREAM::ReadU32(), and ALLEGRO::V_180.
Referenced by ALLEGRO::HEADER_PARSER::ParseHeader(), and ReadField().
|
static |
Definition at line 331 of file allegro_parser.cpp.
References ALLEGRO::DB::AddString(), ALLEGRO::FILE_STREAM::ReadString(), ALLEGRO::FILE_STREAM::ReadU32(), ALLEGRO::FILE_STREAM::Seek(), and ALLEGRO::RAW_BOARD::STRING_TABLE_OFFSET.
Referenced by ALLEGRO::PARSER::Parse().
|
static |
Definition at line 50 of file allegro_parser.cpp.
Referenced by ParseBlock_0x03(), and ALLEGRO::PARSER::readObjects().
|
static |
Definition at line 51 of file allegro_parser.cpp.