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, const std::map< int, std::vector< BOARD_ITEM * > > &aMap, const ODB_LAYER_NAME &aLayer)
 
virtual ~ODB_LAYER_ENTITY ()=default
 
virtual std::string GetEntityName () override
 
virtual void InitEntityData () override
 
void InitFeatureData ()
 
void InitDrillData ()
 
void InitRoutData ()
 
void InitAuxilliaryData ()
 
ODB_COMPONENT & InitComponentData (const FOOTPRINT *aFp, const EDA_DATA::PACKAGE &aPkg)
 
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 CreateDirectoryTree (ODB_TREE_WRITER &writer)
 

Protected Attributes

BOARD * m_board
 
std::vector< std::string > m_fileName
 
PCB_IO_ODBPP * m_plugin
 

Private Attributes

std::map< int, std::vector< BOARD_ITEM * > > m_layerItems
 
PCB_LAYER_ID m_layerID
 
ODB_LAYER_NAME m_layer
 
std::optional< ODB_DRILL_TOOLS > m_tools
 
std::optional< COMPONENTS_MANAGER > m_components
 
std::unique_ptr< FEATURES_MANAGER > m_featuresMgr
 

Detailed Description

Definition at line 212 of file odb_entity.h.

Constructor & Destructor Documentation

◆ ODB_LAYER_ENTITY()

ODB_LAYER_ENTITY::ODB_LAYER_ENTITY ( BOARD * aBoard,
PCB_IO_ODBPP * aPlugin,
const std::map< int, std::vector< BOARD_ITEM * > > & aMap,
const ODB_LAYER_NAME & aLayer )

◆ ~ODB_LAYER_ENTITY()

virtual ODB_LAYER_ENTITY::~ODB_LAYER_ENTITY ( )
virtualdefault

Member Function Documentation

◆ AddLayerFeatures()

void ODB_LAYER_ENTITY::AddLayerFeatures ( )

◆ CreateDirectoryTree()

bool ODB_ENTITY_BASE::CreateDirectoryTree ( ODB_TREE_WRITER & writer)
virtualinherited

◆ GenAttrList()

◆ GenComponents()

void ODB_LAYER_ENTITY::GenComponents ( ODB_TREE_WRITER & writer)

Definition at line 1644 of file odb_entity.cpp.

References ODB_TREE_WRITER::CreateFileProxy(), and m_components.

Referenced by GenerateFiles().

◆ GenerateFiles()

void ODB_LAYER_ENTITY::GenerateFiles ( ODB_TREE_WRITER & writer)
overridevirtual

Reimplemented from ODB_ENTITY_BASE.

Definition at line 1628 of file odb_entity.cpp.

References GenAttrList(), GenComponents(), GenFeatures(), GenTools(), m_components, and m_tools.

◆ GenFeatures()

void ODB_LAYER_ENTITY::GenFeatures ( ODB_TREE_WRITER & writer)

Definition at line 1652 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 1742 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 221 of file odb_entity.h.

◆ InitAuxilliaryData()

void ODB_LAYER_ENTITY::InitAuxilliaryData ( )

Definition at line 1587 of file odb_entity.cpp.

References m_layer, m_layerItems, ODB_ENTITY_BASE::m_plugin, PCB_VIA_T, EDA_ITEM::Type(), and via.

Referenced by InitEntityData().

◆ InitComponentData()

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

Definition at line 1456 of file odb_entity.cpp.

References m_components, and ODB_ENTITY_BASE::m_plugin.

◆ InitDrillData()

◆ InitEntityData()

void ODB_LAYER_ENTITY::InitEntityData ( )
overridevirtual

◆ InitFeatureData()

void ODB_LAYER_ENTITY::InitFeatureData ( )

Definition at line 1402 of file odb_entity.cpp.

References FabItemLess(), ODB_ENTITY_BASE::m_board, m_featuresMgr, m_layer, and m_layerItems.

Referenced by InitEntityData().

◆ InitRoutData()

Member Data Documentation

◆ m_board

◆ m_components

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

Definition at line 247 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 248 of file odb_entity.h.

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

◆ m_fileName

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

Definition at line 63 of file odb_entity.h.

◆ m_layer

ODB_LAYER_NAME ODB_LAYER_ENTITY::m_layer
private

◆ m_layerID

PCB_LAYER_ID ODB_LAYER_ENTITY::m_layerID
private

Definition at line 243 of file odb_entity.h.

Referenced by ODB_LAYER_ENTITY().

◆ m_layerItems

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

Definition at line 242 of file odb_entity.h.

Referenced by InitAuxilliaryData(), InitDrillData(), InitFeatureData(), and ODB_LAYER_ENTITY().

◆ m_plugin

◆ m_tools

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

Definition at line 246 of file odb_entity.h.

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


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