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_PROPERTY_H
00031 #define LOG4SENDPP_PROPERTY_H
00032
00033 #include <log4sendpp/log4sendpp.h>
00034
00035 #include <vector>
00036
00037
00038 LOG4SENDPP_NS_START
00039
00040
00045 class LOG4SENDPP_API_DECL0 Property
00046 {
00047 public:
00048
00051 typedef LOG4SENDPP_STD_NS::pair<LOG4SENDPP_STD_NS::string,
00052 LOG4SENDPP_STD_NS::string> Pair;
00053
00058 void add(const LOG4SENDPP_STD_NS::string &name, const LOG4SENDPP_STD_NS::string &value);
00059
00063 void remove(const LOG4SENDPP_STD_NS::string &name);
00064
00068 LOG4SENDPP_STD_NS::vector<Pair> get() const;
00069
00073 unsigned numProperties() const;
00074
00077 void clear();
00078
00081 virtual ~Property();
00082
00083 private:
00084
00085 LOG4SENDPP_STD_NS::vector<Pair> properties;
00086 };
00087
00088
00089 LOG4SENDPP_NS_END
00090
00091
00092 #endif // LOG4SENDPP_PROPERTY_H