KiCad PCB EDA Suite
|
#include <odb_component.h>
Public Member Functions | |
COMPONENTS_MANAGER ()=default | |
virtual | ~COMPONENTS_MANAGER () |
ODB_COMPONENT & | AddComponent (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_COMPONENT > | m_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 |
Definition at line 32 of file odb_component.h.
|
default |
|
inlinevirtual |
Definition at line 37 of file odb_component.h.
References m_compList.
ODB_COMPONENT & COMPONENTS_MANAGER::AddComponent | ( | const FOOTPRINT * | aFp, |
const EDA_DATA::PACKAGE & | aPkg | ||
) |
Definition at line 29 of file odb_component.cpp.
References ODB::AddXY(), ANGLE_0, ANGLE_360, ODB::Double2String(), F_Cu, FOOTPRINT::GetFPID(), LIB_ID::GetFullLibraryName(), FOOTPRINT::GetLayer(), LIB_ID::GetLibItemName(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), FOOTPRINT::GetReference(), m_compList, EDA_DATA::PACKAGE::m_index, and UTF8::wx_str().
|
inlineinherited |
Definition at line 289 of file odb_attribute.h.
References ATTR_MANAGER::AttrValue2String(), and ATTR_MANAGER::GetAttrNameNumber().
Referenced by FEATURES_MANAGER::InitFeatureList().
|
inlineprivateinherited |
Definition at line 320 of file odb_attribute.h.
|
inlineprivateinherited |
Definition at line 314 of file odb_attribute.h.
References ODB_ATTR::FloatAttribute< T, N >::digits, ODB::Double2String(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
Referenced by ATTR_MANAGER::AddFeatureAttribute().
|
inlineprivateinherited |
Definition at line 326 of file odb_attribute.h.
References ATTR_MANAGER::GetAttrTextNumber(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
|
protectedinherited |
Definition at line 45 of file odb_attribute.cpp.
References ATTR_MANAGER::GetTextIndex(), ATTR_MANAGER::m_attrNames, and ATTR_MANAGER::m_attrNameVec.
Referenced by ATTR_MANAGER::AddFeatureAttribute().
|
privateinherited |
Definition at line 51 of file odb_attribute.cpp.
References ATTR_MANAGER::GetTextIndex(), ATTR_MANAGER::m_attrTexts, and ATTR_MANAGER::m_attrTextVec.
Referenced by ATTR_MANAGER::AttrValue2String().
|
privateinherited |
Definition at line 26 of file odb_attribute.cpp.
Referenced by ATTR_MANAGER::GetAttrNameNumber(), and ATTR_MANAGER::GetAttrTextNumber().
void COMPONENTS_MANAGER::Write | ( | std::ostream & | ost | ) | const |
Definition at line 72 of file odb_component.cpp.
References m_compList, PCB_IO_ODBPP::m_unitsStr, and ATTR_MANAGER::WriteAttributes().
|
protectedinherited |
Definition at line 94 of file odb_attribute.cpp.
References ATTR_MANAGER::WriteAttributesName(), and ATTR_MANAGER::WriteAttributesText().
Referenced by FEATURES_MANAGER::GenerateFeatureFile(), Write(), and EDA_DATA::Write().
|
protectedinherited |
Definition at line 76 of file odb_attribute.cpp.
References ATTR_MANAGER::m_attrNameVec, and name.
Referenced by ATTR_MANAGER::WriteAttributes().
|
protectedinherited |
Definition at line 85 of file odb_attribute.cpp.
References ATTR_MANAGER::m_attrTextVec, and name.
Referenced by ATTR_MANAGER::WriteAttributes().
|
privateinherited |
Definition at line 332 of file odb_attribute.h.
Referenced by ATTR_MANAGER::GetAttrNameNumber().
|
privateinherited |
Definition at line 333 of file odb_attribute.h.
Referenced by ATTR_MANAGER::GetAttrNameNumber(), and ATTR_MANAGER::WriteAttributesName().
|
privateinherited |
Definition at line 335 of file odb_attribute.h.
Referenced by ATTR_MANAGER::GetAttrTextNumber().
|
privateinherited |
Definition at line 336 of file odb_attribute.h.
Referenced by ATTR_MANAGER::GetAttrTextNumber(), and ATTR_MANAGER::WriteAttributesText().
|
private |
Definition at line 44 of file odb_component.h.
Referenced by AddComponent(), Write(), and ~COMPONENTS_MANAGER().