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

Converts blocks of "raw" binary-ish data into a DB_OBJ of the appropriate type to be stored in the DB. More...

#include <allegro_db.h>

Public Member Functions

 OBJ_FACTORY (const BRD_DB &aBrdDb)
 
std::unique_ptr< DB_OBJCreateObject (const BLOCK_BASE &aBlock) const
 

Private Attributes

const BRD_DBm_brdDb
 

Detailed Description

Converts blocks of "raw" binary-ish data into a DB_OBJ of the appropriate type to be stored in the DB.

As constructed, the objects may have dangling references to other object that will need to be resolved only after all objects are inserted into the DB.

This class encapsulates context/state for that process.

Definition at line 861 of file allegro_db.h.

Constructor & Destructor Documentation

◆ OBJ_FACTORY()

ALLEGRO::BRD_DB::OBJ_FACTORY::OBJ_FACTORY ( const BRD_DB & aBrdDb)
inline

Definition at line 864 of file allegro_db.h.

References ALLEGRO::BRD_DB::BRD_DB(), and m_brdDb.

Member Function Documentation

◆ CreateObject()

std::unique_ptr< DB_OBJ > BRD_DB::OBJ_FACTORY::CreateObject ( const BLOCK_BASE & aBlock) const

Member Data Documentation

◆ m_brdDb

const BRD_DB& ALLEGRO::BRD_DB::OBJ_FACTORY::m_brdDb
private

Definition at line 872 of file allegro_db.h.

Referenced by CreateObject(), and OBJ_FACTORY().


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