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


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Mar 17 2021 02:48:40