haiku/docs/develop/servers/app_server/DebugTools.htm

51 lines
2.5 KiB
HTML
Raw Normal View History

<HTML>
<HEAD>
<TITLE>DebugTools.htm</TITLE>
<style type="text/css">
<!--
.Default {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Dutch801 Rm BT'; font-size: 12pt}
.OBOS-Function-Def {background-color: rgb(255,255,255); color: rgb(0,0,0); font-family: 'Dutch801 Rm BT'; font-size: 16pt}
.OBOS-Title {background-color: rgb(255,255,255); color: rgb(0,128,0); font-family: 'Dutch801 Rm BT'; font-size: 24pt}
.Text-Background {background-color: rgb(255,255,255)}
.GR-Default {}
.Body {margin: 0px}
.Footer {margin: 0px}
.Header {margin: 0px}
.WP-Default {text-align: left; text-indent: 0px; margin-left: 0px; margin-right: 0px}
-->
</style>
</HEAD>
<BODY BGCOLOR="#ffffff">
<DIV class="sheet" id="Sheet 1">
<P class="Body" style="margin: 0px"><span class="OBOS-Title">DebugUtils</span><span style="color: rgb(0,0,0); font-size: 24pt"></span></P>
<P class="Body" style="margin: 0px"><BR>
</P>
<P class="Body" style="margin: 0px">These functions are used to make print-based debugging easier.</P>
<P class="Body" style="margin: 0px"><BR>
<BR>
<HR>
</P>
<P class="Body" style="margin: 0px">Global Functions</P>
<P class="Body" style="margin: 0px"><BR>
BString TranslateStatusToBString(status_t value)</P>
<P class="Body" style="margin: 0px">BString TranslateColorSpaceToBString(color_space value)</P>
<P class="Body" style="margin: 0px">BString TranslateMessageCodeToBString(int32 value)</P>
<P class="Body" style="margin: 0px"><BR>
<BR>
<HR>
</P>
<P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">BString TranslateStatusToBString(status_t value)</span></P>
<P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">BString TranslateColorSpaceToBString(color_space value)</span></P>
<P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">BString TranslateMessageCodeToBString(int32 value)</span></P>
<P class="Body" style="margin: 0px"><BR>
<span class="OBOS-Function-Def">const char * TranslateStatusToString(status_t value)</span></P>
<P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">const char * TranslateColorSpaceToString(color_space value)</span></P>
<P class="Body" style="margin: 0px"><span class="OBOS-Function-Def">const char * TranslateMessageCodeToString(int32 value)</span></P>
<P class="Body" style="margin: 0px"><BR>
All of these functions are essentially big switch() statements which assign an appropriate string for the passed parameter and return the assigned string. This way the string can be printed or otherwise easily used.</P>
<DIV class="layer" id="Layer 1">
</DIV>
</DIV>
</BODY>
</HTML>