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_MDC_H
00031 #define LOG4SENDPP_MDC_H
00032 
00033 #include <log4sendpp/log4sendpp.h> 
00034 
00035 #include <vector>
00036 
00037 
00038 LOG4SENDPP_NS_START
00039 
00040 
00047 class LOG4SENDPP_API_DECL0 MDC
00048 {
00049   public:
00050 
00053     typedef LOG4SENDPP_STD_NS::pair<LOG4SENDPP_STD_NS::string,         
00054                                     LOG4SENDPP_STD_NS::string> Pair;   
00055 
00060     void add(const LOG4SENDPP_STD_NS::string &name, const LOG4SENDPP_STD_NS::string &value);
00061 
00065     void remove(const LOG4SENDPP_STD_NS::string &name);
00066 
00070     LOG4SENDPP_STD_NS::vector<Pair> get() const;
00071 
00075     unsigned numMDCs() const;
00076 
00079     void clear();
00080 
00083     virtual ~MDC();
00084 
00085   private:
00086 
00087     LOG4SENDPP_STD_NS::vector<Pair>  mdcs;
00088 };
00089 
00090 
00091 LOG4SENDPP_NS_END
00092 
00093 
00094 #endif // LOG4SENDPP_MDC_H