Instrument Neutral Distributed Interface INDI  2.0.2
filter_simulator.h
Go to the documentation of this file.
1 /*******************************************************************************
2  Copyright(c) 2010 Gerry Rozema. All rights reserved.
3 
4  This library is free software; you can redistribute it and/or
5  modify it under the terms of the GNU Library General Public
6  License version 2 as published by the Free Software Foundation.
7 
8  This library is distributed in the hope that it will be useful,
9  but WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  Library General Public License for more details.
12 
13  You should have received a copy of the GNU Library General Public License
14  along with this library; see the file COPYING.LIB. If not, write to
15  the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
16  Boston, MA 02110-1301, USA.
17 *******************************************************************************/
18 
19 #pragma once
20 
21 #include "indifilterwheel.h"
22 
27 {
28  public:
29  FilterSim() = default;
30  virtual ~FilterSim() = default;
31 
32  const char *getDefaultName();
33 
34  bool Connect();
35  bool Disconnect();
36  bool SelectFilter(int);
37  void TimerHit();
38 };
The FilterSim class provides a simple simulator to change filters. The filter names are saved to a co...
const char * getDefaultName()
FilterSim()=default
virtual ~FilterSim()=default
bool Disconnect()
Disconnect from device.
bool SelectFilter(int)
Select a new filter position.
bool Connect()
Connect to the device. INDI::DefaultDevice implementation connects to appropriate connection interfac...
void TimerHit()
Callback function to be called once SetTimer duration elapses.