KiCad PCB EDA Suite
Loading...
Searching...
No Matches
allegro_db.cpp File Reference
#include "convert/allegro_db.h"
#include <wx/log.h>
#include <ki_exception.h>
#include <convert/allegro_pcb_structs.h>

Go to the source code of this file.

Macros

#define BLK_DATA(BLK, T)
 

Functions

static std::optional< uint32_t > GetBlockKey (const BLOCK_BASE &block)
 
static bool CheckTypeIs (const DB_REF &aRef, DB_OBJ::TYPE aType, bool aCanBeNull)
 
static bool CheckTypeIsOneOf (const DB_REF &aRef, const std::vector< DB_OBJ::TYPE > &aTypes, bool aCanBeNull)
 
static void collectSentinelKeys (const FILE_HEADER &aHeader, DB &aDb)
 

Macro Definition Documentation

◆ BLK_DATA

#define BLK_DATA ( BLK,
T )
Value:
static_cast<const BLOCK<T>&>( BLK ).GetData()

Definition at line 35 of file allegro_db.cpp.

Referenced by ALLEGRO::BRD_DB::OBJ_FACTORY::CreateObject().

Function Documentation

◆ CheckTypeIs()

◆ CheckTypeIsOneOf()

static bool CheckTypeIsOneOf ( const DB_REF & aRef,
const std::vector< DB_OBJ::TYPE > & aTypes,
bool aCanBeNull )
static

◆ collectSentinelKeys()

◆ GetBlockKey()

static std::optional< uint32_t > GetBlockKey ( const BLOCK_BASE & block)
static

Definition at line 38 of file allegro_db.cpp.

References ALLEGRO::BLOCK_BASE::GetBlockType().

Referenced by ALLEGRO::BLOCK_BASE::GetKey().