KiCad PCB EDA Suite
EDA_PATTERN_MATCH Class Referenceabstract

#include <eda_pattern_match.h>

Inheritance diagram for EDA_PATTERN_MATCH:
EDA_PATTERN_MATCH_REGEX EDA_PATTERN_MATCH_SUBSTR EDA_PATTERN_MATCH_WILDCARD

Public Member Functions

virtual ~EDA_PATTERN_MATCH ()
 
virtual bool SetPattern (const wxString &aPattern)=0
 Set the pattern against which candidates will be matched. More...
 
virtual int Find (const wxString &aCandidate) const =0
 Return the location of a match iff a given candidate string matches the set pattern. More...
 

Detailed Description

Definition at line 44 of file eda_pattern_match.h.

Constructor & Destructor Documentation

virtual EDA_PATTERN_MATCH::~EDA_PATTERN_MATCH ( )
inlinevirtual

Definition at line 47 of file eda_pattern_match.h.

47 {}

Member Function Documentation

virtual int EDA_PATTERN_MATCH::Find ( const wxString &  aCandidate) const
pure virtual

Return the location of a match iff a given candidate string matches the set pattern.

Otherwise, return EDA_PATTERN_NOT_FOUND.

Implemented in EDA_PATTERN_MATCH_WILDCARD, EDA_PATTERN_MATCH_REGEX, and EDA_PATTERN_MATCH_SUBSTR.

virtual bool EDA_PATTERN_MATCH::SetPattern ( const wxString &  aPattern)
pure virtual

Set the pattern against which candidates will be matched.

If the pattern can not be processed, returns false.

Implemented in EDA_PATTERN_MATCH_WILDCARD, EDA_PATTERN_MATCH_REGEX, and EDA_PATTERN_MATCH_SUBSTR.


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