Wrapper.hh
Go to the documentation of this file.
1 #ifndef _LOG4CPP_WRAPPER_HH
2 #define _LOG4CPP_WRAPPER_HH
3 
4 #include <log4cpp/Category.hh>
5 #include <log4cpp/NDC.hh>
8 #if defined (_WIN32)
10 #endif
11 
14 typedef struct {
15  Category& (*getInstance)(const std::string& name);
16  std::vector<Category*>* (*getCurrentCategories)();
17  Category* (*exists)(const std::string& name);
18  Category& (*getRoot)();
19  void(*shutdown)();
20  void (Category::*logva)(Priority::Value priority, const char* stringFormat, va_list va);
21  bool (Category::*isInfoEnabled)();
22  bool (Category::*isWarnEnabled)();
23  bool (Category::*isDebugEnabled)();
24  void (Category::*setPriority)(Priority::Value priority);
25  void (Category::*addAppender)(Appender* appender);
26  void (Category::*removeAppender)(Appender* appender);
27 } category_t;
28 
30 typedef struct {
31  PatternLayout* (*create)();
32  void (PatternLayout::*setConversionPattern)(const std::string& conversionPattern);
33  void(*destroy)(PatternLayout* object);
35 
37 typedef struct {
38  void(*configure)(std::istream& initStream);
40 
42 typedef struct {
43  void(*push)(const std::string& message);
44  std::string(*pop)();
45 } ndc_t;
46 
47 #if defined (_WIN32)
48 typedef struct {
50  Appender *(*create)(const std::string& name);
51 } win32_debug_appender_t;
52 #endif
53 
55 typedef struct {
56  Appender *(*createFileAppender)(const std::string& name, const std::string& fileName, bool append, mode_t mode);
57  void (Appender::*setThreshold)(Priority::Value threshold);
58  void (Appender::*setLayout)(Layout* layout);
59 } appender_t;
60 
62 typedef struct {
67 #if defined (_WIN32)
68  win32_debug_appender_t Win32DebugAppender;
69 #endif
71 } wrapper_t;
72 
74 extern "C" LOG4CPP_EXPORT const LOG4CPP_NS::wrapper_t Wrapper;
76 
77 #endif // _LOG4CPP_WRAPPER_HH
A wrapper which bridges to log4cpp functionality.
Definition: Wrapper.hh:62
#define LOG4CPP_NS_END
Definition: Portability.hh:50
int mode_t
Definition: config-win32.h:145
pattern_layout_t PatternLayout
Definition: Wrapper.hh:64
category_t Category
Definition: Wrapper.hh:63
PatternLayout is a simple fixed format Layout implementation.
appender_t Appender
Definition: Wrapper.hh:70
ndc_t NDC
Definition: Wrapper.hh:66
#define LOG4CPP_EXPORT
Definition: Export.hh:21
This is the central class in the log4j package.
Definition: Category.hh:34
property_configurator_t PropertyConfigurator
Definition: Wrapper.hh:65
A function table which is bound to log4cpp&#39;s Category class.
Definition: Wrapper.hh:14
A function table which is bound to log4cpp&#39;s PropertyConfigurator class.
Definition: Wrapper.hh:37
A function table which is bound to log4cpp&#39;s Appender class.
Definition: Wrapper.hh:55
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
A function table which is bound to log4cpp&#39;s NDC class.
Definition: Wrapper.hh:42
int Value
The type of Priority Values.
Definition: Priority.hh:87
A function table which is bound to log4cpp&#39;s PatternLayout class.
Definition: Wrapper.hh:30
Implement this interface for your own strategies for printing log statements.
Definition: Appender.hh:33
LOG4CPP_EXPORT const LOG4CPP_NS::wrapper_t Wrapper
A functionality wrapper (= a set of function tables) which is exported.
Definition: Wrapper.hh:74
#define LOG4CPP_NS_BEGIN
Definition: Portability.hh:49


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