classhueplusplus_1_1_create_group.html 18.4 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: hueplusplus::CreateGroup Class Reference</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="namespacehueplusplus.html">hueplusplus</a></li><li class="navelem"><a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pro-methods">Protected Member Functions</a> &#124;
<a href="classhueplusplus_1_1_create_group-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">hueplusplus::CreateGroup Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Parameters necessary for creating a new <a class="el" href="classhueplusplus_1_1_group.html" title="Class for Groups of lights. ">Group</a>.  
 <a href="classhueplusplus_1_1_create_group.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_group_8h_source.html">hueplusplus/Group.h</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a7a169bfa485cba4c262777f092a30628"><td class="memItemLeft" align="right" valign="top">nlohmann::json&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_create_group.html#a7a169bfa485cba4c262777f092a30628">getRequest</a> () const</td></tr>
<tr class="memdesc:a7a169bfa485cba4c262777f092a30628"><td class="mdescLeft">&#160;</td><td class="mdescRight">Get request to create the group.  <a href="#a7a169bfa485cba4c262777f092a30628">More...</a><br /></td></tr>
<tr class="separator:a7a169bfa485cba4c262777f092a30628"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a2da9c9bb8167e2a2e52076984289b415"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_create_group.html#a2da9c9bb8167e2a2e52076984289b415">LightGroup</a> (const std::vector&lt; int &gt; &amp;lights, const std::string &amp;name=&quot;&quot;)</td></tr>
<tr class="memdesc:a2da9c9bb8167e2a2e52076984289b415"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a LightGroup.  <a href="#a2da9c9bb8167e2a2e52076984289b415">More...</a><br /></td></tr>
<tr class="separator:a2da9c9bb8167e2a2e52076984289b415"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8bc9cdc0c77ba191ec8951047da15c95"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_create_group.html#a8bc9cdc0c77ba191ec8951047da15c95">Room</a> (const std::vector&lt; int &gt; &amp;lights, const std::string &amp;name=&quot;&quot;, const std::string &amp;roomType=&quot;&quot;)</td></tr>
<tr class="memdesc:a8bc9cdc0c77ba191ec8951047da15c95"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a Room group.  <a href="#a8bc9cdc0c77ba191ec8951047da15c95">More...</a><br /></td></tr>
<tr class="separator:a8bc9cdc0c77ba191ec8951047da15c95"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4b83c544258d31ec69d7b90515c41af9"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_create_group.html#a4b83c544258d31ec69d7b90515c41af9">Entertainment</a> (const std::vector&lt; int &gt; &amp;lights, const std::string &amp;name=&quot;&quot;)</td></tr>
<tr class="memdesc:a4b83c544258d31ec69d7b90515c41af9"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create an Entertainment group.  <a href="#a4b83c544258d31ec69d7b90515c41af9">More...</a><br /></td></tr>
<tr class="separator:a4b83c544258d31ec69d7b90515c41af9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dacad456a494241755b3daeb5a8b390"><td class="memItemLeft" align="right" valign="top">static <a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_create_group.html#a5dacad456a494241755b3daeb5a8b390">Zone</a> (const std::vector&lt; int &gt; &amp;lights, const std::string &amp;name=&quot;&quot;)</td></tr>
<tr class="memdesc:a5dacad456a494241755b3daeb5a8b390"><td class="mdescLeft">&#160;</td><td class="mdescRight">Create a Zone.  <a href="#a5dacad456a494241755b3daeb5a8b390">More...</a><br /></td></tr>
<tr class="separator:a5dacad456a494241755b3daeb5a8b390"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-methods"></a>
Protected Member Functions</h2></td></tr>
<tr class="memitem:a7bac7ddbadae0b264044a78fbdd09671"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classhueplusplus_1_1_create_group.html#a7bac7ddbadae0b264044a78fbdd09671">CreateGroup</a> (const std::vector&lt; int &gt; &amp;lights, const std::string &amp;name, const std::string &amp;type, const std::string &amp;roomType)</td></tr>
<tr class="memdesc:a7bac7ddbadae0b264044a78fbdd09671"><td class="mdescLeft">&#160;</td><td class="mdescRight">Protected constructor, should not be called directly.  <a href="#a7bac7ddbadae0b264044a78fbdd09671">More...</a><br /></td></tr>
<tr class="separator:a7bac7ddbadae0b264044a78fbdd09671"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Parameters necessary for creating a new <a class="el" href="classhueplusplus_1_1_group.html" title="Class for Groups of lights. ">Group</a>. </p>
<p>Provides static functions for each group type that can be created by the user. </p><dl class="section note"><dt>Note</dt><dd>These are not all types that <a class="el" href="classhueplusplus_1_1_group.html#a5325969d0445adee1f5d3430e71d5168" title="Get the group type. ">Group::getType()</a> can return, because some types cannot be created manually. </dd></dl>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="a7bac7ddbadae0b264044a78fbdd09671"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7bac7ddbadae0b264044a78fbdd09671">&#9670;&nbsp;</a></span>CreateGroup()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">hueplusplus::CreateGroup::CreateGroup </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>lights</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>type</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>roomType</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Protected constructor, should not be called directly. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lights</td><td>List of light ids for the group. </td></tr>
    <tr><td class="paramname">name</td><td>Name of the group, empty for default name. </td></tr>
    <tr><td class="paramname">type</td><td>Type of the group, empty for default type. </td></tr>
    <tr><td class="paramname">roomType</td><td>Room class if type is room, empty for default class or if type is not room. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a4b83c544258d31ec69d7b90515c41af9"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4b83c544258d31ec69d7b90515c41af9">&#9670;&nbsp;</a></span>Entertainment()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a> hueplusplus::CreateGroup::Entertainment </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>lights</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create an Entertainment group. </p>
