wsdlpull 1.23
Loading...
Searching...
No Matches
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
27namespace 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;
43
44
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
59inline
61{
62}
63
64inline
66{
67 appinfos_.push_back(appinfo);
68}
69
70inline
72{
73 documentations_.push_back(documentation);
74}
75
76inline
77std::vector<Schema::Appinfo> Annotation::getAppinfos()
78{
79 return appinfos_;
80}
81
82inline
83std::vector<Schema::Documentation> Annotation::getDocumentations()
84{
85 return documentations_;
86}
87}
88#endif
void addDocumentation(Documentation documentation)
Definition: Annotation.h:71
std::vector< Appinfo > getAppinfos()
Definition: Annotation.h:77
void addAppinfo(Appinfo appinfo)
Definition: Annotation.h:65
std::vector< Documentation > getDocumentations()
Definition: Annotation.h:83
std::string appinfo
Definition: Annotation.h:33
std::string source
Definition: Annotation.h:32
std::string source
Definition: Annotation.h:39
std::string lang
Definition: Annotation.h:40
std::string documentation
Definition: Annotation.h:41
#define WSDLPULL_EXPORT