Instrument Neutral Distributed Interface INDI
2.0.2
libs
indidevice
property
indipropertylight.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2021 by Pawel Soja <kernel32.pl@gmail.com>
3
4
This library is free software; you can redistribute it and/or
5
modify it under the terms of the GNU Lesser General Public
6
License as published by the Free Software Foundation; either
7
version 2.1 of the License, or (at your option) any later version.
8
9
This library is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
12
Lesser General Public License for more details.
13
14
You should have received a copy of the GNU Lesser General Public
15
License along with this library; if not, write to the Free Software
16
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
17
*/
18
19
#pragma once
20
21
#include "
indipropertybasic.h
"
22
23
namespace
INDI
24
{
25
26
class
PropertyLightPrivate;
27
class
PropertyLight
:
public
INDI::PropertyBasic
<ILight>
28
{
29
DECLARE_PRIVATE(
PropertyLight
)
30
public
:
31
PropertyLight
(
size_t
count
);
32
PropertyLight
(
INDI::Property
property);
33
~PropertyLight
();
34
35
public
:
36
// bool update(..., const char * const names[], int n);
37
38
void
fill
(
39
const
char
*
device
,
const
char
*name,
const
char
*label,
const
char
*group,
40
IPState
state
41
);
42
};
43
44
}
device
hid_device * device
Definition:
activefocuser_utils.cpp:102
INDI::PropertyBasic
Definition:
indipropertybasic.h:39
INDI::PropertyBasic< ILight >::count
size_t count() const
Definition:
indipropertybasic.h:105
INDI::PropertyLight
Definition:
indipropertylight.h:28
INDI::PropertyLight::~PropertyLight
~PropertyLight()
Definition:
indipropertylight.cpp:40
INDI::PropertyLight::fill
void fill(const char *device, const char *name, const char *label, const char *group, IPState state)
Definition:
indipropertylight.cpp:43
INDI::Property
Provides generic container for INDI properties.
Definition:
indiproperty.h:48
INDI::Property::PropertyLight
friend class PropertyLight
Definition:
indiproperty.h:209
IPState
IPState
Property state.
Definition:
indiapi.h:160
indipropertybasic.h
INDI
Namespace to encapsulate INDI client, drivers, and mediator classes.
Definition:
AlignmentSubsystemForClients.cpp:12
Generated on Sat May 13 2023 14:24:23 for Instrument Neutral Distributed Interface INDI by
1.9.1