Instrument Neutral Distributed Interface INDI  1.9.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 
Group::defineProperties
void defineProperties()
Definition: group.cpp:84
Group::filterSlot
int filterSlot() const
Definition: group.cpp:58
imager
std::shared_ptr< Imager > imager(new Imager())
Imager
Definition: agent_imager.h:27
Group::ISNewNumber
bool ISNewNumber(const char *dev, const char *name, double values[], char *names[], int n)
Definition: group.cpp:71
_INumberVectorProperty
Number vector property descriptor.
Definition: indiapi.h:317
Group::exposure
double exposure() const
Definition: group.cpp:62
defaultdevice.h
Group::count
int count() const
Definition: group.cpp:66
Group
Definition: group.h:28
Group::binning
int binning() const
Definition: group.cpp:54
Group::Group
Group(int id, Imager *imager)
Definition: group.cpp:33
baseclient.h
Group::deleteProperties
void deleteProperties()
Definition: group.cpp:89