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

Object copy constructor.

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

Definition at line 46 of file style.cpp.

References m_name.

46  :
47 m_name(NULL),
48 m_fgcolor(src.m_fgcolor),
49 m_bgcolor(src.m_bgcolor),
50 m_attributes(src.m_attributes)
51 {
52  m_name = new i8[strlen(src.m_name) + 1];
53  strcpy(m_name, src.m_name);
54 }
char i8
8-bit signed integer
Definition: config.hpp:72
attrset_t m_attributes
Text formatting attribute bitmask.
Definition: style.hpp:32
color_t m_bgcolor
Background color.
Definition: style.hpp:30
color_t m_fgcolor
Foreground (text) color.
Definition: style.hpp:28
i8 * m_name
Style name.
Definition: style.hpp:26