
|
Debug Class Reference#include <Debug.h>
List of all members.
|
Public Member Functions |
| Debug (const std::string &x) |
| Debug (int id, const std::string &x) |
| ~Debug () |
Private Attributes |
int | m_id |
std::string | m_text |
Detailed Description
Definition at line 12 of file Debug.h.
Constructor & Destructor Documentation
Debug::Debug |
( |
const std::string & |
x |
) |
[inline] |
Definition at line 15 of file Debug.h. 00015 : m_id(0), m_text(x) {
00016 fprintf(stderr, "%s\n", x.c_str());
00017 }
Debug::Debug |
( |
int |
id, |
|
|
const std::string & |
x | |
|
) |
| | [inline] |
Definition at line 18 of file Debug.h. 00018 : m_id(id), m_text(x) {
00019 fprintf(stderr, "%d> %s\n", m_id, x.c_str());
00020 }
Debug::~Debug |
( |
|
) |
[inline] |
Definition at line 21 of file Debug.h. 00021 {
00022 if (m_id)
00023 fprintf(stderr, "%d> /%s\n", m_id, m_text.c_str());
00024 else
00025 fprintf(stderr, "/%s\n", m_text.c_str());
00026 fflush(stderr);
00027 }
Member Data Documentation
The documentation for this class was generated from the following file:
|