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

#include <odb_eda_data.h>

Inheritance diagram for EDA_DATA:
ATTR_MANAGER

Classes

class  FEATURE_ID
 
class  NET
 
class  PACKAGE
 
class  PIN
 
class  SUB_NET
 
class  SUB_NET_PLANE
 
class  SUB_NET_TOEPRINT
 
class  SUB_NET_TRACE
 
class  SUB_NET_VIA
 

Public Member Functions

 EDA_DATA ()
 
void Write (std::ostream &ost) const
 
size_t GetLyrIdx (const wxString &aLayerName)
 
std::vector< std::shared_ptr< FOOTPRINT > > GetEdaFootprints () const
 
void AddNET (const NETINFO_ITEM *aNet)
 
NETGetNet (size_t aNetcode)
 
void AddPackage (const FOOTPRINT *aFp)
 
const PACKAGEGetPackage (size_t aHash) const
 
template<typename Tr , typename Ta >
void AddFeatureAttribute (Tr &r, Ta v)
 

Protected Member Functions

size_t GetAttrNameNumber (const wxString &name)
 
void WriteAttributes (std::ostream &ost, const std::string &prefix="") const
 
void WriteAttributesName (std::ostream &ost, const std::string &prefix="") const
 
void WriteAttributesText (std::ostream &ost, const std::string &prefix="") const
 

Private Member Functions

size_t GetAttrTextNumber (const wxString &aName)
 
size_t GetTextIndex (std::unordered_map< std::string, size_t > &aMap, std::vector< std::pair< size_t, std::string > > &aVec, const std::string &aText)
 
template<typename T , unsigned int n>
std::string AttrValue2String (ODB_ATTR::FloatAttribute< T, n > a)
 
template<typename T >
std::string AttrValue2String (ODB_ATTR::BooleanAttribute< T > a)
 
template<typename T >
std::string AttrValue2String (ODB_ATTR::TextAttribute< T > a)
 

Private Attributes

std::map< size_t, NETnets_map
 
std::list< const NET * > nets
 
std::map< size_t, PACKAGEpackages_map
 
std::list< const PACKAGE * > packages
 
std::map< wxString, size_t > layers_map
 
std::vector< wxString > layers
 
std::vector< std::shared_ptr< FOOTPRINT > > m_eda_footprints
 
std::unordered_map< std::string, size_t > m_attrNames
 
std::vector< std::pair< size_t, std::string > > m_attrNameVec
 
std::unordered_map< std::string, size_t > m_attrTexts
 
std::vector< std::pair< size_t, std::string > > m_attrTextVec
 

Detailed Description

Definition at line 33 of file odb_eda_data.h.

Constructor & Destructor Documentation

◆ EDA_DATA()

EDA_DATA::EDA_DATA ( )

Definition at line 32 of file odb_eda_data.cpp.

References nets, and nets_map.

Member Function Documentation

◆ AddFeatureAttribute()

template<typename Tr , typename Ta >
void ATTR_MANAGER::AddFeatureAttribute ( Tr &  r,
Ta  v 
)
inlineinherited

◆ AddNET()

void EDA_DATA::AddNET ( const NETINFO_ITEM aNet)

◆ AddPackage()

◆ AttrValue2String() [1/3]

template<typename T >
std::string ATTR_MANAGER::AttrValue2String ( ODB_ATTR::BooleanAttribute< T >  a)
inlineprivateinherited

Definition at line 320 of file odb_attribute.h.

◆ AttrValue2String() [2/3]

template<typename T , unsigned int n>
std::string ATTR_MANAGER::AttrValue2String ( ODB_ATTR::FloatAttribute< T, n >  a)
inlineprivateinherited

◆ AttrValue2String() [3/3]

template<typename T >
std::string ATTR_MANAGER::AttrValue2String ( ODB_ATTR::TextAttribute< T >  a)
inlineprivateinherited

◆ GetAttrNameNumber()

size_t ATTR_MANAGER::GetAttrNameNumber ( const wxString &  name)
protectedinherited

◆ GetAttrTextNumber()

size_t ATTR_MANAGER::GetAttrTextNumber ( const wxString &  aName)
privateinherited

◆ GetEdaFootprints()

std::vector< std::shared_ptr< FOOTPRINT > > EDA_DATA::GetEdaFootprints ( ) const
inline

