wsdlpull 1.23
|
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 _ANNOTATIONH 00022 #define _ANNOTATIONH 00023 00024 #include <string> 00025 #include <vector> 00026 00027 namespace Schema { 00028 00029 typedef struct 00030 { 00031 public: 00032 std::string source; 00033 std::string appinfo; 00034 } Appinfo; 00035 00036 typedef struct 00037 { 00038 public: 00039 std::string source; 00040 std::string lang; 00041 std::string documentation; 00042 } Documentation; 00043 00044 00045 class WSDLPULL_EXPORT Annotation 00046 { 00047 public: 00048 Annotation(void); 00049 void addAppinfo(Appinfo appinfo); 00050 void addDocumentation(Documentation documentation); 00051 std::vector<Appinfo> getAppinfos(); 00052 std::vector<Documentation> getDocumentations(); 00053 00054 private: 00055 std::vector<Appinfo> appinfos_; 00056 std::vector<Documentation> documentations_; 00057 }; 00058 00059 inline 00060 Annotation::Annotation() 00061 { 00062 } 00063 00064 inline 00065 void Annotation::addAppinfo(Schema::Appinfo appinfo) 00066 { 00067 appinfos_.push_back(appinfo); 00068 } 00069 00070 inline 00071 void Annotation::addDocumentation(Schema::Documentation documentation) 00072 { 00073 documentations_.push_back(documentation); 00074 } 00075 00076 inline 00077 std::vector<Schema::Appinfo> Annotation::getAppinfos() 00078 { 00079 return appinfos_; 00080 } 00081 00082 inline 00083 std::vector<Schema::Documentation> Annotation::getDocumentations() 00084 { 00085 return documentations_; 00086 } 00087 } 00088 #endif