![]() |
Humble Framework for SkyOS |
#include <HDebug.h>
Inheritance diagram for HDebug:

Definition at line 44 of file HDebug.h.
Public Member Functions | |
| void | Close (void) |
| Closes the log file. | |
| void | Flush (void) const |
| Flushes the log file. | |
| void | Log (StringPtr pstr) const |
| Writes printf()-style text out to a log file. | |
| void | LogHex (uint8 const *pData, uint32 uBytes) const |
| Writes a hex dump of binary data to the log file. | |
| void | LogMsg (StringPtr pstrClass, HANDLE hWnd, const s_gi_msg *pMsg) const |
| Writes out a s_gi_msg structure to a log file. | |
| void | LogV (StringPtr pstr,...) const |
| Writes printf()-style text out to a log file. | |
| bool | Open (StringPtr pstrLogFile) |
| Opens the log file. | |
| bool | IsOpen (void) const |
| Evaluates to true if the file is open. | |
Static Public Member Functions | |
| static void | Check (bool bPassed, StringPtr pstrTest, StringPtr pstrFile, uint32 uLine) |
| Checks a value and requires user's approval to continue. | |
| static HDebug & | GetLog (void) |
| Returns a static HDebug object. | |
Protected Attributes | |
| FILE * | m_pfLog |
| Ptr to stdio output file. | |
|
||||||||||||||||||||
|
|
|
|
Writes a line of text out to the log file, which is flushed after every write so that buffered information isn't lost if the application crashes unexpectedly. (Is there any other kind of crash?)
|
|
||||||||||||
|
Writes out a sequence of bytes to the log file in the format 0x0000 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Only the first Kb is dumped, even if the byte count exceeds 1KB.
|
|
||||||||||||||||
|
Writes out an s_gi_msg structure to the log file for debugging purposes. Some messages are suppressed to avoid unecessary log entries, and a few key messages—such as MSG_COMMAND—include parameter information as well.
|
|
||||||||||||
|
Writes a line of text out to the log file, which is flushed after every write so that buffered information isn't lost if the application crashes unexpectedly. (Is there any other kind of crash?)
|
|
|
This method attempts to open the requested log file for output, deleting any existing content.
|
|
|
|
|
|
|
2006.01.09-16:37