Instrument Neutral Distributed Interface INDI
2.2.5
drivers
agent
group.h
Go to the documentation of this file.
1
/*******************************************************************************
2
Copyright(c) 2013-2016 CloudMakers, s. r. o. All rights reserved.
3
Copyright(c) 2017-2018 Marco Gulino <
[email protected]
>
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Library General Public
7
License version 2 as published by the Free Software Foundation.
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
Library General Public License for more details.
13
14
You should have received a copy of the GNU Library General Public License
15
along with this library; see the file COPYING.LIB. If not, write to
16
the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
17
Boston, MA 02110-1301, USA.
18
*******************************************************************************/
19
20
#pragma once
21
22
#include "
baseclient.h
"
23
#include "
defaultdevice.h
"
24
#include <vector>
25
26
class
Imager
;
27
28
class
Group
29
{
30
public
:
31
explicit
Group
(
int
id
,
Imager
*imager);
32
33
bool
ISNewNumber
(
const
char
*dev,
const
char
*name,
double
values[],
char
*names[],
int
n);
34
35
void
defineProperties
();
36
void
deleteProperties
();
37
38
int
filterSlot
()
const
;
39
int
binning
()
const
;
40
double
exposure
()
const
;
41
int
count
()
const
;
42
private
:
43
std::string groupName;
44
std::string groupSettingsName;
45
Imager
*
imager
;
46
INDI::PropertyNumber
GroupSettingsNP {4};
47
enum
48
{
49
IMAGE_COUNT,
50
CCD_BINNING,
51
FILTER_SLOT,
52
CCD_EXPOSURE_VALUE
53
};
54
// std::vector<INumber> GroupSettingsN;
55
};
56
57
imager
std::shared_ptr< Imager > imager(new Imager())
baseclient.h
Group
Definition
group.h:29
Group::defineProperties
void defineProperties()
Definition
group.cpp:89
Group::binning
int binning() const
Definition
group.cpp:55
Group::count
int count() const
Definition
group.cpp:70
Group::exposure
double exposure() const
Definition
group.cpp:65
Group::deleteProperties
void deleteProperties()
Definition
group.cpp:94
Group::ISNewNumber
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Definition
group.cpp:76
Group::filterSlot
int filterSlot() const
Definition
group.cpp:60
INDI::PropertyNumber
Definition
indipropertynumber.h:28
Imager
Definition
agent_imager.h:28
defaultdevice.h
Generated on Thu Oct 22 2026 09:21:58 for Instrument Neutral Distributed Interface INDI by
1.9.8