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

#include <odb_component.h>

Inheritance diagram for COMPONENTS_MANAGER:
ATTR_MANAGER

Public Member Functions

 COMPONENTS_MANAGER ()=default
 
virtual ~COMPONENTS_MANAGER ()
 
ODB_COMPONENTAddComponent (const FOOTPRINT *aFp, const EDA_DATA::PACKAGE &aPkg)
 
void Write (std::ostream &ost) 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::list< ODB_COMPONENTm_compList
 
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 32 of file odb_component.h.

Constructor & Destructor Documentation

◆ COMPONENTS_MANAGER()

COMPONENTS_MANAGER::COMPONENTS_MANAGER ( )
default

◆ ~COMPONENTS_MANAGER()

virtual COMPONENTS_MANAGER::~COMPONENTS_MANAGER ( )
inlinevirtual

Definition at line 37 of file odb_component.h.

References m_compList.

Member Function Documentation

◆ AddComponent()

◆ AddFeatureAttribute()

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

◆ 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

◆ 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 COMPONENTS_MANAGER::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

◆ 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_compList

std::list<ODB_COMPONENT> COMPONENTS_MANAGER::m_compList
private

Definition at line 44 of file odb_component.h.

Referenced by AddComponent(), Write(), and ~COMPONENTS_MANAGER().


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