| 
    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 | 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::list< ODB_COMPONENT > | m_compList | 
| std::set< wxString > | m_usedCompNames | 
| 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 33 of file odb_component.h.
      
  | 
  default | 
      
  | 
  inlinevirtual | 
Definition at line 38 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 ATTR_MANAGER::AddSystemAttribute(), ODB::AddXY(), ANGLE_0, ANGLE_360, ODB::Double2String(), FP_SMD, FP_THROUGH_HOLE, FOOTPRINT::GetAttributes(), FOOTPRINT::GetFields(), FOOTPRINT::GetFPID(), LIB_ID::GetFullLibraryName(), LIB_ID::GetLibItemName(), FOOTPRINT::GetOrientation(), FOOTPRINT::GetPosition(), FOOTPRINT::GetReference(), FOOTPRINT::IsDNP(), FOOTPRINT::IsFlipped(), m_compList, EDA_DATA::PACKAGE::m_index, m_usedCompNames, ODB_ATTR::MT_SMD, ODB_ATTR::OTHER, REFERENCE, ODB::RemoveWhitespace(), ODB_ATTR::THT, and UTF8::wx_str().
      
  | 
  inlineinherited | 
Definition at line 307 of file odb_attribute.h.
References AttrValue2String(), GetAttrNameNumber(), and name.
Referenced by COMPONENTS_MANAGER::AddComponent(), and FEATURES_MANAGER::InitFeatureList().
      
  | 
  inlineinherited | 
Definition at line 319 of file odb_attribute.h.
References AttrValue2String(), and GetAttrNameNumber().
      
  | 
  inlineprivateinherited | 
Definition at line 350 of file odb_attribute.h.
      
  | 
  inlineprivateinherited | 
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().
      
  | 
  inlineprivateinherited | 
Definition at line 356 of file odb_attribute.h.
References GetAttrTextNumber(), and ODB_ATTR::AttributeBase< T, AttrType >::value.
      
  | 
  protectedinherited | 
Definition at line 45 of file odb_attribute.cpp.
References GetTextIndex(), m_attrNames, and m_attrNameVec.
Referenced by AddSystemAttribute(), and AddUserDefAttribute().
      
  | 
  privateinherited | 
Definition at line 51 of file odb_attribute.cpp.
References GetTextIndex(), m_attrTexts, and m_attrTextVec.
Referenced by AttrValue2String().
      
  | 
  privateinherited | 
Definition at line 26 of file odb_attribute.cpp.
Referenced by GetAttrNameNumber(), and GetAttrTextNumber().
| void COMPONENTS_MANAGER::Write | ( | std::ostream & | ost | ) | const | 
Definition at line 111 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 WriteAttributesName(), and WriteAttributesText().
Referenced by FEATURES_MANAGER::GenerateFeatureFile(), COMPONENTS_MANAGER::Write(), and EDA_DATA::Write().
      
  | 
  protectedinherited | 
Definition at line 76 of file odb_attribute.cpp.
References m_attrNameVec, and name.
Referenced by WriteAttributes().
      
  | 
  protectedinherited | 
Definition at line 85 of file odb_attribute.cpp.
References m_attrTextVec, and name.
Referenced by WriteAttributes().
      
  | 
  privateinherited | 
Definition at line 362 of file odb_attribute.h.
Referenced by GetAttrNameNumber().
      
  | 
  privateinherited | 
Definition at line 363 of file odb_attribute.h.
Referenced by GetAttrNameNumber(), and WriteAttributesName().
      
  | 
  privateinherited | 
Definition at line 365 of file odb_attribute.h.
Referenced by GetAttrTextNumber().
      
  | 
  privateinherited | 
Definition at line 366 of file odb_attribute.h.
Referenced by GetAttrTextNumber(), and WriteAttributesText().
      
  | 
  private | 
Definition at line 45 of file odb_component.h.
Referenced by AddComponent(), Write(), and ~COMPONENTS_MANAGER().
      
  | 
  private | 
Definition at line 46 of file odb_component.h.
Referenced by AddComponent().