Definition at line 40 of file odb_eda_data.h.

References m_eda_footprints.

Referenced by ODB_STEP_ENTITY::InitEdaData().

◆ GetLyrIdx()

size_t EDA_DATA::GetLyrIdx ( const wxString &  aLayerName)

Definition at line 151 of file odb_eda_data.cpp.

References layers, and layers_map.

◆ GetNet()

NET & EDA_DATA::GetNet ( size_t  aNetcode)
inline

Definition at line 172 of file odb_eda_data.h.

References nets_map.

Referenced by ODB_STEP_ENTITY::InitEdaData().

◆ GetPackage()

const PACKAGE & EDA_DATA::GetPackage ( size_t  aHash) const
inline

Definition at line 253 of file odb_eda_data.h.

References packages_map.

Referenced by ODB_STEP_ENTITY::InitEdaData().

◆ GetTextIndex()

size_t ATTR_MANAGER::GetTextIndex ( std::unordered_map< std::string, size_t > &  aMap,
std::vector< std::pair< size_t, std::string > > &  aVec,
const std::string &  aText 
)
privateinherited

◆ Write()

void EDA_DATA::Write ( std::ostream &  ost) const

◆ WriteAttributes()

void ATTR_MANAGER::WriteAttributes ( std::ostream &  ost,
const std::string &  prefix = "" 
) const
protectedinherited

◆ WriteAttributesName()

void ATTR_MANAGER::WriteAttributesName ( std::ostream &  ost,
const std::string &  prefix = "" 
) const
protectedinherited

Definition at line 76 of file odb_attribute.cpp.

References ATTR_MANAGER::m_attrNameVec, and name.

Referenced by ATTR_MANAGER::WriteAttributes().

◆ WriteAttributesText()

void ATTR_MANAGER::WriteAttributesText ( std::ostream &  ost,
const std::string &  prefix = "" 
) const
protectedinherited

Definition at line 85 of file odb_attribute.cpp.

References ATTR_MANAGER::m_attrTextVec, and name.

Referenced by ATTR_MANAGER::WriteAttributes().

Member Data Documentation

◆ layers

std::vector<wxString> EDA_DATA::layers
private

Definition at line 263 of file odb_eda_data.h.

Referenced by GetLyrIdx(), and Write().

◆ layers_map

std::map<wxString, size_t> EDA_DATA::layers_map
private

Definition at line 262 of file odb_eda_data.h.

Referenced by GetLyrIdx().

◆ m_attrNames

std::unordered_map<std::string, size_t> ATTR_MANAGER::m_attrNames
privateinherited

Definition at line 332 of file odb_attribute.h.

Referenced by ATTR_MANAGER::GetAttrNameNumber().

◆ m_attrNameVec

std::vector<std::pair<size_t, std::string> > ATTR_MANAGER::m_attrNameVec
privateinherited

◆ m_attrTexts

std::unordered_map<std::string, size_t> ATTR_MANAGER::m_attrTexts
privateinherited

Definition at line 335 of file odb_attribute.h.

Referenced by ATTR_MANAGER::GetAttrTextNumber().

◆ m_attrTextVec

std::vector<std::pair<size_t, std::string> > ATTR_MANAGER::m_attrTextVec
privateinherited

◆ m_eda_footprints

std::vector<std::shared_ptr<FOOTPRINT> > EDA_DATA::m_eda_footprints
private

Definition at line 264 of file odb_eda_data.h.

Referenced by AddPackage(), and GetEdaFootprints().

◆ nets

std::list<const NET*> EDA_DATA::nets
private

Definition at line 257 of file odb_eda_data.h.

Referenced by AddNET(), EDA_DATA(), and Write().

◆ nets_map

std::map<size_t, NET> EDA_DATA::nets_map
private

Definition at line 256 of file odb_eda_data.h.

Referenced by AddNET(), EDA_DATA(), and GetNet().

◆ packages

std::list<const PACKAGE*> EDA_DATA::packages
private

Definition at line 260 of file odb_eda_data.h.

Referenced by AddPackage(), and Write().

◆ packages_map

std::map<size_t, PACKAGE> EDA_DATA::packages_map
private

Definition at line 259 of file odb_eda_data.h.

Referenced by AddPackage(), and GetPackage().


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