blob: 49b02afa457587991fd979400fcaa5dd265a30f6 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>PVLoggerLayout class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.2.18 -->
<center>
<a class="qindex" href="index.html">Main Page</a> &nbsp; <a class="qindex" href="modules.html">Modules</a> &nbsp; <a class="qindex" href="hierarchy.html">Class Hierarchy</a> &nbsp; <a class="qindex" href="annotated.html">Data Structures</a> &nbsp; <a class="qindex" href="files.html">File List</a> &nbsp; <a class="qindex" href="functions.html">Data Fields</a> &nbsp; <a class="qindex" href="globals.html">Globals</a> &nbsp; </center>
<hr><h1>PVLoggerLayout Class Reference</h1><code>#include &lt;<a class="el" href="pvlogger__accessories_8h-source.html">pvlogger_accessories.h</a>&gt;</code>
<p>
<table border=0 cellpadding=0 cellspacing=0>
<tr><td></td></tr>
<tr><td colspan=2><br><h2>Public Types</h2></td></tr>
<tr><td nowrap align=right valign=top>typedef PVLogger::message_id_type&nbsp;</td><td valign=bottom><a class="el" href="classPVLoggerLayout.html#s0">message_id_type</a></td></tr>
<tr><td colspan=2><br><h2>Public Methods</h2></td></tr>
<tr><td nowrap align=right valign=top>virtual&nbsp;</td><td valign=bottom><a class="el" href="classPVLoggerLayout.html#a0">~PVLoggerLayout</a> ()</td></tr>
<tr><td nowrap align=right valign=top>virtual int32&nbsp;</td><td valign=bottom><a class="el" href="classPVLoggerLayout.html#a1">FormatString</a> (char *formatBuf, int32 formatBufSize, <a class="el" href="classPVLoggerLayout.html#s0">message_id_type</a> msgID, const char *fmt, va_list va)=0</td></tr>
<tr><td nowrap align=right valign=top>virtual int32&nbsp;</td><td valign=bottom><a class="el" href="classPVLoggerLayout.html#a2">FormatOpaqueMessage</a> (char *formatBuf, int32 formatBufSize, <a class="el" href="classPVLoggerLayout.html#s0">message_id_type</a> msgID, int32 numPairs, va_list va)=0</td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
Base class for all message formatters. This class defines the interface to the message formatter. There are two kinds of msg formatting APIs, one to format text messages, and other to format opaque message buffers.
<p>
<hr><h2>Member Typedef Documentation</h2>
<a name="s0" doxytag="PVLoggerLayout::message_id_type"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> typedef PVLogger::message_id_type PVLoggerLayout::message_id_type
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a name="a0" doxytag="PVLoggerLayout::~PVLoggerLayout"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual PVLoggerLayout::~PVLoggerLayout </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="mdname1" valign="top" nowrap>&nbsp; </td>
<td class="md" valign="top">)&nbsp;</td>
<td class="md" nowrap><code> [inline, virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
</td>
</tr>
</table>
<hr><h2>Member Function Documentation</h2>
<a name="a2" doxytag="PVLoggerLayout::FormatOpaqueMessage"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual int32 PVLoggerLayout::FormatOpaqueMessage </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">char *&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>formatBuf</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int32&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>formatBufSize</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classPVLoggerLayout.html#s0">message_id_type</a>&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>msgID</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int32&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>numPairs</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>va_list&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>va</em></td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Formats the data and copies it to the given buffer.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
The length of the buffer used. </dl> </td>
</tr>
</table>
<a name="a1" doxytag="PVLoggerLayout::FormatString"></a><p>
<table width="100%" cellpadding="2" cellspacing="0" border="0">
<tr>
<td class="md">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td class="md" nowrap valign="top"> virtual int32 PVLoggerLayout::FormatString </td>
<td class="md" valign="top">(&nbsp;</td>
<td class="md" nowrap valign="top">char *&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>formatBuf</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>int32&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>formatBufSize</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap><a class="el" href="classPVLoggerLayout.html#s0">message_id_type</a>&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>msgID</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>const char *&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>fmt</em>, </td>
</tr>
<tr>
<td></td>
<td></td>
<td class="md" nowrap>va_list&nbsp;</td>
<td class="mdname" nowrap>&nbsp; <em>va</em></td>
</tr>
<tr>
<td></td>
<td class="md">)&nbsp;</td>
<td class="md" colspan="2"><code> [pure virtual]</code></td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing=5 cellpadding=0 border=0>
<tr>
<td>
&nbsp;
</td>
<td>
<p>
Formats the string and copies it to the given buffer.
<p>
<dl compact><dt><b>Returns: </b></dt><dd>
The length of the string not including the trailing '\0' </dl> </td>
</tr>
</table>
<hr>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="pvlogger__accessories_8h-source.html">pvlogger_accessories.h</a></ul>
<hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small>
<address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small>
</small></address>
</body>
</html>