All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 
31 };
32 
34 
35 
36 #endif // h_738a42b1_1502_4483_948a_a69e7bbbee6a
Portability.hh
AppendersFactory
Definition: AppendersFactory.hh:13
AppendersFactory::creators_t
std::map< std::string, create_function_t > creators_t
Definition: AppendersFactory.hh:25
AppendersFactory::const_iterator
creators_t::const_iterator const_iterator
Definition: AppendersFactory.hh:28
FactoryParams
Definition: FactoryParams.hh:93
LOG4CPP_NS_BEGIN
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49
LOG4CPP_NS_END
#define LOG4CPP_NS_END
Definition: Portability.hh:50
LOG4CPP_EXPORT
#define LOG4CPP_EXPORT
Definition: Export.hh:21
Appender.hh
AppendersFactory::creators_
creators_t creators_
Definition: AppendersFactory.hh:30
FactoryParams.hh
AppendersFactory::params_t
FactoryParams params_t
Definition: AppendersFactory.hh:16


rc_genicam_api
Author(s): Heiko Hirschmueller
autogenerated on Wed Dec 4 2024 03:10:11