TriggeringEventEvaluatorFactory.hh
Go to the documentation of this file.
1 #if !defined(h_dd233b8b_5c59_4956_9393_6581c95f9779)
2 #define h_dd233b8b_5c59_4956_9393_6581c95f9779
3 
4 #include <string>
5 #include <map>
6 #include <memory>
7 #include "Portability.hh"
9 #include "FactoryParams.hh"
10 
13 {
14 public:
16  typedef std::auto_ptr<TriggeringEventEvaluator>(*create_function_t)(const params_t& params);
17 
18  static TriggeringEventEvaluatorFactory& getInstance();
19  void registerCreator(const std::string& class_name, create_function_t create_function);
20  std::auto_ptr<TriggeringEventEvaluator> create(const std::string& class_name, const params_t& params);
21  bool registered(const std::string& class_name) const;
22 
23 private:
25 
26  typedef std::map<std::string, create_function_t> creators_t;
27  typedef creators_t::const_iterator const_iterator;
28 
29  creators_t creators_;
30 };
32 
33 #endif // h_dd233b8b_5c59_4956_9393_6581c95f9779
#define LOG4CPP_NS_END
Definition: Portability.hh:50
std::map< std::string, create_function_t > creators_t
#define LOG4CPP_EXPORT
Definition: Export.hh:21
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Thu Jun 6 2019 19:10:54