Logo
ApraPipes 1.0
Loading...
Searching...
No Matches
apra::RegexValidator Class Reference

#include <PropertyValidators.h>

Inheritance diagram for apra::RegexValidator:
Inheritance graph
Collaboration diagram for apra::RegexValidator:
Collaboration graph

Public Member Functions

 RegexValidator (const std::string &pattern, const std::string &description="")
 
ValidationResult validate (const std::string &propName, const ScalarPropertyValue &value) const override
 
std::string describe () const override
 
- Public Member Functions inherited from apra::PropertyValidator
virtual ~PropertyValidator ()=default
 

Private Attributes

std::string pattern_
 
std::regex regex_
 
std::string description_
 

Constructor & Destructor Documentation

◆ RegexValidator()

apra::RegexValidator::RegexValidator ( const std::string & pattern,
const std::string & description = "" )
inlineexplicit

Member Function Documentation

◆ describe()

std::string apra::RegexValidator::describe ( ) const
inlineoverridevirtual

◆ validate()

ValidationResult apra::RegexValidator::validate ( const std::string & propName,
const ScalarPropertyValue & value ) const
inlineoverridevirtual

Implements apra::PropertyValidator.

Here is the call graph for this function:

Member Data Documentation

◆ description_

std::string apra::RegexValidator::description_
private

◆ pattern_

std::string apra::RegexValidator::pattern_
private

◆ regex_

std::regex apra::RegexValidator::regex_
private

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