18 #ifndef _LOG4CXX_MDC_H 19 #define _LOG4CXX_MDC_H 21 #include <log4cxx/log4cxx.h> 26 #pragma warning (push) 27 #pragma warning ( disable: 4231 4251 4275 4786 ) 41 class LOG4CXX_EXPORT
MDC 46 typedef std::map<LogString, LogString>
Map;
55 MDC(
const std::string& key,
const std::string& value);
68 static void put(
const std::string& key,
const std::string& value);
86 static std::string
get(
const std::string& key);
101 static std::string
remove(
const std::string& key);
102 #if LOG4CXX_WCHAR_T_API 110 MDC(
const std::wstring& key,
const std::wstring& value);
121 static void put(
const std::wstring& key,
const std::wstring& value);
129 static std::wstring
get(
const std::wstring& key);
136 static std::wstring
remove(
const std::wstring& key);
138 #if LOG4CXX_UNICHAR_API 146 MDC(
const std::basic_string<UniChar>& key,
const std::basic_string<UniChar>& value);
157 static void put(
const std::basic_string<UniChar>& key,
const std::basic_string<UniChar>& value);
165 static std::basic_string<UniChar>
get(
const std::basic_string<UniChar>& key);
172 static std::basic_string<UniChar>
remove(
const std::basic_string<UniChar>& key);
174 #if LOG4CXX_CFSTRING_API 226 MDC& operator=(
const MDC&);
231 #if defined(_MSC_VER) 232 #pragma warning (pop) 236 #endif // _LOG4CXX_MDC_H std::map< LogString, LogString > Map
String to string stl map.
Definition: mdc.h:46
The MDC class is similar to the NDC class except that it is based on a map instead of a stack...
Definition: mdc.h:41
const struct __CFString * CFStringRef
Definition: logstring.h:36
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66