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

#include <PropertyValidators.h>

Collaboration diagram for apra::PropertyValidatorRegistry:
Collaboration graph

Public Member Functions

void registerValidator (const std::string &propName, std::shared_ptr< PropertyValidator > validator)
 
ValidationResult validate (const std::string &propName, const ScalarPropertyValue &value) const
 
bool hasValidator (const std::string &propName) const
 
std::vector< ValidationResultvalidateAll (const std::map< std::string, ScalarPropertyValue > &props) const
 

Private Attributes

std::map< std::string, std::shared_ptr< PropertyValidator > > validators_
 

Member Function Documentation

◆ hasValidator()

bool apra::PropertyValidatorRegistry::hasValidator ( const std::string & propName) const
inline

◆ registerValidator()

void apra::PropertyValidatorRegistry::registerValidator ( const std::string & propName,
std::shared_ptr< PropertyValidator > validator )
inline

◆ validate()

ValidationResult apra::PropertyValidatorRegistry::validate ( const std::string & propName,
const ScalarPropertyValue & value ) const
inline
Here is the call graph for this function:
Here is the caller graph for this function:

◆ validateAll()

std::vector< ValidationResult > apra::PropertyValidatorRegistry::validateAll ( const std::map< std::string, ScalarPropertyValue > & props) const
inline
Here is the call graph for this function:

Member Data Documentation

◆ validators_

std::map<std::string, std::shared_ptr<PropertyValidator> > apra::PropertyValidatorRegistry::validators_
private

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