KiCad PCB EDA Suite
Loading...
Searching...
No Matches
ODB_LAYER_ENTITY Class Reference

#include <odb_entity.h>

Inheritance diagram for ODB_LAYER_ENTITY:
ODB_ENTITY_BASE

Public Member Functions

 ODB_LAYER_ENTITY (BOARD *aBoard, PCB_IO_ODBPP *aPlugin, std::map< int, std::vector< BOARD_ITEM * > > &aMap, const PCB_LAYER_ID &aLayerID, const wxString &aLayerName)
 
virtual ~ODB_LAYER_ENTITY ()=default
 
virtual std::string GetEntityName () override
 
virtual void InitEntityData () override
 
void InitFeatureData ()
 
ODB_COMPONENTInitComponentData (const FOOTPRINT *aFp, const EDA_DATA::PACKAGE &aPkg)
 
void InitDrillData ()
 
void AddLayerFeatures ()
 
void GenAttrList (ODB_TREE_WRITER &writer)
 
void GenComponents (ODB_TREE_WRITER &writer)
 
void GenTools (ODB_TREE_WRITER &writer)
 
void GenFeatures (ODB_TREE_WRITER &writer)
 
virtual void GenerateFiles (ODB_TREE_WRITER &writer) override
 
virtual bool CreateDirectiryTree (ODB_TREE_WRITER &writer)
 

Protected Attributes

BOARDm_board
 
std::vector< std::string > m_fileName
 
PCB_IO_ODBPPm_plugin
 

Private Attributes

std::map< int, std::vector< BOARD_ITEM * > > m_layerItems
 
PCB_LAYER_ID m_layerID
 
wxString m_matrixLayerName
 
std::optional< ODB_DRILL_TOOLSm_tools
 
std::optional< COMPONENTS_MANAGERm_compTop
 
std::optional< COMPONENTS_MANAGERm_compBot
 
std::unique_ptr< FEATURES_MANAGERm_featuresMgr
 

Detailed Description

Definition at line 176 of file odb_entity.h.

Constructor & Destructor Documentation

◆ ODB_LAYER_ENTITY()

ODB_LAYER_ENTITY::ODB_LAYER_ENTITY ( BOARD aBoard,
PCB_IO_ODBPP aPlugin,
std::map< int, std::vector< BOARD_ITEM * > > &  aMap,
const PCB_LAYER_ID aLayerID,
const wxString &  aLayerName 
)

Definition at line 406 of file odb_entity.cpp.

References m_featuresMgr.

◆ ~ODB_LAYER_ENTITY()

virtual ODB_LAYER_ENTITY::~ODB_LAYER_ENTITY ( )
virtualdefault

Member Function Documentation

◆ AddLayerFeatures()

void ODB_LAYER_ENTITY::AddLayerFeatures ( )

◆ CreateDirectiryTree()

bool ODB_ENTITY_BASE::CreateDirectiryTree ( ODB_TREE_WRITER writer)
virtualinherited

◆ GenAttrList()

void ODB_LAYER_ENTITY::GenAttrList ( ODB_TREE_WRITER writer)

Definition at line 641 of file odb_entity.cpp.

References ODB_TREE_WRITER::CreateFileProxy().

Referenced by GenerateFiles().

◆ GenComponents()

void ODB_LAYER_ENTITY::GenComponents ( ODB_TREE_WRITER writer)

Definition at line 618 of file odb_entity.cpp.

References ODB_TREE_WRITER::CreateFileProxy(), m_compBot, and m_compTop.

Referenced by GenerateFiles().

◆ GenerateFiles()

void ODB_LAYER_ENTITY::GenerateFiles ( ODB_TREE_WRITER writer)
overridevirtual

Reimplemented from ODB_ENTITY_BASE.

Definition at line 600 of file odb_entity.cpp.

References GenAttrList(), GenComponents(), GenFeatures(), GenTools(), m_compBot, m_compTop, and m_tools.

◆ GenFeatures()

void ODB_LAYER_ENTITY::GenFeatures ( ODB_TREE_WRITER writer)

Definition at line 633 of file odb_entity.cpp.

References ODB_TREE_WRITER::CreateFileProxy(), and m_featuresMgr.

Referenced by GenerateFiles().

◆ GenTools()

void ODB_LAYER_ENTITY::GenTools ( ODB_TREE_WRITER writer)

Definition at line 647 of file odb_entity.cpp.

References ODB_TREE_WRITER::CreateFileProxy(), and m_tools.

Referenced by GenerateFiles().

◆ GetEntityName()

virtual std::string ODB_LAYER_ENTITY::GetEntityName ( )
inlineoverridevirtual

Implements ODB_ENTITY_BASE.

Definition at line 185 of file odb_entity.h.

◆ InitComponentData()

ODB_COMPONENT & ODB_LAYER_ENTITY::InitComponentData ( const FOOTPRINT aFp,
const EDA_DATA::PACKAGE aPkg 
)

Definition at line 459 of file odb_entity.cpp.

References m_compBot, m_compTop, and m_matrixLayerName.

◆ InitDrillData()

◆ InitEntityData()

void ODB_LAYER_ENTITY::InitEntityData ( )
overridevirtual

Reimplemented from ODB_ENTITY_BASE.

Definition at line 416 of file odb_entity.cpp.

References InitDrillData(), InitFeatureData(), m_layerID, and m_matrixLayerName.

◆ InitFeatureData()

void ODB_LAYER_ENTITY::InitFeatureData ( )

Member Data Documentation

◆ m_board

◆ m_compBot

std::optional<COMPONENTS_MANAGER> ODB_LAYER_ENTITY::m_compBot
private

Definition at line 209 of file odb_entity.h.

Referenced by GenComponents(), GenerateFiles(), and InitComponentData().

◆ m_compTop

std::optional<COMPONENTS_MANAGER> ODB_LAYER_ENTITY::m_compTop
private

Definition at line 208 of file odb_entity.h.

Referenced by GenComponents(), GenerateFiles(), and InitComponentData().

◆ m_featuresMgr

std::unique_ptr<FEATURES_MANAGER> ODB_LAYER_ENTITY::m_featuresMgr
private

Definition at line 210 of file odb_entity.h.

Referenced by GenFeatures(), InitFeatureData(), and ODB_LAYER_ENTITY().

◆ m_fileName

std::vector<std::string> ODB_ENTITY_BASE::m_fileName
protectedinherited

Definition at line 60 of file odb_entity.h.

◆ m_layerID

PCB_LAYER_ID ODB_LAYER_ENTITY::m_layerID
private

Definition at line 204 of file odb_entity.h.

Referenced by InitEntityData(), and InitFeatureData().

◆ m_layerItems

std::map<int, std::vector<BOARD_ITEM*> > ODB_LAYER_ENTITY::m_layerItems
private

Definition at line 203 of file odb_entity.h.

Referenced by InitDrillData(), and InitFeatureData().

◆ m_matrixLayerName

wxString ODB_LAYER_ENTITY::m_matrixLayerName
private

Definition at line 205 of file odb_entity.h.

Referenced by InitComponentData(), InitDrillData(), and InitEntityData().

◆ m_plugin

◆ m_tools

std::optional<ODB_DRILL_TOOLS> ODB_LAYER_ENTITY::m_tools
private

Definition at line 207 of file odb_entity.h.

Referenced by GenerateFiles(), GenTools(), and InitDrillData().


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