wsdlpull
1.23
Loading...
Searching...
No Matches
src
schemaparser
Annotation.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 _ANNOTATIONH
22
#define _ANNOTATIONH
23
24
#include <string>
25
#include <vector>
26
27
namespace
Schema
{
28
29
typedef
struct
30
{
31
public
:
32
std::string
source
;
33
std::string
appinfo
;
34
}
Appinfo
;
35
36
typedef
struct
37
{
38
public
:
39
std::string
source
;
40
std::string
lang
;
41
std::string
documentation
;
42
}
Documentation
;
43
44
45
class
WSDLPULL_EXPORT
Annotation
46
{
47
public
:
48
Annotation
(
void
);
49
void
addAppinfo(
Appinfo
appinfo);
50
void
addDocumentation(
Documentation
documentation);
51
std::vector<Appinfo> getAppinfos();
52
std::vector<Documentation> getDocumentations();
53
54
private
:
55
std::vector<Appinfo> appinfos_;
56
std::vector<Documentation> documentations_;
57
};
58
59
inline
60
Annotation::Annotation
()
61
{
62
}
63
64
inline
65
void
Annotation::addAppinfo
(
Schema::Appinfo
appinfo)
66
{
67
appinfos_.push_back(appinfo);
68
}
69
70
inline
71
void
Annotation::addDocumentation
(
Schema::Documentation
documentation)
72
{
73
documentations_.push_back(documentation);
74
}
75
76
inline
77
std::vector<Schema::Appinfo>
Annotation::getAppinfos
()
78
{
79
return
appinfos_;
80
}
81
82
inline
83
std::vector<Schema::Documentation>
Annotation::getDocumentations
()
84
{
85
return
documentations_;
86
}
87
}
88
#endif
Schema::Annotation
Definition
Annotation.h:46
Schema::Annotation::addDocumentation
void addDocumentation(Documentation documentation)
Definition
Annotation.h:71
Schema::Annotation::getAppinfos
std::vector< Appinfo > getAppinfos()
Definition
Annotation.h:77
Schema::Annotation::Annotation
Annotation(void)
Definition
Annotation.h:60
Schema::Annotation::addAppinfo
void addAppinfo(Appinfo appinfo)
Definition
Annotation.h:65
Schema::Annotation::getDocumentations
std::vector< Documentation > getDocumentations()
Definition
Annotation.h:83
Schema
Definition
Annotation.h:27
Schema::Appinfo
Definition
Annotation.h:30
Schema::Appinfo::appinfo
std::string appinfo
Definition
Annotation.h:33
Schema::Appinfo::source
std::string source
Definition
Annotation.h:32
Schema::Documentation
Definition
Annotation.h:37
Schema::Documentation::source
std::string source
Definition
Annotation.h:39
Schema::Documentation::lang
std::string lang
Definition
Annotation.h:40
Schema::Documentation::documentation
std::string documentation
Definition
Annotation.h:41
WSDLPULL_EXPORT
#define WSDLPULL_EXPORT
Definition
wsdlpull_export.h:30
Generated by
1.10.0