wsdlpull 1.23
Loading...
Searching...
No Matches
AttributeGroup.h
Go to the documentation of this file.
1/*
2 * wsdlpull - A C++ parser for WSDL (Web services description language)
3 * Copyright (C) 2005-2007 Vivek Krishna
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Library General Public
7 * License as published by the Free Software Foundation; either
8 * version 2 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Library General Public License for more details.
14 *
15 * You should have received a copy of the GNU Library General Public
16 * License along with this library; if not, write to the Free
17 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
18 *
19 */
20
21#ifndef ATTRIBUTEGROUP_H
22
23#define ATTRIBUTEGROUP_H
24// *********************************************************************
25// Include files:
26// *********************************************************************
27#include <list>
29#include "schemaparser/Schema.h"
31
32namespace Schema {
34{
35 public:
37 AttributeGroup(const std::string & n);
38 void addAttribute(const Attribute& a);
39 std::string getName()const;
40 std::list<Attribute>::iterator begin();
41 std::list<Attribute>::iterator end();
42
43 private:
44 std::list<Attribute> att_list;
45 std::string name;
46
47};
48
49inline
50AttributeGroup::AttributeGroup(const std::string & n)
51 :name(n)
52{
53 att_list.clear();
54}
55
56inline
57void
59{
60 att_list.push_back(a);
61}
62
63inline
64std::list<Attribute>::iterator
66{
67 return att_list.begin();
68}
69
70inline
71std::list<Attribute>::iterator
73{
74 return att_list.end();
75}
76
77inline
78std::string
80{
81 return name;
82}
83}
84#endif // ATTRIBUTEGROUP_H
std::list< Attribute >::iterator end()
void addAttribute(const Attribute &a)
std::list< Attribute >::iterator begin()
std::string getName() const
#define WSDLPULL_EXPORT