KiCad PCB EDA Suite
|
#include <odb_attribute.h>
Public Member Functions | |
ATTR_MANAGER ()=default | |
virtual | ~ATTR_MANAGER ()=default |
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::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 282 of file odb_attribute.h.
|
default |
|
virtualdefault |
|
inline |
Definition at line 289 of file odb_attribute.h.
References AttrValue2String(), and GetAttrNameNumber().
Referenced by FEATURES_MANAGER::InitFeatureList().
|
inlineprivate |
Definition at line 320 of file odb_attribute.h.
|
inlineprivate |
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 AddFeatureAttribute().
|
inlineprivate |
Definition at line 326 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 AddFeatureAttribute().
|
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 332 of file odb_attribute.h.
Referenced by GetAttrNameNumber().
|
private |
Definition at line 333 of file odb_attribute.h.
Referenced by GetAttrNameNumber(), and WriteAttributesName().
|
private |
Definition at line 335 of file odb_attribute.h.
Referenced by GetAttrTextNumber().
|
private |
Definition at line 336 of file odb_attribute.h.
Referenced by GetAttrTextNumber(), and WriteAttributesText().