|
KiCad PCB EDA Suite
|
#include <odb_attribute.h>
Public Member Functions | |
| ATTR_MANAGER ()=default | |
| virtual | ~ATTR_MANAGER ()=default |
| template<typename Tr, typename Ta> | |
| void | AddSystemAttribute (Tr &r, Ta v) |
| template<typename Tr, typename Ta> | |
| void | AddUserDefAttribute (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::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 300 of file odb_attribute.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 307 of file odb_attribute.h.
References AttrValue2String(), GetAttrNameNumber(), and name.
Referenced by COMPONENTS_MANAGER::AddComponent(), and FEATURES_MANAGER::InitFeatureList().
|
inline |
Definition at line 319 of file odb_attribute.h.
References AttrValue2String(), and GetAttrNameNumber().
|
inlineprivate |
Definition at line 350 of file odb_attribute.h.
|
inlineprivate |
Definition at line 344 of file odb_attribute.h.
References ODB_ATTR::FloatAttribute< T, N >::digits, ODB::Double2String(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
|
inlineprivate |
Definition at line 356 of file odb_attribute.h.
References GetAttrTextNumber(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
|
protected |
Definition at line 45 of file odb_attribute.cpp.
References GetTextIndex(), m_attrNames, and m_attrNameVec.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
|
private |
Definition at line 51 of file odb_attribute.cpp.
References GetTextIndex(), m_attrTexts, and m_attrTextVec.
Referenced by AttrValue2String().
|
private |
Definition at line 26 of file odb_attribute.cpp.
Referenced by GetAttrNameNumber(), and GetAttrTextNumber().
|
protected |
Definition at line 94 of file odb_attribute.cpp.
References WriteAttributesName(), and WriteAttributesText().
Referenced by FEATURES_MANAGER::GenerateFeatureFile(), COMPONENTS_MANAGER::Write(), and EDA_DATA::Write().
|
protected |
Definition at line 76 of file odb_attribute.cpp.
References m_attrNameVec, and name.
Referenced by WriteAttributes().
|
protected |
Definition at line 85 of file odb_attribute.cpp.
References m_attrTextVec, and name.
Referenced by WriteAttributes().
|
private |
Definition at line 362 of file odb_attribute.h.
Referenced by GetAttrNameNumber().
|
private |
Definition at line 363 of file odb_attribute.h.
Referenced by GetAttrNameNumber(), and WriteAttributesName().
|
private |
Definition at line 365 of file odb_attribute.h.
Referenced by GetAttrTextNumber().
|
private |
Definition at line 366 of file odb_attribute.h.
Referenced by GetAttrTextNumber(), and WriteAttributesText().