ardupilot/libraries/doc/html/_better_stream_8h_source.html

76 lines
5.8 KiB
HTML

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>ArduPilot Libraries: BetterStream.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javaScript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Generated by Doxygen 1.7.1 -->
<div class="navigation" id="top">
<div class="tabs">
<ul class="tablist">
<li><a href="main.html"><span>Main&nbsp;Page</span></a></li>
<li><a href="pages.html"><span>Related&nbsp;Pages</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li><a href="annotated.html"><span>Classes</span></a></li>
<li class="current"><a href="files.html"><span>Files</span></a></li>
</ul>
</div>
<div class="tabs2">
<ul class="tablist">
<li><a href="files.html"><span>File&nbsp;List</span></a></li>
<li><a href="globals.html"><span>File&nbsp;Members</span></a></li>
</ul>
</div>
<div class="header">
<div class="headertitle">
<h1>BetterStream.h</h1> </div>
</div>
<div class="contents">
<a href="_better_stream_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// -*- Mode: C++; c-basic-offset: 8; indent-tabs-mode: nil -*-</span>
<a name="l00002"></a>00002 <span class="comment">//</span>
<a name="l00003"></a>00003 <span class="comment">// Copyright (c) 2010 Michael Smith. All rights reserved.</span>
<a name="l00004"></a>00004 <span class="comment">//</span>
<a name="l00005"></a>00005 <span class="comment">// This is free software; you can redistribute it and/or modify it under</span>
<a name="l00006"></a>00006 <span class="comment">// the terms of the GNU Lesser General Public License as published by the</span>
<a name="l00007"></a>00007 <span class="comment">// Free Software Foundation; either version 2.1 of the License, or (at</span>
<a name="l00008"></a>00008 <span class="comment">// your option) any later version.</span>
<a name="l00009"></a>00009 <span class="comment">//</span>
<a name="l00010"></a>00010
<a name="l00011"></a>00011 <span class="preprocessor">#ifndef __BETTERSTREAM_H</span>
<a name="l00012"></a>00012 <span class="preprocessor"></span><span class="preprocessor">#define __BETTERSTREAM_H</span>
<a name="l00013"></a>00013 <span class="preprocessor"></span>
<a name="l00014"></a>00014 <span class="preprocessor">#include &lt;Stream.h&gt;</span>
<a name="l00015"></a>00015 <span class="preprocessor">#include &lt;avr/pgmspace.h&gt;</span>
<a name="l00016"></a>00016
<a name="l00017"></a><a class="code" href="class_better_stream.html">00017</a> <span class="keyword">class </span><a class="code" href="class_better_stream.html">BetterStream</a> : <span class="keyword">public</span> <a class="code" href="class_stream.html">Stream</a> {
<a name="l00018"></a>00018 <span class="keyword">public</span>:
<a name="l00019"></a><a class="code" href="class_better_stream.html#aaae2de43c962c6fd7903a14cbc884fdf">00019</a> <a class="code" href="class_better_stream.html#aaae2de43c962c6fd7903a14cbc884fdf">BetterStream</a>(<span class="keywordtype">void</span>) {
<a name="l00020"></a>00020 }
<a name="l00021"></a>00021
<a name="l00022"></a>00022 <span class="comment">// Stream extensions</span>
<a name="l00023"></a>00023 <span class="keywordtype">void</span> <a class="code" href="class_better_stream.html#a0016dc539b93bf6856120604958114a0">print_P</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *);
<a name="l00024"></a>00024 <span class="keywordtype">void</span> <a class="code" href="class_better_stream.html#a6aac449cc793106cd8f78ea6934ae002">println_P</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *);
<a name="l00025"></a>00025 <span class="keywordtype">void</span> <a class="code" href="class_better_stream.html#aa735777635173dca53f4d9a4f6a1e0b8">printf</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *, ...)
<a name="l00026"></a>00026 <a class="code" href="c_09_09_8cpp.html#aa5aa60072f4063655d5283b6d7b7ab44">__attribute__</a> ((format(__printf__, 2, 3)));
<a name="l00027"></a>00027 <span class="keywordtype">void</span> <a class="code" href="class_better_stream.html#a53ea8468145fd16a3a137002b87040ad">printf_P</a>(const <span class="keywordtype">char</span> *, ...)
<a name="l00028"></a>00028 <a class="code" href="c_09_09_8cpp.html#aa5aa60072f4063655d5283b6d7b7ab44">__attribute__</a> ((format(__printf__, 2, 3)));
<a name="l00029"></a>00029
<a name="l00030"></a>00030 private:
<a name="l00031"></a>00031 <span class="keywordtype">void</span> _vprintf(<span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>, const <span class="keywordtype">char</span> *, va_list)
<a name="l00032"></a>00032 <a class="code" href="c_09_09_8cpp.html#aa5aa60072f4063655d5283b6d7b7ab44">__attribute__</a> ((format(__printf__, 3, 0)));
<a name="l00033"></a>00033 };
<a name="l00034"></a>00034
<a name="l00035"></a>00035 <span class="preprocessor">#endif // __BETTERSTREAM_H</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span>
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>
Generated for ArduPilot Libraries by&nbsp;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.png" alt="doxygen"/></a></small></address>
</body>
</html>