| 1 |
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
| 2 |
<html xmlns="http://www.w3.org/1999/xhtml"> |
| 3 |
<head> |
| 4 |
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> |
| 5 |
<meta http-equiv="X-UA-Compatible" content="IE=9"/> |
| 6 |
<meta name="generator" content="Doxygen 1.8.13"/> |
| 7 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 8 |
<title>LASi: util.h Source File</title> |
| 9 |
<link href="tabs.css" rel="stylesheet" type="text/css"/> |
| 10 |
<script type="text/javascript" src="jquery.js"></script> |
| 11 |
<script type="text/javascript" src="dynsections.js"></script> |
| 12 |
<link href="doxygen.css" rel="stylesheet" type="text/css" /> |
| 13 |
</head> |
| 14 |
<body> |
| 15 |
<div id="top"><!-- do not remove this div, it is closed by doxygen! --> |
| 16 |
<div id="titlearea"> |
| 17 |
<table cellspacing="0" cellpadding="0"> |
| 18 |
<tbody> |
| 19 |
<tr style="height: 56px;"> |
| 20 |
<td id="projectalign" style="padding-left: 0.5em;"> |
| 21 |
<div id="projectname">LASi |
| 22 |
</div> |
| 23 |
</td> |
| 24 |
</tr> |
| 25 |
</tbody> |
| 26 |
</table> |
| 27 |
</div> |
| 28 |
<!-- end header part --> |
| 29 |
<!-- Generated by Doxygen 1.8.13 --> |
| 30 |
<script type="text/javascript" src="menudata.js"></script> |
| 31 |
<script type="text/javascript" src="menu.js"></script> |
| 32 |
<script type="text/javascript"> |
| 33 |
$(function() { |
| 34 |
initMenu('',false,false,'search.php','Search'); |
| 35 |
}); |
| 36 |
</script> |
| 37 |
<div id="main-nav"></div> |
| 38 |
<div id="nav-path" class="navpath"> |
| 39 |
<ul> |
| 40 |
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li> </ul> |
| 41 |
</div> |
| 42 |
</div><!-- top --> |
| 43 |
<div class="header"> |
| 44 |
<div class="headertitle"> |
| 45 |
<div class="title">util.h</div> </div> |
| 46 |
</div><!--header--> |
| 47 |
<div class="contents"> |
| 48 |
<a href="util_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> </div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="preprocessor">#ifndef UTIL_H</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="preprocessor">#define UTIL_H</span></div><div class="line"><a name="l00014"></a><span class="lineno"> 14</span> </div><div class="line"><a name="l00015"></a><span class="lineno"> 15</span> <span class="preprocessor">#include <stdexcept></span></div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="preprocessor">#include <string></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="preprocessor">#include <iostream></span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> </div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="preprocessor">#include <ft2build.h></span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="preprocessor">#include FT_FREETYPE_H</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="preprocessor">#include FT_GLYPH_H</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> </div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> std::ostream& <a class="code" href="util_8h.html#a7d7f9d985b0fa4b37488b75aa0cc182f">operator<<</a>(std::ostream&, <span class="keyword">const</span> FT_Library);</div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> std::ostream& <a class="code" href="util_8h.html#a7d7f9d985b0fa4b37488b75aa0cc182f">operator<<</a>(std::ostream&, <span class="keyword">const</span> FT_Face);</div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> std::ostream& <a class="code" href="util_8h.html#a7d7f9d985b0fa4b37488b75aa0cc182f">operator<<</a>(std::ostream&, <span class="keyword">const</span> FT_Glyph);</div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> std::ostream& <a class="code" href="util_8h.html#a7d7f9d985b0fa4b37488b75aa0cc182f">operator<<</a>(std::ostream&, <span class="keyword">const</span> FT_Outline);</div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> </div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="util_8h.html#af93950be23413442be8c8d99e54f6688"> 30</a></span> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="util_8h.html#af93950be23413442be8c8d99e54f6688">evalReturnCode</a>(<span class="keyword">const</span> <span class="keywordtype">int</span> errCode, <span class="keyword">const</span> <span class="keywordtype">char</span>* funcName) <span class="keywordflow">throw</span> (std::runtime_error) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  <span class="keywordflow">if</span> (errCode)</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  <span class="keywordflow">throw</span> std::runtime_error(std::string(<span class="stringliteral">"Error returned from "</span>) + funcName);</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span> }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="preprocessor">#endif</span></div><div class="ttc" id="util_8h_html_a7d7f9d985b0fa4b37488b75aa0cc182f"><div class="ttname"><a href="util_8h.html#a7d7f9d985b0fa4b37488b75aa0cc182f">operator<<</a></div><div class="ttdeci">std::ostream & operator<<(std::ostream &, const FT_Library)</div></div> |
| 49 |
<div class="ttc" id="util_8h_html_af93950be23413442be8c8d99e54f6688"><div class="ttname"><a href="util_8h.html#af93950be23413442be8c8d99e54f6688">evalReturnCode</a></div><div class="ttdeci">void evalReturnCode(const int errCode, const char *funcName)</div><div class="ttdoc">Converts a freetype return code into an exception. </div><div class="ttdef"><b>Definition:</b> util.h:30</div></div> |
| 50 |
</div><!-- fragment --></div><!-- contents --> |
| 51 |
<!-- start footer part --> |
| 52 |
<hr class="footer"/><address class="footer"><small> |
| 53 |
Generated on Wed Jan 30 2019 23:39:40 for LASi by  <a href="http://www.doxygen.org/index.html"> |
| 54 |
<img class="footer" src="doxygen.png" alt="doxygen"/> |
| 55 |
</a> 1.8.13 |
| 56 |
</small></address> |
| 57 |
</body> |
| 58 |
</html> |