RSB
0.7.0
|
Implementations of this interface can be used to perform Converter selection based on predicate evaluation. More...
#include <PredicateConverterList.h>
Public Member Functions | |
virtual | ~ConverterPredicate () |
virtual bool | match (const std::string &key) const =0 |
Return true if the Converter associated to this predicate should be selected for key. |
Implementations of this interface can be used to perform Converter selection based on predicate evaluation.
Depending on the context, the match method of predicates is invoked with either a wire-schema string or a data-type string in order to decide whether an associated converter should be selected.
Definition at line 48 of file PredicateConverterList.h.
|
inlinevirtual |
Definition at line 50 of file PredicateConverterList.h.
|
pure virtual |
Return true
if the Converter associated to this predicate should be selected for key.
key | Depending on the context, either a wire-schema or a data-type for which a converter has to be selected. |
true
if the associated converter should be selected; false
otherwise. Implemented in rsb::converter::AlwaysApplicable, rsb::converter::RegexConverterPredicate, and rsb::converter::TypeNameConverterPredicate.