Fawkes API  Fawkes Development Version
factory.h
1 
2 /***************************************************************************
3  * factory.h - Camera control factory
4  *
5  * Created: Fri Jun 15 13:11:11 2007
6  * Copyright 2005-2009 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #ifndef __FIREVISION_CAMS_CONTROLFACTORY_H_
25 #define __FIREVISION_CAMS_CONTROLFACTORY_H_
26 
27 #include <core/exception.h>
28 #include <core/exceptions/software.h>
29 
30 #include <fvcams/control/control.h>
31 
32 #include <typeinfo>
33 #include <cstddef>
34 
35 namespace firevision {
36 #if 0 /* just to make Emacs auto-indent happy */
37 }
38 #endif
39 
40 class Camera;
41 class CameraArgumentParser;
42 
44 {
45  public:
46  static CameraControl * instance(const char *as);
47  static CameraControl * instance(Camera *camera);
48  static CameraControl * instance(const CameraArgumentParser *cap);
49 
50  static CameraControl * instance(const std::type_info &typeinf, Camera *camera);
51 };
52 
53 } // end namespace firevision
54 
55 #endif
Camera interface for image aquiring devices in FireVision.
Definition: camera.h:35
Camera control factory.
Definition: factory.h:43
Camera argument parser.
Definition: camargp.h:38
Camera control interface base class.
Definition: control.h:33
static CameraControl * instance(const char *as)
Get camera control instance.
Definition: factory.cpp:125