00001
00002
00003
00004
00005
00006
00007 #ifndef XMLI_ATTRIBUTE_H
00008 #define XMLI_ATTRIBUTE_H
00009 #include <string>
00010 #include <vector>
00011 #include <xercesc/util/XMLString.hpp>
00012 using namespace xercesc;
00013
00014 namespace xmli {
00016 class Attribute {
00017 public:
00018 Attribute(const char* name, const char* value);
00019 Attribute(const std::string& name, const std::string& value);
00020 Attribute(const XMLCh* name, const XMLCh* value);
00021
00022 const std::string& Name() const { return fName; }
00023 const std::string& Value() const { return fValue; }
00024 private:
00025 std::string fName;
00026 std::string fValue;
00027 };
00028
00030 typedef std::vector<xmli::Attribute> AttributeList;
00031 }
00032 #endif
00033