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

Object copy constructor.

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

Definition at line 50 of file filebuf.cpp.

References m_path.

51  :
52 streambuf(src),
53 m_path(NULL)
54 {
55  m_path = new i8[strlen(src.m_path) + 1];
56  strcpy(m_path, src.m_path);
57 }
58 
59 catch (...) {
60  delete[] m_data;
61  m_data = NULL;
62  m_path = NULL;
63  close();
64 }
char i8
8-bit signed integer
Definition: config.hpp:72
streambuf()
Object default constructor.
Definition: streambuf.cpp:20
i8 * m_data
String data.
Definition: string.hpp:42
i8 * m_path
Output file path.
Definition: filebuf.hpp:37
virtual streambuf & close()
Close the stream.
Definition: streambuf.cpp:130