Instrument Neutral Distributed Interface INDI  2.0.2
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 <marco.gulino@gmai.com>
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  INumberVectorProperty GroupSettingsNP;
47  std::vector<INumber> GroupSettingsN;
48 };
49 
50 
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
Group(int id, Imager *imager)
Definition: group.cpp:33
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
Number vector property descriptor.
Definition: indiapi.h:319