|
KiCad PCB EDA Suite
|
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_OBJ > | CreateObject (const BLOCK_BASE &aBlock) const |
Private Attributes | |
| const BRD_DB & | m_brdDb |
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.
|
inline |
Definition at line 864 of file allegro_db.h.
References ALLEGRO::BRD_DB::BRD_DB(), and m_brdDb.
| std::unique_ptr< DB_OBJ > BRD_DB::OBJ_FACTORY::CreateObject | ( | const BLOCK_BASE & | aBlock | ) | const |
Definition at line 244 of file allegro_db.cpp.
References BLK_DATA, ALLEGRO::BLOCK_BASE::GetBlockType(), ALLEGRO::BLOCK_BASE::GetOffset(), and m_brdDb.
Referenced by ALLEGRO_BLOCK_TEST_FIXTURE::RunBlockTest().
|
private |
Definition at line 872 of file allegro_db.h.
Referenced by CreateObject(), and OBJ_FACTORY().