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

Object copy constructor.

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

Definition at line 95 of file sttybuf.cpp.

References m_devnode.

96  :
97 streambuf(src),
98 m_devnode(NULL),
99 m_baud(src.m_baud)
100 {
101  m_devnode = new i8[strlen(src.m_devnode) + 1];
102  strcpy(m_devnode, src.m_devnode);
103 }
104 
105 catch (...) {
106  close();
107 
108  delete[] m_data;
109  m_data = NULL;
110  m_devnode = NULL;
111 }
u32 m_baud
Baud rate.
Definition: sttybuf.hpp:36
char i8
8-bit signed integer
Definition: config.hpp:72
streambuf()
Object default constructor.
Definition: streambuf.cpp:20
i8 * m_devnode
Device node file (devfs)
Definition: sttybuf.hpp:34
i8 * m_data
String data.
Definition: string.hpp:42
virtual streambuf & close()
Close the stream.
Definition: streambuf.cpp:130