libcsdbg  1.28
C++ exception (and generic) stack trace debug library
filter * csdbg::tracer::add_filter ( const i8 expr,
bool  icase,
bool  mode = true 
)
virtual

Register a filter.

Parameters
[in]exprthe filter expression
[in]icasetrue to ignore case on filtering, false otherwise
[in]modetrue to create a symbol filter, false to filter modules
Returns
the new filter
Exceptions
std::bad_alloc
csdbg::exception

Definition at line 1044 of file tracer.cpp.

References m_filters.

1045 {
1046  filter *retval = NULL;
1047  try {
1048  retval = new filter(expr, icase, mode);
1049  m_filters->add(retval);
1050  return retval;
1051  }
1052 
1053  catch (...) {
1054  delete retval;
1055  throw;
1056  }
1057 }
chain< filter > * m_filters
Instrumentation filters.
Definition: tracer.hpp:51