KiCad PCB EDA Suite
|
#include <odb_eda_data.h>
Classes | |
class | FEATURE_ID |
class | NET |
class | PACKAGE |
class | PIN |
class | SUB_NET |
class | SUB_NET_PLANE |
class | SUB_NET_TOEPRINT |
class | SUB_NET_TRACE |
class | SUB_NET_VIA |
Public Member Functions | |
EDA_DATA () | |
void | Write (std::ostream &ost) const |
size_t | GetLyrIdx (const wxString &aLayerName) |
std::vector< std::shared_ptr< FOOTPRINT > > | GetEdaFootprints () const |
void | AddNET (const NETINFO_ITEM *aNet) |
NET & | GetNet (size_t aNetcode) |
void | AddPackage (const FOOTPRINT *aFp) |
const PACKAGE & | GetPackage (size_t aHash) 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::map< size_t, NET > | nets_map |
std::list< const NET * > | nets |
std::map< size_t, PACKAGE > | packages_map |
std::list< const PACKAGE * > | packages |
std::map< wxString, size_t > | layers_map |
std::vector< wxString > | layers |
std::vector< std::shared_ptr< FOOTPRINT > > | m_eda_footprints |
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_eda_data.h.
EDA_DATA::EDA_DATA | ( | ) |
Definition at line 32 of file odb_eda_data.cpp.
|
inlineinherited |
Definition at line 289 of file odb_attribute.h.
References ATTR_MANAGER::AttrValue2String(), and ATTR_MANAGER::GetAttrNameNumber().
Referenced by FEATURES_MANAGER::InitFeatureList().
void EDA_DATA::AddNET | ( | const NETINFO_ITEM * | aNet | ) |
Definition at line 57 of file odb_eda_data.cpp.
References NETINFO_ITEM::GetNetCode(), NETINFO_ITEM::GetNetname(), nets, and nets_map.
Referenced by ODB_STEP_ENTITY::InitEdaData().
void EDA_DATA::AddPackage | ( | const FOOTPRINT * | aFp | ) |
Definition at line 196 of file odb_eda_data.cpp.
References EDA_DATA::PACKAGE::AddPin(), ANGLE_0, B_CrtYd, FOOTPRINT::Clone(), F_CrtYd, F_Cu, PAD::GetCenter(), BOX2< Vec >::GetEnd(), BOX2< Vec >::GetPosition(), hash_fp_item(), HASH_POS, m_eda_footprints, EDA_DATA::PACKAGE::m_pitch, EDA_DATA::PACKAGE::m_pkgOutlines, EDA_DATA::PACKAGE::m_xmax, EDA_DATA::PACKAGE::m_xmin, EDA_DATA::PACKAGE::m_ymax, EDA_DATA::PACKAGE::m_ymin, EDA_IU_SCALE::mmToIU(), SHAPE_POLY_SET::OutlineCount(), packages, packages_map, pad, pcbIUScale, SHAPE_POLY_SET::Polygon(), REL_COORD, VECTOR2< T >::x, and VECTOR2< T >::y.
Referenced by ODB_STEP_ENTITY::InitEdaData().
|
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().
|
inline |
Definition at line 40 of file odb_eda_data.h.
References m_eda_footprints.
Referenced by ODB_STEP_ENTITY::InitEdaData().
size_t EDA_DATA::GetLyrIdx | ( | const wxString & | aLayerName | ) |
Definition at line 151 of file odb_eda_data.cpp.
References layers, and layers_map.
|
inline |
Definition at line 172 of file odb_eda_data.h.
References nets_map.
Referenced by ODB_STEP_ENTITY::InitEdaData().
|
inline |
Definition at line 253 of file odb_eda_data.h.
References packages_map.
Referenced by ODB_STEP_ENTITY::InitEdaData().
|
privateinherited |
Definition at line 26 of file odb_attribute.cpp.
Referenced by ATTR_MANAGER::GetAttrNameNumber(), and ATTR_MANAGER::GetAttrTextNumber().
void EDA_DATA::Write | ( | std::ostream & | ost | ) | const |
Definition at line 396 of file odb_eda_data.cpp.
References GetBuildVersion(), layers, PCB_IO_ODBPP::m_unitsStr, nets, packages, TO_UTF8, and ATTR_MANAGER::WriteAttributes().
Referenced by ODB_STEP_ENTITY::GenerateEdaFiles().
|
protectedinherited |
Definition at line 94 of file odb_attribute.cpp.
References ATTR_MANAGER::WriteAttributesName(), and ATTR_MANAGER::WriteAttributesText().
Referenced by FEATURES_MANAGER::GenerateFeatureFile(), COMPONENTS_MANAGER::Write(), and 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().
|
private |
Definition at line 263 of file odb_eda_data.h.
Referenced by GetLyrIdx(), and Write().
|
private |
Definition at line 262 of file odb_eda_data.h.
Referenced by GetLyrIdx().
|
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 264 of file odb_eda_data.h.
Referenced by AddPackage(), and GetEdaFootprints().
|
private |
Definition at line 257 of file odb_eda_data.h.
Referenced by AddNET(), EDA_DATA(), and Write().
|
private |
Definition at line 256 of file odb_eda_data.h.
Referenced by AddNET(), EDA_DATA(), and GetNet().
|
private |
Definition at line 260 of file odb_eda_data.h.
Referenced by AddPackage(), and Write().
|
private |
Definition at line 259 of file odb_eda_data.h.
Referenced by AddPackage(), and GetPackage().