1 | /******************************************************************************* |
---|
2 | Copyright(c) 2010, 2011 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 | #ifndef INDI_FILTERWHEEL_H |
---|
20 | #define INDI_FILTERWHEEL_H |
---|
21 | |
---|
22 | #include "defaultdriver.h" |
---|
23 | #include "indifilterinterface.h" |
---|
24 | |
---|
25 | /** |
---|
26 | * \class INDI::FilterWheel |
---|
27 | \brief Class to provide general functionality of a filter wheel device. |
---|
28 | |
---|
29 | Developers need to subclass INDI::FilterWheel to implement any driver for filter wheels within INDI. |
---|
30 | |
---|
31 | \author Gerry Rozema, Jasem Mutlaq |
---|
32 | \see INDI::FilterInterface |
---|
33 | */ |
---|
34 | class INDI::FilterWheel: public INDI::DefaultDriver, public INDI::FilterInterface |
---|
35 | { |
---|
36 | protected: |
---|
37 | |
---|
38 | FilterWheel(); |
---|
39 | virtual ~FilterWheel(); |
---|
40 | |
---|
41 | public: |
---|
42 | |
---|
43 | virtual bool initProperties(); |
---|
44 | virtual bool updateProperties(); |
---|
45 | virtual void ISGetProperties (const char *dev); |
---|
46 | virtual bool ISNewSwitch (const char *dev, const char *name, ISState *states, char *names[], int n); |
---|
47 | virtual bool ISNewNumber (const char *dev, const char *name, double values[], char *names[], int n); |
---|
48 | virtual bool ISNewText (const char *dev, const char *name, char *texts[], char *names[], int n); |
---|
49 | virtual void ISSnoopDevice (XMLEle *root); |
---|
50 | |
---|
51 | protected: |
---|
52 | |
---|
53 | virtual int QueryFilter(); |
---|
54 | virtual bool SelectFilter(int); |
---|
55 | virtual bool SetFilterNames(); |
---|
56 | virtual bool GetFilterNames(const char *deviceName, const char* groupName); |
---|
57 | |
---|
58 | }; |
---|
59 | |
---|
60 | #endif // INDI::FilterWheel_H |
---|