RSB
0.7.0
|
Objects of this class select Converter s by matching the query wire-schema or data-type against a sotred reqular expression. More...
#include <RegexConverterPredicate.h>
Public Member Functions | |
RegexConverterPredicate (const std::string ®ex) | |
Construct a new RegexConverterPredicate that matches queries against the regular expression regex. | |
RegexConverterPredicate (const boost::regex ®ex) | |
Construct a new RegexConverterPredicate that matches queries against the regular expression regex. | |
bool | match (const std::string &key) const |
Return true if the Converter associated to this predicate should be selected for key. | |
Public Member Functions inherited from rsb::converter::ConverterPredicate | |
virtual | ~ConverterPredicate () |
Private Member Functions | |
std::string | getClassName () const |
void | printContents (std::ostream &) const |
Private Attributes | |
boost::regex | regex |
Objects of this class select Converter s by matching the query wire-schema or data-type against a sotred reqular expression.
Definition at line 43 of file RegexConverterPredicate.h.
rsb::converter::RegexConverterPredicate::RegexConverterPredicate | ( | const std::string & | regex | ) |
Construct a new RegexConverterPredicate that matches queries against the regular expression regex.
regex | The regular expression the new predicate should use. |
Definition at line 35 of file RegexConverterPredicate.cpp.
rsb::converter::RegexConverterPredicate::RegexConverterPredicate | ( | const boost::regex & | regex | ) |
Construct a new RegexConverterPredicate that matches queries against the regular expression regex.
regex | The regular expression the new predicate should use. |
Definition at line 39 of file RegexConverterPredicate.cpp.
|
private |
Definition at line 47 of file RegexConverterPredicate.cpp.
|
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. Implements rsb::converter::ConverterPredicate.
Definition at line 43 of file RegexConverterPredicate.cpp.
References regex.
|
private |
Definition at line 51 of file RegexConverterPredicate.cpp.
References regex.
|
private |
Definition at line 65 of file RegexConverterPredicate.h.
Referenced by match(), and printContents().