21#ifndef KICAD_PROPERTY_VALIDATOR_H 
   22#define KICAD_PROPERTY_VALIDATOR_H 
A base class for most all the KiCad significant classes used in schematics and boards.
 
Represents an error returned by a validator and contains enough data to format an error message.
 
virtual wxString Format(UNITS_PROVIDER *aUnits) const =0
 
virtual ~VALIDATION_ERROR()=default
 
std::function< VALIDATOR_RESULT(const wxAny &&, EDA_ITEM *aItem)> PROPERTY_VALIDATOR_FN
A property validator function takes in the data type of the owning property, and returns a VALIDATOR_...
 
std::optional< std::unique_ptr< VALIDATION_ERROR > > VALIDATOR_RESULT
Null optional means validation succeeded.