00001
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030 #ifndef LOG4SENDPP_NDC_H
00031 #define LOG4SENDPP_NDC_H
00032
00033 #include <log4sendpp/log4sendpp.h>
00034
00035 #include <vector>
00036
00037
00038 LOG4SENDPP_NS_START
00039
00040
00047 class LOG4SENDPP_API_DECL0 NDC
00048 {
00049 public:
00050
00053 NDC();
00054
00057 virtual ~NDC();
00058
00062 void push(const LOG4SENDPP_STD_NS::string &ndc);
00063
00066 void pop();
00067
00071 LOG4SENDPP_STD_NS::string get() const;
00072
00076 unsigned numNDCs() const;
00077
00080 void clear();
00081
00082 private:
00083
00084 LOG4SENDPP_STD_NS::vector<LOG4SENDPP_STD_NS::string> ndcs;
00085 mutable bool dirty;
00086 mutable LOG4SENDPP_STD_NS::string total;
00087 };
00088
00089
00090 LOG4SENDPP_NS_END
00091
00092
00093 #endif // LOG4SENDPP_NDC_H
00094