Instrument Neutral Distributed Interface INDI 2.2.5
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
26class Imager;
27
28class Group
29{
30public:
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;
42private:
43 std::string groupName;
44 std::string groupSettingsName;
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
std::shared_ptr< Imager > imager(new Imager())
Definition group.h:29
void defineProperties()
Definition group.cpp:89
int binning() const
Definition group.cpp:55
int count() const
Definition group.cpp:70
double exposure() const
Definition group.cpp:65
void deleteProperties()
Definition group.cpp:94
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Definition group.cpp:76
int filterSlot() const
Definition group.cpp:60