attributesimpl.h

00001 /***************************************************************************
00002                           attributesimpl.h  -  description
00003                              -------------------
00004     begin                : mar avr 11 2006
00005     copyright            : (C) 2006 by 
00006                    - Sylvain Archenault <sylvain.archenault@laposte.net> 
00007                    - Yves Houpert <yves.houpert@insa-rouen.fr>
00008  
00009  ***************************************************************************/
00010 
00011 /***************************************************************************
00012  *                                                                         *
00013  *   This program is free software; you can redistribute it and/or modify  *
00014  *   it under the terms of the GNU General Public License as published by  *
00015  *   the Free Software Foundation; either version 2 of the License, or     *
00016  *   (at your option) any later version.                                   *
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: //private members
00074   vector<Attribute> m_vAttributes;
00075 };
00076 
00077 #endif

Generated on Fri May 19 12:15:54 2006 for Bamboo Ch@t by  doxygen 1.4.6