All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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
wrapper_t::Category
category_t Category
Definition: Wrapper.hh:63
ndc_t
A function table which is bound to log4cpp's NDC class.
Definition: Wrapper.hh:42
appender_t
A function table which is bound to log4cpp's Appender class.
Definition: Wrapper.hh:55
Category
This is the central class in the log4j package.
Definition: Category.hh:34
PatternLayout.hh
Layout
Extend this abstract class to create your own log layout format.
Definition: Layout.hh:22
wrapper_t
A wrapper which bridges to log4cpp functionality.
Definition: Wrapper.hh:62
property_configurator_t
A function table which is bound to log4cpp's PropertyConfigurator class.
Definition: Wrapper.hh:37
Priority::Value
int Value
The type of Priority Values.
Definition: Priority.hh:87
wrapper_t::PatternLayout
pattern_layout_t PatternLayout
Definition: Wrapper.hh:64
Win32DebugAppender.hh
wrapper_t::NDC
ndc_t NDC
Definition: Wrapper.hh:66
category_t
A function table which is bound to log4cpp's Category class.
Definition: Wrapper.hh:14
Appender
Implement this interface for your own strategies for printing log statements.
Definition: Appender.hh:33
wrapper_t::Appender
appender_t Appender
Definition: Wrapper.hh:70
wrapper_t::PropertyConfigurator
property_configurator_t PropertyConfigurator
Definition: Wrapper.hh:65
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
PropertyConfigurator.hh
PatternLayout
PatternLayout is a simple fixed format Layout implementation.
Definition: PatternLayout.hh:26
pattern_layout_t
A function table which is bound to log4cpp's PatternLayout class.
Definition: Wrapper.hh:30
mode_t
int mode_t
Definition: config-win32.h:145
NDC.hh
Wrapper
const LOG4CPP_EXPORT LOG4CPP_NS::wrapper_t Wrapper
A functionality wrapper (= a set of function tables) which is exported.
Definition: Wrapper.hh:74
Category.hh


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