libcsdbg  1.28
C++ exception (and generic) stack trace debug library
csdbg::dictionary::dictionary ( const dictionary src)

Object copy constructor.

Parameters
[in]srcthe source object
Exceptions
std::bad_alloc

Definition at line 52 of file dictionary.cpp.

References m_name.

53  :
54 chain<string>(src),
55 m_name(NULL),
56 m_mode(src.m_mode)
57 {
58  m_name = new i8[strlen(src.m_name) + 1];
59  strcpy(m_name, src.m_name);
60 }
61 
62 catch (...) {
63  clear();
64  m_name = NULL;
65 }
virtual chain & clear()
bool m_mode
Lookup mode.
Definition: dictionary.hpp:40
char i8
8-bit signed integer
Definition: config.hpp:72
i8 * m_name
Dictionary name.
Definition: dictionary.hpp:38