|
Field3D
|
Contains functions for pattern matching field name/attributes. More...
#include <vector>#include <boost/foreach.hpp>#include <boost/tokenizer.hpp>#include <boost/thread/mutex.hpp>#include "Field.h"#include "ns.h"Go to the source code of this file.
Enumerations | |
| enum | MatchFlags { MatchNoFlags = 0 , MatchEmptyPattern = 1 << 0 } |
Functions | |
| bool | match (const FieldRes *f, const std::string &patterns, const MatchFlags flags=MatchEmptyPattern) |
| bool | match (const FieldRes *f, const std::vector< std::string > &patterns, const MatchFlags flags=MatchEmptyPattern) |
| Matches a field's name and attribute against a set of patterns. More... | |
| bool | match (const std::string &attribute, const std::string &patterns, const MatchFlags flags=MatchEmptyPattern) |
| bool | match (const std::string &attribute, const std::vector< std::string > &patterns, const MatchFlags flags=MatchEmptyPattern) |
| Matches an <attribute> string against a set of patterns. More... | |
| bool | match (const std::string &name, const std::string &attribute, const std::string &patterns, const MatchFlags flags=MatchEmptyPattern) |
| bool | match (const std::string &name, const std::string &attribute, const std::vector< std::string > &patterns, const MatchFlags flags=MatchEmptyPattern) |
| Matches a <name>:<attribute> string against a set of patterns. More... | |
| std::vector< std::string > | split (const std::string &s) |
| Splits a string into a vector of strings, using ',' as the separator. More... | |
| std::vector< std::string > | split (const std::string &s, const std::string &separatorChars) |
| Splits a string into a vector of strings, given separator characters. More... | |
Contains functions for pattern matching field name/attributes.
Definition in file PatternMatch.h.
| enum MatchFlags |
| Enumerator | |
|---|---|
| MatchNoFlags | |
| MatchEmptyPattern | |
Definition at line 64 of file PatternMatch.h.
| std::vector< std::string > split | ( | const std::string & | s | ) |
Splits a string into a vector of strings, using ',' as the separator.
Definition at line 75 of file PatternMatch.cpp.
References split().
| std::vector< std::string > split | ( | const std::string & | s, |
| const std::string & | separatorChars | ||
| ) |
Splits a string into a vector of strings, given separator characters.
Definition at line 83 of file PatternMatch.cpp.
| bool match | ( | const std::string & | name, |
| const std::string & | attribute, | ||
| const std::vector< std::string > & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Matches a <name>:<attribute> string against a set of patterns.
Definition at line 102 of file PatternMatch.cpp.
References MatchEmptyPattern.
Referenced by Sparse::CheckAllEqual< Data_T >::check(), and match().
| bool match | ( | const std::string & | name, |
| const std::string & | attribute, | ||
| const std::string & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Definition at line 153 of file PatternMatch.cpp.
| bool match | ( | const std::string & | attribute, |
| const std::vector< std::string > & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Matches an <attribute> string against a set of patterns.
Definition at line 163 of file PatternMatch.cpp.
References MatchEmptyPattern.
| bool match | ( | const std::string & | attribute, |
| const std::string & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
| bool match | ( | const FieldRes * | f, |
| const std::vector< std::string > & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Matches a field's name and attribute against a set of patterns.
Definition at line 217 of file PatternMatch.cpp.
References FieldBase::attribute, match(), and FieldBase::name.
| bool match | ( | const FieldRes * | f, |
| const std::string & | patterns, | ||
| const MatchFlags | flags = MatchEmptyPattern |
||
| ) |
Definition at line 226 of file PatternMatch.cpp.
References FieldBase::attribute, match(), FieldBase::name, and split().