HierarchyMaintainer.hh
Go to the documentation of this file.
1 /*
2  * HierarchyMaintainer.hh
3  *
4  * Copyright 2000, LifeLine Networks BV (www.lifeline.nl). All rights reserved.
5  * Copyright 2000, Bastiaan Bakker. All rights reserved.
6  *
7  * See the COPYING file for the terms of usage and distribution.
8  */
9 
10 #ifndef _LOG4CPP_HIERARCHYMAINTAINER_HH
11 #define _LOG4CPP_HIERARCHYMAINTAINER_HH
12 
13 #include <log4cpp/Portability.hh>
14 #include <string>
15 #include <map>
16 #include <vector>
17 #include <log4cpp/Category.hh>
19 
21 
28  friend class Log4cppCleanup;
29 
30 public:
31  typedef std::map<std::string, Category*> CategoryMap;
32  typedef void(*shutdown_fun_ptr)();
33 
35 
37  virtual ~HierarchyMaintainer();
38  virtual Category* getExistingInstance(const std::string& name);
39  virtual Category& getInstance(const std::string& name);
40  virtual std::vector<Category*>* getCurrentCategories() const;
41  virtual void shutdown();
43  virtual void deleteAllCategories();
44 
45 protected:
46  virtual Category* _getExistingInstance(const std::string& name);
47  virtual Category& _getInstance(const std::string& name);
48  CategoryMap _categoryMap;
50 
51 private:
52  typedef std::vector<shutdown_fun_ptr> handlers_t;
53 
55  handlers_t handlers_;
56 };
58 
59 #endif // _LOG4CPP_HIERARCHYMAINTAINER_HH
#define LOG4CPP_NS_END
Definition: Portability.hh:50
HierarchyMaintainer is an internal log4cpp class.
virtual Category * getExistingInstance(const std::string &name)
std::map< std::string, Category * > CategoryMap
virtual Category & getInstance(const std::string &name)
virtual ~HierarchyMaintainer()
static HierarchyMaintainer * _defaultMaintainer
virtual Category * _getExistingInstance(const std::string &name)
This is the central class in the log4j package.
Definition: Category.hh:34
virtual void shutdown()
virtual void deleteAllCategories()
void register_shutdown_handler(shutdown_fun_ptr handler)
static HierarchyMaintainer & getDefaultMaintainer()
virtual Category & _getInstance(const std::string &name)
std::vector< shutdown_fun_ptr > handlers_t
virtual std::vector< Category * > * getCurrentCategories() const
threading::Mutex _categoryMutex
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


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