KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ALLEGRO::RAW_BOARD Struct Reference

Raw board structure that we will build as we parse the file. More...

#include <allegro_pcb_structs.h>

Public Member Functions

 RAW_BOARD ()
 
const BLOCK_BASEGetObjectByKey (uint32_t aKey) const
 
const std::string & GetString (uint32_t aId) const
 

Public Attributes

std::unique_ptr< FILE_HEADERm_Header
 
FMT_VER m_FmtVer
 What version is this file?
 
std::unordered_map< uint32_t, std::string > m_StringTable
 The string map is a map of U32 ID to strings.
 
std::vector< std::unique_ptr< BLOCK_BASE > > m_Objects
 
std::unordered_map< uint32_t, BLOCK_BASE * > m_ObjectKeyMap
 
std::unordered_map< uint8_t, std::vector< BLOCK_BASE * > > m_ObjectLists
 

Static Public Attributes

static const size_t STRING_TABLE_OFFSET = 0x1200
 

Detailed Description

Raw board structure that we will build as we parse the file.

Definition at line 2104 of file allegro_pcb_structs.h.

Constructor & Destructor Documentation

◆ RAW_BOARD()

ALLEGRO::RAW_BOARD::RAW_BOARD ( )

Definition at line 2743 of file allegro_parser.cpp.

References m_FmtVer, and ALLEGRO::V_UNKNOWN.

Member Function Documentation

◆ GetObjectByKey()

const BLOCK_BASE * ALLEGRO::RAW_BOARD::GetObjectByKey ( uint32_t aKey) const
inline

Definition at line 2133 of file allegro_pcb_structs.h.

References m_ObjectKeyMap.

◆ GetString()

const std::string & ALLEGRO::RAW_BOARD::GetString ( uint32_t aId) const
inline

Definition at line 2141 of file allegro_pcb_structs.h.

References empty(), and m_StringTable.

Member Data Documentation

◆ m_FmtVer

FMT_VER ALLEGRO::RAW_BOARD::m_FmtVer

What version is this file?

We will need this to correctly interpret some structures.

Definition at line 2114 of file allegro_pcb_structs.h.

Referenced by RAW_BOARD().

◆ m_Header

std::unique_ptr<FILE_HEADER> ALLEGRO::RAW_BOARD::m_Header

Definition at line 2109 of file allegro_pcb_structs.h.

◆ m_ObjectKeyMap

std::unordered_map<uint32_t, BLOCK_BASE*> ALLEGRO::RAW_BOARD::m_ObjectKeyMap

Definition at line 2126 of file allegro_pcb_structs.h.

Referenced by GetObjectByKey().

◆ m_ObjectLists

std::unordered_map<uint8_t, std::vector<BLOCK_BASE*> > ALLEGRO::RAW_BOARD::m_ObjectLists

Definition at line 2129 of file allegro_pcb_structs.h.

◆ m_Objects

std::vector<std::unique_ptr<BLOCK_BASE> > ALLEGRO::RAW_BOARD::m_Objects

Definition at line 2123 of file allegro_pcb_structs.h.

◆ m_StringTable

std::unordered_map<uint32_t, std::string> ALLEGRO::RAW_BOARD::m_StringTable

The string map is a map of U32 ID to strings.

It seems to always be located at byte 0x1200 in the file.

Definition at line 2120 of file allegro_pcb_structs.h.

Referenced by GetString().

◆ STRING_TABLE_OFFSET

const size_t ALLEGRO::RAW_BOARD::STRING_TABLE_OFFSET = 0x1200
static

Definition at line 2131 of file allegro_pcb_structs.h.

Referenced by ReadStringMap().


The documentation for this struct was generated from the following files: