RSB  0.9.6
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
rsb::converter::ConverterPredicate Class Referenceabstract

Implementations of this interface can be used to perform Converter selection based on predicate evaluation. More...

#include <PredicateConverterList.h>

Inheritance diagram for rsb::converter::ConverterPredicate:
Inheritance graph
Collaboration diagram for rsb::converter::ConverterPredicate:
Collaboration graph

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. More...
 

Detailed Description

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.

Author
jmoringe

Definition at line 48 of file PredicateConverterList.h.

Constructor & Destructor Documentation

virtual rsb::converter::ConverterPredicate::~ConverterPredicate ( )
inlinevirtual

Definition at line 50 of file PredicateConverterList.h.

Member Function Documentation

virtual bool rsb::converter::ConverterPredicate::match ( const std::string &  key) const
pure virtual

Return true if the Converter associated to this predicate should be selected for key.

Parameters
keyDepending on the context, either a wire-schema or a data-type for which a converter has to be selected.
Returns
true if the associated converter should be selected; false otherwise.

Implemented in rsb::converter::AlwaysApplicable, rsb::converter::RegexConverterPredicate, and rsb::converter::TypeNameConverterPredicate.


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