92 const wxString&
name = aNetClass->GetName();
119 NETCLASS_MAP::iterator found =
m_NetClasses.find( aNetName );
123 std::shared_ptr<NETCLASS> netclass = found->second;
128 return NETCLASSPTR();
137 NETCLASS_MAP::const_iterator found =
m_NetClasses.find( aName );
140 return NETCLASSPTR();
142 return found->second;
148 void NETCLASS::Show(
int nestLevel, std::ostream& os )
const 153 os <<
'<' <<
GetClass().Lower().mb_str() <<
">\n";
162 os <<
"</" <<
GetClass().Lower().mb_str() <<
">\n";
const int DEFAULT_WIRE_WIDTH
void SetDiffPairWidth(int aSize)
NETCLASSPTR Find(const wxString &aName) const
Search this container for a NETCLASS given by aName.
The Cairo implementation of the graphics abstraction layer.
wxString GetClass() const
Implementation of conversion functions that require both schematic and board internal units.
const int DEFAULT_LINE_STYLE
const int DEFAULT_VIA_DIAMETER
void SetLineStyle(int aStyle)
void SetTrackWidth(int aWidth)
void SetWireWidth(int aWidth)
void SetViaDrill(int aSize)
This file contains miscellaneous commonly used macros and functions.
void SetDiffPairGap(int aSize)
#define TO_UTF8(wxstring)
Convert a wxString to a UTF8 encoded C string for all wxWidgets build modes.
NETCLASS(const wxString &aName)
Create a NETCLASS instance with aName.
static const char Default[]
the name of the default NETCLASS
void SetClearance(int aClearance)
const int DEFAULT_UVIA_DIAMETER
const int DEFAULT_CLEARANCE
const int DEFAULT_DIFF_PAIR_VIAGAP
void SetSchematicColor(COLOR4D aColor)
const int DEFAULT_DIFF_PAIR_GAP
void SetuViaDiameter(int aSize)
NETCLASSPTR Remove(const wxString &aNetName)
Remove a NETCLASS from this container but does not destroy/delete it.
void SetBusWidth(int aWidth)
void SetDiffPairViaGap(int aSize)
const int DEFAULT_VIA_DRILL
bool Add(const NETCLASSPTR &aNetclass)
Add aNetclass and puts it into this NETCLASSES container.
void SetuViaDrill(int aSize)
const int DEFAULT_DIFF_PAIR_WIDTH
const int DEFAULT_TRACK_WIDTH
const int DEFAULT_BUS_WIDTH
constexpr int SchMils2iu(double mils)
STRINGSET::const_iterator const_iterator
void SetViaDiameter(int aDia)
NETCLASSPTR GetDefault() const
NETCLASS_MAP m_NetClasses
const int DEFAULT_UVIA_DRILL
constexpr int PcbMm2iu(double mm)
A color representation with 4 components: red, green, blue, alpha.