Open Lighting Architecture
Latest Git
libs
acn
RootHeader.h
1
/*
2
* This program is free software; you can redistribute it and/or modify
3
* it under the terms of the GNU General Public License as published by
4
* the Free Software Foundation; either version 2 of the License, or
5
* (at your option) any later version.
6
*
7
* This program is distributed in the hope that it will be useful,
8
* but WITHOUT ANY WARRANTY; without even the implied warranty of
9
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10
* GNU Library General Public License for more details.
11
*
12
* You should have received a copy of the GNU General Public License
13
* along with this program; if not, write to the Free Software
14
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
15
*
16
* RootHeader.h
17
* Interface for the RootHeader class
18
* Copyright (C) 2007 Simon Newton
19
*/
20
21
#ifndef LIBS_ACN_ROOTHEADER_H_
22
#define LIBS_ACN_ROOTHEADER_H_
23
24
#include "
ola/acn/CID.h
"
25
26
namespace
ola
{
27
namespace
acn {
28
29
/*
30
* The header for the root layer
31
*/
32
class
RootHeader
{
33
public
:
34
RootHeader
() {}
35
~
RootHeader
() {}
36
void
SetCid(
ola::acn::CID
cid) { m_cid = cid; }
37
ola::acn::CID
GetCid()
const
{
return
m_cid; }
38
39
bool
operator==(
const
RootHeader
&other)
const
{
40
return
m_cid == other.m_cid;
41
}
42
private
:
43
ola::acn::CID
m_cid;
44
};
45
}
// namespace acn
46
}
// namespace ola
47
#endif // LIBS_ACN_ROOTHEADER_H_
CID.h
The ACN component identifier.
ola::acn::CID
The ACN component identifier.
Definition:
CID.h:47
ola
The namespace containing all OLA symbols.
Definition:
Credentials.cpp:44
ola::acn::RootHeader
Definition:
RootHeader.h:32
Generated on Mon Jan 2 2023 23:40:35 for Open Lighting Architecture by
1.8.13