44 #ifndef _INCLUDED_PatternMatch_H_ 45 #define _INCLUDED_PatternMatch_H_ 50 #include <boost/foreach.hpp> 51 #include <boost/tokenizer.hpp> 52 #include <boost/thread/mutex.hpp> 72 std::vector<std::string>
73 split(
const std::string &s);
78 std::vector<std::string>
79 split(
const std::string &s,
const std::string &separatorChars);
85 match(
const std::string &name,
const std::string &attribute,
86 const std::vector<std::string> &patterns,
89 match(
const std::string &name,
const std::string &attribute,
90 const std::string &patterns,
97 match(
const std::string &attribute,
const std::vector<std::string> &patterns,
100 match(
const std::string &attribute,
const std::string &patterns,
107 match(
const FieldRes *f,
const std::vector<std::string> &patterns,
119 #endif // Include guard #define FIELD3D_NAMESPACE_HEADER_CLOSE
Contains Field, WritableField and ResizableField classes.
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.
std::vector< std::string > split(const std::string &s)
Splits a string into a vector of strings, using ',' as the separator.