libcsdbg  1.28
C++ exception (and generic) stack trace debug library
dictionary * csdbg::parser::add_dictionary ( const i8 nm,
const i8 path,
bool  mode 
)
virtual

Add a dictionary to the parser.

Parameters
[in]nmthe dictionary name
[in]paththe path of the dictionary data file
[in]modethe lookup mode (true for regular expression lookup)
Returns
the new dictionary (heap allocated)
Exceptions
std::bad_alloc
csdbg::exception

Definition at line 298 of file parser.cpp.

References m_dictionaries.

Referenced by on_lib_load().

299 {
300  dictionary *retval = NULL;
301  try {
302  retval = new dictionary(nm, path, mode);
303  m_dictionaries->add(retval);
304  return retval;
305  }
306 
307  catch (...) {
308  delete retval;
309  throw;
310  }
311 }
chain< dictionary > * m_dictionaries
Dictionary collection.
Definition: parser.hpp:42

+ Here is the caller graph for this function: