KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ALLEGRO::BLOCK_BASE Class Reference

The base class for all blocks in the main body of an Allegro file. More...

#include <allegro_pcb_structs.h>

Inheritance diagram for ALLEGRO::BLOCK_BASE:
ALLEGRO::BLOCK< T >

Public Member Functions

 BLOCK_BASE (uint8_t aBlockType, size_t aOffset)
 
virtual ~BLOCK_BASE ()=default
 
uint8_t GetBlockType () const
 This is the actual type code as read from the file.
 
size_t GetOffset () const
 
uint32_t GetKey () const
 
uint32_t GetNext () const
 
void SetKey (uint32_t aKey)
 
void SetNext (uint32_t aNext)
 

Private Attributes

uint8_t m_blockType
 
size_t m_offset
 
uint32_t m_Key
 
uint32_t m_Next
 

Detailed Description

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 54 of file allegro_pcb_structs.h.

Constructor & Destructor Documentation

◆ BLOCK_BASE()

ALLEGRO::BLOCK_BASE::BLOCK_BASE ( uint8_t aBlockType,
size_t aOffset )
inline

Definition at line 57 of file allegro_pcb_structs.h.

References m_blockType, m_Key, m_Next, and m_offset.

Referenced by ALLEGRO::BLOCK< T >::BLOCK().

◆ ~BLOCK_BASE()

virtual ALLEGRO::BLOCK_BASE::~BLOCK_BASE ( )
virtualdefault

Member Function Documentation

◆ GetBlockType()

◆ GetKey()

uint32_t ALLEGRO::BLOCK_BASE::GetKey ( ) const
inline

Definition at line 76 of file allegro_pcb_structs.h.

References m_Key.

Referenced by ALLEGRO::BOARD_BUILDER::buildZone(), and PadGetNextInFootprint().

◆ GetNext()

uint32_t ALLEGRO::BLOCK_BASE::GetNext ( ) const
inline

Definition at line 78 of file allegro_pcb_structs.h.

References m_Next.

Referenced by ALLEGRO::GetPrimaryNext().

◆ GetOffset()

size_t ALLEGRO::BLOCK_BASE::GetOffset ( ) const
inline

◆ SetKey()

void ALLEGRO::BLOCK_BASE::SetKey ( uint32_t aKey)
inline

Definition at line 80 of file allegro_pcb_structs.h.

References m_Key.

◆ SetNext()

void ALLEGRO::BLOCK_BASE::SetNext ( uint32_t aNext)
inline

Definition at line 81 of file allegro_pcb_structs.h.

References m_Next.

Member Data Documentation

◆ m_blockType

uint8_t ALLEGRO::BLOCK_BASE::m_blockType
private

Definition at line 84 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), and GetBlockType().

◆ m_Key

uint32_t ALLEGRO::BLOCK_BASE::m_Key
private

Definition at line 86 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), GetKey(), and SetKey().

◆ m_Next

uint32_t ALLEGRO::BLOCK_BASE::m_Next
private

Definition at line 87 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), GetNext(), and SetNext().

◆ m_offset

size_t ALLEGRO::BLOCK_BASE::m_offset
private

Definition at line 85 of file allegro_pcb_structs.h.

Referenced by BLOCK_BASE(), and GetOffset().


The documentation for this class was generated from the following file: