|
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) |
| template<typename T> | |
| std::string | AttrValue2String (ODB_ATTR::ListTextAttribute< T > a) |
| template<typename T> | |
| std::string | AttrValue2String (ODB_ATTR::IntegerAttribute< T > a) |
Static Private Member Functions | |
| template<typename Ta> | |
| static bool | isEmptyText (const Ta &v) |
| An empty TEXT value is the attribute's default and has no legal text table entry. | |
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 363 of file odb_attribute.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 370 of file odb_attribute.h.
References AttrValue2String(), GetAttrNameNumber(), isEmptyText(), and name.
Referenced by COMPONENTS_MANAGER::AddComponent(), FEATURES_MANAGER::AddPad(), FEATURES_MANAGER::AddText(), FEATURES_MANAGER::AddTrack(), FEATURES_MANAGER::addViaDrillAttributes(), FEATURES_MANAGER::AddZone(), and FEATURES_MANAGER::tagRoutFeatures().
|
inline |
Definition at line 385 of file odb_attribute.h.
References AttrValue2String(), GetAttrNameNumber(), and isEmptyText().
Referenced by FEATURES_MANAGER::addPostMachiningAttributes().
|
inlineprivate |
Definition at line 429 of file odb_attribute.h.
|
inlineprivate |
Definition at line 423 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 447 of file odb_attribute.h.
References ODB_ATTR::AttributeBase< T, AttrType >::value.
|
inlineprivate |
Definition at line 441 of file odb_attribute.h.
References GetTextIndex(), m_attrTexts, m_attrTextVec, and ODB_ATTR::AttributeBase< T, AttrType >::value.
|
inlineprivate |
Definition at line 435 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.
References index.
Referenced by AttrValue2String(), GetAttrNameNumber(), and GetAttrTextNumber().
|
inlinestaticprivate |
An empty TEXT value is the attribute's default and has no legal text table entry.
Definition at line 409 of file odb_attribute.h.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
|
protected |
Definition at line 101 of file odb_attribute.cpp.
References WriteAttributesName(), and WriteAttributesText().
Referenced by FEATURES_MANAGER::GenerateFeatureFile(), COMPONENTS_MANAGER::Write(), EDA_DATA::PACKAGE::Write(), and EDA_DATA::Write().
|
protected |
Definition at line 83 of file odb_attribute.cpp.
References m_attrNameVec, and name.
Referenced by WriteAttributes().
|
protected |
Definition at line 92 of file odb_attribute.cpp.
References m_attrTextVec, and name.
Referenced by WriteAttributes().
|
private |
Definition at line 453 of file odb_attribute.h.
Referenced by GetAttrNameNumber().
|
private |
Definition at line 454 of file odb_attribute.h.
Referenced by GetAttrNameNumber(), and WriteAttributesName().
|
private |
Definition at line 456 of file odb_attribute.h.
Referenced by AttrValue2String(), and GetAttrTextNumber().
|
private |
Definition at line 457 of file odb_attribute.h.
Referenced by AttrValue2String(), GetAttrTextNumber(), and WriteAttributesText().