KiCad PCB EDA Suite
Loading...
Searching...
No Matches
SCH_NETNAME_VALIDATOR Class Reference

#include <sch_validators.h>

Inheritance diagram for SCH_NETNAME_VALIDATOR:
NETNAME_VALIDATOR

Public Member Functions

 SCH_NETNAME_VALIDATOR (wxString *aVal=nullptr)
 
 SCH_NETNAME_VALIDATOR (bool aAllowSpaces)
 
 SCH_NETNAME_VALIDATOR (const SCH_NETNAME_VALIDATOR &aValidator)
 
virtual wxObject * Clone () const override
 
virtual bool TransferToWindow () override
 
virtual bool TransferFromWindow () override
 
virtual bool Validate (wxWindow *aParent) override
 

Protected Member Functions

wxString IsValid (const wxString &aVal) const override
 

Private Attributes

bool m_allowSpaces
 

Static Private Attributes

static wxRegEx m_busGroupRegex
 

Detailed Description

Definition at line 39 of file sch_validators.h.

Constructor & Destructor Documentation

◆ SCH_NETNAME_VALIDATOR() [1/3]

SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR ( wxString *  aVal = nullptr)
inline

Definition at line 42 of file sch_validators.h.

◆ SCH_NETNAME_VALIDATOR() [2/3]

SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR ( bool  aAllowSpaces)
inline

Definition at line 46 of file sch_validators.h.

◆ SCH_NETNAME_VALIDATOR() [3/3]

SCH_NETNAME_VALIDATOR::SCH_NETNAME_VALIDATOR ( const SCH_NETNAME_VALIDATOR aValidator)
inline

Definition at line 50 of file sch_validators.h.

Member Function Documentation

◆ Clone()

virtual wxObject * SCH_NETNAME_VALIDATOR::Clone ( ) const
inlineoverridevirtual

Reimplemented from NETNAME_VALIDATOR.

Definition at line 54 of file sch_validators.h.

◆ IsValid()

wxString SCH_NETNAME_VALIDATOR::IsValid ( const wxString &  aVal) const
overrideprotected
Returns
the error message if the contents of aVal are invalid.

Definition at line 42 of file sch_validators.cpp.

References _, NETNAME_VALIDATOR::IsValid(), m_busGroupRegex, NET_SETTINGS::ParseBusGroup(), and NET_SETTINGS::ParseBusVector().

◆ TransferFromWindow()

virtual bool NETNAME_VALIDATOR::TransferFromWindow ( )
inlineoverridevirtualinherited

Definition at line 180 of file validators.h.

◆ TransferToWindow()

virtual bool NETNAME_VALIDATOR::TransferToWindow ( )
inlineoverridevirtualinherited

Definition at line 178 of file validators.h.

◆ Validate()

bool NETNAME_VALIDATOR::Validate ( wxWindow *  aParent)
overridevirtualinherited

Definition at line 266 of file validators.cpp.

References _, NETNAME_VALIDATOR::IsValid(), and text.

Member Data Documentation

◆ m_allowSpaces

bool NETNAME_VALIDATOR::m_allowSpaces
privateinherited

Definition at line 189 of file validators.h.

Referenced by NETNAME_VALIDATOR::IsValid().

◆ m_busGroupRegex

wxRegEx SCH_NETNAME_VALIDATOR::m_busGroupRegex
staticprivate

Definition at line 61 of file sch_validators.h.

Referenced by IsValid().


The documentation for this class was generated from the following files: