18 #ifndef _LOG4CXX_NDC_H 19 #define _LOG4CXX_NDC_H 21 #include <log4cxx/log4cxx.h> 26 #pragma warning ( push ) 27 #pragma warning ( disable: 4231 4251 4275 4786 ) 95 class LOG4CXX_EXPORT
NDC 102 typedef std::stack<DiagnosticContext>
Stack;
116 NDC(
const std::string& message);
143 static Stack* cloneStack();
157 static void inherit(Stack* stack);
170 static int getDepth();
188 static bool pop(std::string& buf);
203 static bool peek(std::string& buf);
211 static void push(
const std::string& message);
218 static void pushLS(
const LogString& message);
236 static void remove();
238 #if LOG4CXX_WCHAR_T_API 251 NDC(
const std::wstring& message);
258 static void push(
const std::wstring& message);
264 static bool peek(std::wstring& dst);
270 static bool pop(std::wstring& dst);
272 #if LOG4CXX_UNICHAR_API 285 NDC(
const std::basic_string<UniChar>& message);
292 static void push(
const std::basic_string<UniChar>& message);
298 static bool peek(std::basic_string<UniChar>& dst);
304 static bool pop(std::basic_string<UniChar>& dst);
306 #if LOG4CXX_CFSTRING_API 343 NDC& operator=(
const NDC&);
344 static LogString& getMessage(DiagnosticContext& ctx);
345 static LogString& getFullMessage(DiagnosticContext& ctx);
349 #if defined(_MSC_VER) 350 #pragma warning (pop) 354 #endif // _LOG4CXX_NDC_H std::pair< LogString, LogString > DiagnosticContext
Pair of Message and FullMessage.
Definition: ndc.h:101
the ndc class implements nested diagnostic contexts as defined by neil harrison in the article "patte...
Definition: ndc.h:95
const struct __CFString * CFStringRef
Definition: logstring.h:36
std::stack< DiagnosticContext > Stack
Definition: ndc.h:102
Definition: appender.h:32
std::basic_string< logchar > LogString
Definition: logstring.h:66