wsdlpull
1.23
Toggle main menu visibility
Loading...
Searching...
No Matches
src
schemaparser
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>
28
#include "
xmlpull/wsdlpull_export.h
"
29
#include "
schemaparser/Schema.h
"
30
#include "
schemaparser/Attribute.h
"
31
32
namespace
Schema
{
33
class
WSDLPULL_EXPORT
AttributeGroup
34
{
35
public
:
36
AttributeGroup
();
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
49
inline
50
AttributeGroup::AttributeGroup
(
const
std::string & n)
51
:name(n)
52
{
53
att_list.clear();
54
}
55
56
inline
57
void
58
AttributeGroup::addAttribute
(
const
Attribute
& a)
59
{
60
att_list.push_back(a);
61
}
62
63
inline
64
std::list<Attribute>::iterator
65
AttributeGroup::begin
()
66
{
67
return
att_list.begin();
68
}
69
70
inline
71
std::list<Attribute>::iterator
72
AttributeGroup::end
()
73
{
74
return
att_list.end();
75
}
76
77
inline
78
std::string
79
AttributeGroup::getName
()
const
80
{
81
return
name;
82
}
83
}
84
#endif
// ATTRIBUTEGROUP_H
Attribute.h
Schema.h
Schema::AttributeGroup::end
std::list< Attribute >::iterator end()
Definition
AttributeGroup.h:72
Schema::AttributeGroup::addAttribute
void addAttribute(const Attribute &a)
Definition
AttributeGroup.h:58
Schema::AttributeGroup::begin
std::list< Attribute >::iterator begin()
Definition
AttributeGroup.h:65
Schema::AttributeGroup::AttributeGroup
AttributeGroup()
Schema::AttributeGroup::getName
std::string getName() const
Definition
AttributeGroup.h:79
Schema::Attribute
Definition
Attribute.h:28
Schema
Definition
Annotation.h:27
wsdlpull_export.h
WSDLPULL_EXPORT
#define WSDLPULL_EXPORT
Definition
wsdlpull_export.h:30
Generated by
1.17.0