26 #ifndef CLASS_NETCLASS_H 27 #define CLASS_NETCLASS_H 49 static const char Default[];
62 return wxT(
"NETCLASS" );
65 const wxString&
GetName()
const {
return m_Name; }
66 void SetName(
const wxString& aName ) { m_Name = aName; }
73 return m_Members.size();
89 void Add(
const wxString& aNetname )
91 m_Members.insert( aNetname );
107 m_Members.erase( aName );
115 m_Members.erase( aName );
175 void Show(
int nestLevel, std::ostream& os )
const;
230 m_NetClasses.clear();
247 return m_NetClasses.size();
260 return m_default.get();
270 bool Add(
const NETCLASSPTR& aNetclass );
279 NETCLASSPTR Remove(
const wxString& aNetName );
287 NETCLASSPTR Find(
const wxString& aName )
const;
297 #endif // CLASS_NETCLASS_H An abstract class from which implementation specific LINE_READERs may be derived to read single lines...
void SetDiffPairWidth(int aSize)
int GetDiffPairGap() const
wxString GetClass() const
bool HasDiffPairViaGap() const
const wxString & GetName() const
OPT< int > m_diffPairViaGap
NETCLASS_MAP & NetClasses()
Provide public access to m_NetClasses so it gets swigged.
STRINGSET & NetNames()
for SWIG
const_iterator end() const
OPT< int > m_TrackWidth
track width used to route NETs in this NETCLASS
unsigned GetCount() const
Return the number of nets in this NETCLASS, i.e.
OPT< int > m_uViaDia
microvia diameter
void SetDescription(const wxString &aDesc)
void SetLineStyle(int aStyle)
COLOR4D m_PcbColor
Optional color override for this netclass (PCB context)
OPT< int > m_diffPairWidth
void SetTrackWidth(int aWidth)
void SetWireWidth(int aWidth)
OPT< int > m_uViaDrill
microvia drill hole diameter
bool HasClearance() const
bool HasuViaDrill() const
NETCLASS_MAP::const_iterator const_iterator
void SetViaDrill(int aSize)
bool HasDiffPairGap() const
STRINGSET m_Members
names of NET members of this class
std::set< std::string > STRINGSET
void SetPcbColor(const COLOR4D &aColor)
void SetName(const wxString &aName)
OPT< int > m_ViaDia
via diameter
void SetDiffPairGap(int aSize)
COLOR4D GetSchematicColor() const
NETCLASS_MAP::iterator iterator
OPT< int > m_Clearance
The units on these parameters is Internal Units (1 nm)
STRINGSET::iterator iterator
int GetTrackWidth() const
A container for NETCLASS instances.
bool HasDiffPairWidth() const
int GetDiffPairViaGap() const
OPT< int > m_ViaDrill
via drill hole diameter
void SetClearance(int aClearance)
A collection of nets and the parameters used to route or test these nets.
#define DECL_MAP_FOR_SWIG(TypeName, KeyType, ValueType)
void SetSchematicColor(COLOR4D aColor)
COLOR4D GetPcbColor() const
#define DECL_SET_FOR_SWIG(TypeName, MemberType)
int GetuViaDiameter() const
void SetuViaDiameter(int aSize)
int GetDiffPairWidth() const
NETCLASS * GetDefaultPtr() const
void SetBusWidth(int aWidth)
void SetDiffPairViaGap(int aSize)
bool HasuViaDiameter() const
const_iterator end() const
void Clear()
Empties the collection of members.
void Remove(iterator aName)
Remove NET aName from the collection of members.
void Clear()
Destroy any contained NETCLASS instances except the default one, and clears any members from the defa...
void SetuViaDrill(int aSize)
Information pertinent to a Pcbnew printed circuit board.
wxString m_Description
what this NETCLASS is for.
wxString m_Name
Name of the net class.
void Remove(const wxString &aName)
Remove NET aName from the collection of members.
int GetViaDiameter() const
const_iterator begin() const
unsigned GetCount() const
const wxString & GetDescription() const
This file contains macros just for swig binding.
STRINGSET::const_iterator const_iterator
void SetViaDiameter(int aDia)
NETCLASSPTR GetDefault() const
#define DECL_SPTR_FOR_SWIG(TypeName, MemberType)
const_iterator begin() const
NETCLASS_MAP m_NetClasses
bool HasTrackWidth() const
Container for design settings for a BOARD object.
void Add(const wxString &aNetname)
Adds aNetname to this NETCLASS if it is not already in this NETCLASS.
A color representation with 4 components: red, green, blue, alpha.
bool HasViaDiameter() const