<p>The lights are used in an entertainment setup and can have relative positions. The group can be empty. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lights</td><td>List of light ids, may be empty. </td></tr>
    <tr><td class="paramname">name</td><td>Name of the group, optional. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a7a169bfa485cba4c262777f092a30628"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7a169bfa485cba4c262777f092a30628">&#9670;&nbsp;</a></span>getRequest()</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">nlohmann::json hueplusplus::CreateGroup::getRequest </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Get request to create the group. </p>
<dl class="section return"><dt>Returns</dt><dd>JSON request for a POST to create the new group </dd></dl>

</div>
</div>
<a id="a2da9c9bb8167e2a2e52076984289b415"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2da9c9bb8167e2a2e52076984289b415">&#9670;&nbsp;</a></span>LightGroup()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a> hueplusplus::CreateGroup::LightGroup </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>lights</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a LightGroup. </p>
<p>LightGroup is the default type for groups. Empty LightGroups will be deleted. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lights</td><td>List of light ids, must not be empty. </td></tr>
    <tr><td class="paramname">name</td><td>Name of the new group, optional. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a8bc9cdc0c77ba191ec8951047da15c95"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a8bc9cdc0c77ba191ec8951047da15c95">&#9670;&nbsp;</a></span>Room()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a> hueplusplus::CreateGroup::Room </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>lights</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>roomType</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a Room group. </p>
<p>Rooms can have a room class and can be empty. Every light can only be in one room. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lights</td><td>List of light ids, may be empty. </td></tr>
    <tr><td class="paramname">name</td><td>Name of the room, optional. </td></tr>
    <tr><td class="paramname">roomType</td><td>Class of the room (case sensitive), optional. Refer to Hue developer documentation for a list of possible room classes. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a5dacad456a494241755b3daeb5a8b390"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a5dacad456a494241755b3daeb5a8b390">&#9670;&nbsp;</a></span>Zone()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classhueplusplus_1_1_create_group.html">CreateGroup</a> hueplusplus::CreateGroup::Zone </td>
          <td>(</td>
          <td class="paramtype">const std::vector&lt; int &gt; &amp;&#160;</td>
          <td class="paramname"><em>lights</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>name</em> = <code>&quot;&quot;</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Create a Zone. </p>
<p>Zones can be empty, a light can be in multiple zones. </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">lights</td><td>List of light ids, may be empty. </td></tr>
    <tr><td class="paramname">name</td><td>Name of the Zone, optional. </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>include/hueplusplus/<a class="el" href="_group_8h_source.html">Group.h</a></li>
<li>src/<a class="el" href="_group_8cpp.html">Group.cpp</a></li>
</ul>
</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>