Fawkes API  Fawkes Development Version
source.h
1 
2 /***************************************************************************
3  * source.h - Abstract class defining a camera source controller
4  *
5  * Created: Mon Jun 29 15:47:11 2009
6  * Copyright 2009 Tobias Kellner
7  * 2005-2009 Tim Niemueller [www.niemueller.de]
8  *
9  ****************************************************************************/
10 
11 /* This program is free software; you can redistribute it and/or modify
12  * it under the terms of the GNU General Public License as published by
13  * the Free Software Foundation; either version 2 of the License, or
14  * (at your option) any later version. A runtime exception applies to
15  * this software (see LICENSE.GPL_WRE file mentioned below for details).
16  *
17  * This program is distributed in the hope that it will be useful,
18  * but WITHOUT ANY WARRANTY; without even the implied warranty of
19  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20  * GNU Library General Public License for more details.
21  *
22  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
23  */
24 
25 #ifndef __FIREVISION_CAMS_CONTROL_SOURCE_H_
26 #define __FIREVISION_CAMS_CONTROL_SOURCE_H_
27 
28 #include <fvcams/control/control.h>
29 
30 namespace firevision {
31 #if 0 /* just to make Emacs auto-indent happy */
32 }
33 #endif
34 
35 class CameraControlSource : virtual public CameraControl
36 {
37  public:
38  virtual ~CameraControlSource();
39 
40  virtual unsigned char source() = 0;
41  virtual void set_source(unsigned char source) = 0;
42 };
43 
44 } // end namespace firevision
45 
46 #endif // __FIREVISION_CAMS_CONTROL_SOURCE_H_
Camera source control interface.
Definition: source.h:35
Camera control interface base class.
Definition: control.h:33
virtual ~CameraControlSource()
Empty virtual destructor.
Definition: source.cpp:50
virtual unsigned char source()=0
Return the currently selected image source.
virtual void set_source(unsigned char source)=0
Set the current image source.