|
KiCad PCB EDA Suite
|
The base class for all blocks in the main body of an Allegro file. More...
#include <allegro_pcb_structs.h>
Public Member Functions | |
| BLOCK_BASE (uint8_t aBlockType, size_t aOffset) | |
| virtual | ~BLOCK_BASE ()=default |
| uint8_t | GetBlockType () const |
| size_t | GetOffset () const |
| uint32_t | GetKey () const |
Private Attributes | |
| uint8_t | m_blockType |
| size_t | m_offset |
The base class for all blocks in the main body of an Allegro file.
This records metadata about the block, such as its type and offset in the file.
In the file format, blocks do not seem to know their own length, so it's very important that each block type gets this right, or the next block will not be read properly and everything will fall apart.
Definition at line 52 of file allegro_pcb_structs.h.
|
inline |
Definition at line 55 of file allegro_pcb_structs.h.
References m_blockType, and m_offset.
Referenced by ALLEGRO::BLOCK< T >::BLOCK().
|
virtualdefault |
|
inline |
Definition at line 62 of file allegro_pcb_structs.h.
References m_blockType.
Referenced by ALLEGRO::BOARD_BUILDER::applyZoneFills(), ALLEGRO::BOARD_BUILDER::buildSegmentChain(), ALLEGRO::BRD_DB::OBJ_FACTORY::CreateObject(), ALLEGRO::BOARD_BUILDER::expectBlockByKey(), GetBlockKey(), GetPrimaryNext(), PadGetNextInFootprint(), ALLEGRO::BOARD_BUILDER::resolveConstraintSetNameFromField(), ALLEGRO::BOARD_BUILDER::resolveMatchGroupName(), and TestOlympus0x20().
| uint32_t BLOCK_BASE::GetKey | ( | ) | const |
Definition at line 101 of file allegro_db.cpp.
References GetBlockKey().
Referenced by PadGetNextInFootprint().
|
inline |
Definition at line 63 of file allegro_pcb_structs.h.
References m_offset.
Referenced by ALLEGRO::BRD_DB::OBJ_FACTORY::CreateObject(), ALLEGRO::BOARD_BUILDER::expectBlockByKey(), and PadGetNextInFootprint().
|
private |
Definition at line 69 of file allegro_pcb_structs.h.
Referenced by BLOCK_BASE(), and GetBlockType().
|
private |
Definition at line 70 of file allegro_pcb_structs.h.
Referenced by BLOCK_BASE(), and GetOffset().