13 #ifndef _VT_LIBWRAPGEN_FILTER_H_
14 #define _VT_LIBWRAPGEN_FILTER_H_
16 #include "util/util.h"
40 bool constraint(
const std::string& file,
const std::string& funcName );
48 PatternS(
const std::string& _pattern,
bool _allowed)
49 : pattern(_pattern), allowed(_allowed) {}
54 bool operator==(
const std::string& a )
const
56 return ( fnmatch( pattern.c_str(), a.c_str(), 0 ) == 0 );
62 void trim( std::string& str )
64 size_t len = str.length();
65 if( len == 0 )
return;
67 char* c_str =
new char[len+1];
69 str.copy( c_str, len );
80 std::vector<PatternS> filtPattern;
84 #endif // _VT_LIBWRAPGEN_FILTER_H_
FilterC()
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_libwrapgen_filter.cc:27
VampirTrace http://www.tu-dresden.de/zih/vampirtrace.
Definition: vt_libwrapgen_filter.h:26