18#ifndef _LOG4CXX_HELPERS_THREAD_SPECIFIC_DATA_H 
   19#define _LOG4CXX_HELPERS_THREAD_SPECIFIC_DATA_H 
   81            return getStream(T());
 
  101#if !LOG4CXX_LOGCHAR_IS_UNICHAR && !LOG4CXX_LOGCHAR_IS_WCHAR 
  102        static std::basic_ostringstream<logchar>& getStream(
const logchar&);
 
  104#if LOG4CXX_WCHAR_T_API || LOG4CXX_LOGCHAR_IS_WCHAR 
  105        static std::basic_ostringstream<wchar_t>& getStream(
const wchar_t&);
 
  107#if LOG4CXX_UNICHAR_API || LOG4CXX_LOGCHAR_IS_UNICHAR 
  108        static std::basic_ostringstream<UniChar>& getStream(
const UniChar&);
 
std::map< LogString, LogString > Map
String to string stl map.
Definition: mdc.h:50
 
std::stack< DiagnosticContext > Stack
Definition: ndc.h:85
 
This class contains all the thread-specific data in use by log4cxx.
Definition: threadspecificdata.h:33
 
std::shared_ptr< NamePair > NamePairPtr
Definition: threadspecificdata.h:92
 
static void push(const LogString &val)
Add val to the nested diagnostic context of the current thread.
 
static std::basic_ostringstream< T > & getStringStream()
A character outpur stream only assessable to the current thread.
Definition: threadspecificdata.h:79
 
ThreadSpecificData(ThreadSpecificData &&other)
 
static ThreadSpecificData * getCurrentData()
Gets current thread specific data.
 
static NamePairPtr getNames()
A reference counted pointer to the names of the current thread.
 
NDC::Stack & getStack()
The nested diagnostic context of the current thread.
 
static void put(const LogString &key, const LogString &val)
Add the key val pair to the mapped diagnostic context of the current thread.
 
static void inherit(const NDC::Stack &stack)
Use stack as the nested diagnostic context of the current thread.
 
MDC::Map & getMap()
The mapped diagnostic context of the current thread.
 
void recycle()
Remove current thread data from APR if the diagnostic context is empty.
 
#define LOG4CXX_DECLARE_PRIVATE_MEMBER_PTR(T, V)
Definition: log4cxx.h:85
 
#define LOG4CXX_EXPORT
Definition: log4cxx.h:101
 
#define LOG4CXX_NS
Definition: log4cxx.h:104
 
std::basic_string< logchar > LogString
Definition: logstring.h:60
 
unsigned short UniChar
Definition: logstring.h:38
 
The names assigned to the current thread.
Definition: threadspecificdata.h:88
 
LogString threadName
Definition: threadspecificdata.h:90
 
LogString idString
Definition: threadspecificdata.h:89