Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
FM301KeyMatcher Class Reference
Inheritance diagram for FM301KeyMatcher:
Inheritance graph
[legend]
Collaboration diagram for FM301KeyMatcher:
Collaboration graph
[legend]

Public Member Functions

 FM301KeyMatcher (const std::string &key="", const std::string &standardName="", const std::string &longName="")
 
 FM301KeyMatcher (const char *key, const char *standardName="", const char *longName="")
 
 FM301KeyMatcher (const FM301KeyMatcher &matcher)
 
void setStandardName (const std::string &name)
 
const std::string & getStandardName () const
 
void setLongName (const std::string &name)
 
const std::string & getLongName () const
 
- Public Member Functions inherited from StringMatcher
 StringMatcher (const std::string &s="")
 
 StringMatcher (const char *s)
 
 StringMatcher (const StringMatcher &matcher)
 
bool empty () const
 
void set (const std::string &s)
 Assign a string – which may be a literal or a regular expression.
 
StringMatcheroperator= (const std::string &s)
 
StringMatcheroperator= (const StringMatcher &s)
 
bool operator== (const std::string &s) const
 
bool operator== (const char *s) const
 
bool operator== (const StringMatcher &m) const
 
bool test (const std::string &s) const
 Test with direct string matching or regExp, if defined.
 
const std::string & getType () const
 

Protected Attributes

std::string standard_name
 
std::string long_name
 
- Protected Attributes inherited from StringMatcher
bool isRegExp
 Checks if the key conforms to ODIM convention: DBZH, VRAD, etc. (capital letters, underscores)
 
- Protected Attributes inherited from RegExp
regex_t regExpBinary
 
std::string regExpString
 
result_t writableResult
 
const std::vector< std::string > & result
 Public interface for the result.
 
int flags
 

Additional Inherited Members

- Public Attributes inherited from StringMatcher
const std::string & value
 A visible reference to the current string / regExp.
 
- Static Public Attributes inherited from StringMatcher
static const std::string regExpSpecialChars = "^.?*[]()$"
 
- Protected Types inherited from RegExp
typedef std::vector< std::string > result_t
 Native result type, also for external result object.
 
- Protected Member Functions inherited from RegExp
 RegExp (const std::string &str="", int flags=REG_EXTENDED)
 Constructor.
 
 RegExp (const RegExp &r)
 Copy constructor.
 
virtual ~RegExp ()
 Destructor.
 
RegExpoperator= (const std::string &str)
 
RegExpoperator= (const RegExp &r)
 
bool setExpression (const std::string &str, int flags=REG_EXTENDED)
 
void clear ()
 
bool isSet () const
 
void reset ()
 
bool empty () const
 Returns true, if expression is empty.
 
void setFlags (int flags)
 
bool test (const std::string &str) const
 Tests if the regular expression accepts the given std::string.
 
template<class T >
int execute (const std::string &str, T &result) const
 Apply regexp matching in a string. Returns 0 on success, REG_NOMATCH on failure.
 
int execute (const std::string &str) const
 Variant using internal vector.
 
void replace (const std::string &src, const std::string &replacement, std::string &dst) const
 Replaces std::string segment matching search regexp to the given std::string.
 
void replace (const std::string &src, const std::string &replacement, std::ostream &sstr) const
 
const std::string & toStr () const
 
- Static Protected Member Functions inherited from RegExp
static void replace (const std::string &src, const std::string &regexp, const std::string &replacement, std::string &dst)
 Replaces std::string segment matching search to the given std::string.
 

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