00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef ATTRIBUTESIMPL_H
00021 #define ATTRIBUTESIMPL_H
00022
00023 #include <vector>
00024 #include "attribute.h"
00025
00026 using namespace std;
00027
00028 typedef vector<Attribute>::const_iterator AttributesIterator;
00029
00035 class AttributesImpl
00036 {
00037 public:
00039 AttributesImpl();
00040
00042 ~AttributesImpl();
00043
00047 int getLength() const { return m_vAttributes.size(); }
00048
00053 void addAttribute(const Attribute& att) { m_vAttributes.push_back(att); }
00054
00059 const AttributesIterator begin() const { return m_vAttributes.begin(); }
00060
00065 const AttributesIterator end() const { return m_vAttributes.end(); }
00066
00070 void clear() { m_vAttributes.clear(); }
00071
00072 private:
00074 vector<Attribute> m_vAttributes;
00075 };
00076
00077 #endif