Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

AttributeGroup.h

Go to the documentation of this file.
00001 /* 
00002  * wsdlpull - A C++ parser  for WSDL  (Web services description language)
00003  * Copyright (C) 2005-2007 Vivek Krishna
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Library General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Library General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Library General Public
00016  * License along with this library; if not, write to the Free
00017  * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018  *
00019  */
00020 
00021 #ifndef ATTRIBUTEGROUP_H
00022 
00023 #define ATTRIBUTEGROUP_H
00024 // *********************************************************************
00025 // Include files:
00026 // *********************************************************************
00027 #include <list>
00028 #include <schemaparser/Schema.h>
00029 #include <schemaparser/Attribute.h>
00030 
00031 class AttributeGroup
00032 {
00033  public:
00034   AttributeGroup();
00035   AttributeGroup(const string & n);
00036   void addAttribute(const Attribute& a);
00037   string getName()const;
00038   list<Attribute>::iterator begin();
00039   list<Attribute>::iterator end();
00040 
00041  private:
00042   list<Attribute> att_list;
00043   string name;
00044   
00045 };
00046 
00047 inline
00048 AttributeGroup::AttributeGroup(const string & n)
00049   :name(n)
00050 {
00051   att_list.clear();
00052 }
00053 
00054 inline
00055 void
00056 AttributeGroup::addAttribute(const Attribute& a)
00057 {
00058   att_list.push_back(a);
00059 }
00060 
00061 inline
00062 list<Attribute>::iterator
00063 AttributeGroup::begin()
00064 {
00065  return att_list.begin();
00066 }
00067 
00068 inline
00069 list<Attribute>::iterator
00070 AttributeGroup::end()
00071 {
00072  return att_list.end();
00073 }
00074    
00075 inline
00076 string
00077 AttributeGroup::getName()const
00078 {
00079   return name;
00080 }
00081 
00082 #endif // ATTRIBUTEGROUP_H

Generated on Sun Oct 16 10:11:52 2005 for wsdlpull by  doxygen 1.3.9.1