_simple_brightness_strategy_8h_source.html 9.14 KB
<!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"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>hueplusplus: include/hueplusplus/SimpleBrightnessStrategy.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">hueplusplus
   &#160;<span id="projectnumber">1.0.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_d44c64559bbebec7f509842c48db8b23.html">include</a></li><li class="navelem"><a class="el" href="dir_e05b4b7707bd5f9fd045e8be02b17d0a.html">hueplusplus</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">SimpleBrightnessStrategy.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="_simple_brightness_strategy_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>&#160;</div><div class="line"><a name="l00023"></a><span class="lineno">   23</span>&#160;<span class="preprocessor">#ifndef INCLUDE_HUEPLUSPLUS_SIMPLE_BRIGHTNESS_STRATEGY_H</span></div><div class="line"><a name="l00024"></a><span class="lineno">   24</span>&#160;<span class="preprocessor">#define INCLUDE_HUEPLUSPLUS_SIMPLE_BRIGHTNESS_STRATEGY_H</span></div><div class="line"><a name="l00025"></a><span class="lineno">   25</span>&#160;</div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_brightness_strategy_8h.html">BrightnessStrategy.h</a>&quot;</span></div><div class="line"><a name="l00027"></a><span class="lineno">   27</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="_light_8h.html">Light.h</a>&quot;</span></div><div class="line"><a name="l00028"></a><span class="lineno">   28</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno">   29</span>&#160;<span class="keyword">namespace </span><a class="code" href="namespacehueplusplus.html">hueplusplus</a></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;{</div><div class="line"><a name="l00032"></a><span class="lineno"><a class="line" href="classhueplusplus_1_1_simple_brightness_strategy.html">   32</a></span>&#160;<span class="keyword">class </span><a class="code" href="classhueplusplus_1_1_simple_brightness_strategy.html">SimpleBrightnessStrategy</a> : <span class="keyword">public</span> <a class="code" href="classhueplusplus_1_1_brightness_strategy.html">BrightnessStrategy</a></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;{</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="keyword">public</span>:</div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="classhueplusplus_1_1_simple_brightness_strategy.html#a672760ff447c05b23c932b61fb862a61">setBrightness</a>(<span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> bri, uint8_t transition, <a class="code" href="classhueplusplus_1_1_light.html">Light</a>&amp; light) <span class="keyword">const override</span>;</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classhueplusplus_1_1_simple_brightness_strategy.html#a8e9c818098ffc9501d3f0b3fcc25ae6b">getBrightness</a>(<a class="code" href="classhueplusplus_1_1_light.html">Light</a>&amp; light) <span class="keyword">const override</span>;</div><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;    <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classhueplusplus_1_1_simple_brightness_strategy.html#a8e9c818098ffc9501d3f0b3fcc25ae6b">getBrightness</a>(<span class="keyword">const</span> <a class="code" href="classhueplusplus_1_1_light.html">Light</a>&amp; light) <span class="keyword">const override</span>;</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;};</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;} <span class="comment">// namespace hueplusplus</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="classhueplusplus_1_1_simple_brightness_strategy_html_a8e9c818098ffc9501d3f0b3fcc25ae6b"><div class="ttname"><a href="classhueplusplus_1_1_simple_brightness_strategy.html#a8e9c818098ffc9501d3f0b3fcc25ae6b">hueplusplus::SimpleBrightnessStrategy::getBrightness</a></div><div class="ttdeci">unsigned int getBrightness(Light &amp;light) const override</div><div class="ttdoc">Function that returns the current brightness of the light. </div><div class="ttdef"><b>Definition:</b> SimpleBrightnessStrategy.cpp:40</div></div>
<div class="ttc" id="classhueplusplus_1_1_simple_brightness_strategy_html_a672760ff447c05b23c932b61fb862a61"><div class="ttname"><a href="classhueplusplus_1_1_simple_brightness_strategy.html#a672760ff447c05b23c932b61fb862a61">hueplusplus::SimpleBrightnessStrategy::setBrightness</a></div><div class="ttdeci">bool setBrightness(unsigned int bri, uint8_t transition, Light &amp;light) const override</div><div class="ttdoc">Function for changing a lights brightness with a specified transition. </div><div class="ttdef"><b>Definition:</b> SimpleBrightnessStrategy.cpp:34</div></div>
<div class="ttc" id="namespacehueplusplus_html"><div class="ttname"><a href="namespacehueplusplus.html">hueplusplus</a></div><div class="ttdoc">Namespace for the hueplusplus library. </div><div class="ttdef"><b>Definition:</b> Action.h:27</div></div>
<div class="ttc" id="_light_8h_html"><div class="ttname"><a href="_light_8h.html">Light.h</a></div></div>
<div class="ttc" id="classhueplusplus_1_1_brightness_strategy_html"><div class="ttname"><a href="classhueplusplus_1_1_brightness_strategy.html">hueplusplus::BrightnessStrategy</a></div><div class="ttdoc">Virtual base class for all BrightnessStrategies. </div><div class="ttdef"><b>Definition:</b> BrightnessStrategy.h:33</div></div>
<div class="ttc" id="classhueplusplus_1_1_simple_brightness_strategy_html"><div class="ttname"><a href="classhueplusplus_1_1_simple_brightness_strategy.html">hueplusplus::SimpleBrightnessStrategy</a></div><div class="ttdoc">Class implementing the functions of BrightnessStrategy. </div><div class="ttdef"><b>Definition:</b> SimpleBrightnessStrategy.h:32</div></div>
<div class="ttc" id="classhueplusplus_1_1_light_html"><div class="ttname"><a href="classhueplusplus_1_1_light.html">hueplusplus::Light</a></div><div class="ttdoc">Class for Hue Light fixtures. </div><div class="ttdef"><b>Definition:</b> Light.h:60</div></div>
<div class="ttc" id="_brightness_strategy_8h_html"><div class="ttname"><a href="_brightness_strategy_8h.html">BrightnessStrategy.h</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>