DebugMaster that writes to a class.
More...
List of all members.
Public Member Functions |
virtual void | addDebugInfo (std::string clientname, std::string message, std::string dataname, void *data, int datasize, int datatype, int level) |
| Add some messages and/or data.
|
| DebugMasterConsole (RTClock *clock, int textwidth=80) |
| Constructor.
|
virtual int | level () |
| Get current level.
|
virtual DebugClient * | newClient (const char *clientname) |
| Creates new DebugClient.
|
virtual void | setLevel (int level) |
| Sets a new level.
|
virtual | ~DebugMasterConsole () |
| Destructor.
|
Protected Member Functions |
virtual std::string | formatData (void *data, int datalength, int datatype, int margin, int textwidth, int doubleprec, bool doublesci) |
| Format appended data.
|
Protected Attributes |
RTClock * | _clock |
Mutex * | _mutex |
int | _textwidth |
Detailed Description
- See also:
- DebugMasterTextStream This class extends DebugMasterTextStream to write the textstream to the console.
Constructor & Destructor Documentation
LIB_EXPORT yane::Utils::DebugMasterConsole::DebugMasterConsole |
( |
RTClock * |
clock, |
|
|
int |
textwidth = 80 |
|
) |
| |
This creates the debugmasterconsole object.
- Parameters:
-
clock | Clock the current program is using. |
textwidth | Width after which a line is wrapped. |
LIB_EXPORT yane::Utils::DebugMasterConsole::~DebugMasterConsole |
( |
| ) |
[virtual] |
Member Function Documentation
LIB_EXPORT void yane::Utils::DebugMasterTextStream::addDebugInfo |
( |
std::string |
clientname, |
|
|
std::string |
message, |
|
|
std::string |
dataname, |
|
|
void * |
data, |
|
|
int |
datasize, |
|
|
int |
datatype, |
|
|
int |
level |
|
) |
| [virtual, inherited] |
Overwrites the addDebugInfo class from DebugMaster to write the data to a textstream.
- Parameters:
-
clientname | Client from which the debug message was forwarded. |
message | Debug message |
dataname | Name of the data |
data | Pointer to the data |
datasize | Size of the data |
datatype | Type of the data |
level | Debug level of the data |
Implements yane::Utils::DebugMaster.
LIB_EXPORT string yane::Utils::DebugMaster::formatData |
( |
void * |
data, |
|
|
int |
datalength, |
|
|
int |
datatype, |
|
|
int |
margin, |
|
|
int |
textwidth, |
|
|
int |
doubleprec, |
|
|
bool |
doublesci |
|
) |
| [protected, virtual, inherited] |
Formats the appended data of a debug message.
- Parameters:
-
data | Pointer to the appended data. |
datalength | Length of the data. |
datatype | Type of the data. |
margin | Space after which the message starts. |
textwidth | Width after which a line is wrapped. |
doubleprec | Precision of a double. |
doublesci | Wether fixed or scientific is used. |
- Returns:
- Formated string Mutex this object is using.
LIB_EXPORT int yane::Utils::DebugMaster::level |
( |
| ) |
[virtual, inherited] |
Get the current level
- Returns:
- Current debug level
LIB_EXPORT yane::Utils::DebugClient * yane::Utils::DebugMaster::newClient |
( |
const char * |
clientname | ) |
[virtual, inherited] |
Creates new DebugClient with current master as master.
- Parameters:
-
clientname | Name of the client which is displayed in the debug messages. |
- Returns:
- DebugClient
LIB_EXPORT void yane::Utils::DebugMaster::setLevel |
( |
int |
level | ) |
[virtual, inherited] |
Sets a new level
- Parameters:
-
Member Data Documentation
Clock this object is using.
< Width after which a line is wrapped. Textstream this object is using.