Mercurial > repos > ktnyt > gembassy
comparison GEMBASSY-1.0.3/gsoap/wsdl/includes.h @ 0:8300eb051bea draft
Initial upload
author | ktnyt |
---|---|
date | Fri, 26 Jun 2015 05:19:29 -0400 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:8300eb051bea |
---|---|
1 /* | |
2 includes.h | |
3 | |
4 Common project definitions | |
5 | |
6 -------------------------------------------------------------------------------- | |
7 gSOAP XML Web services tools | |
8 Copyright (C) 2001-2012, Robert van Engelen, Genivia Inc. All Rights Reserved. | |
9 This software is released under one of the following licenses: | |
10 GPL or Genivia's license for commercial use. | |
11 -------------------------------------------------------------------------------- | |
12 GPL license. | |
13 | |
14 This program is free software; you can redistribute it and/or modify it under | |
15 the terms of the GNU General Public License as published by the Free Software | |
16 Foundation; either version 2 of the License, or (at your option) any later | |
17 version. | |
18 | |
19 This program is distributed in the hope that it will be useful, but WITHOUT ANY | |
20 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A | |
21 PARTICULAR PURPOSE. See the GNU General Public License for more details. | |
22 | |
23 You should have received a copy of the GNU General Public License along with | |
24 this program; if not, write to the Free Software Foundation, Inc., 59 Temple | |
25 Place, Suite 330, Boston, MA 02111-1307 USA | |
26 | |
27 Author contact information: | |
28 engelen@genivia.com / engelen@acm.org | |
29 -------------------------------------------------------------------------------- | |
30 A commercial use license is available from Genivia, Inc., contact@genivia.com | |
31 -------------------------------------------------------------------------------- | |
32 | |
33 */ | |
34 | |
35 #ifndef INCLUDES_H | |
36 #define INCLUDES_H | |
37 | |
38 #include "stdsoap2.h" | |
39 | |
40 #ifdef WITH_OPENSSL | |
41 #include "httpda.h" | |
42 #endif | |
43 | |
44 #define WSDL2H_VERSION "2.8.17r" | |
45 | |
46 #ifdef WIN32 | |
47 # pragma warning(disable : 4996) | |
48 #endif | |
49 | |
50 #include <utility> | |
51 #include <iterator> | |
52 #include <vector> | |
53 #include <set> | |
54 #include <map> | |
55 | |
56 using namespace std; | |
57 | |
58 struct ltstr | |
59 { bool operator()(const char *s1, const char *s2) const | |
60 { return strcmp(s1, s2) < 0; | |
61 } | |
62 }; | |
63 | |
64 struct eqstr | |
65 { const char *s; | |
66 eqstr(const char *s) : s(s) { } | |
67 bool operator()(const char *t) const | |
68 { return strcmp(s, t) == 0; | |
69 } | |
70 }; | |
71 | |
72 typedef set<const char*, ltstr> SetOfString; | |
73 | |
74 typedef pair<const char*, const char*> Pair; | |
75 | |
76 struct ltpair | |
77 { bool operator()(Pair s1, Pair s2) const | |
78 { int cmp = strcmp(s1.first, s2.first); | |
79 if (cmp == 0) | |
80 cmp = strcmp(s1.second, s2.second); | |
81 return cmp < 0; | |
82 } | |
83 }; | |
84 | |
85 typedef map<const char*, const char*, ltstr> MapOfStringToString; | |
86 | |
87 typedef map<Pair, const char*, ltpair> MapOfPairToString; | |
88 | |
89 typedef map<const char*, size_t, ltstr> MapOfStringToNum; | |
90 | |
91 typedef vector<const char*> VectorOfString; | |
92 | |
93 extern int _flag, | |
94 aflag, | |
95 bflag, | |
96 cflag, | |
97 dflag, | |
98 eflag, | |
99 fflag, | |
100 gflag, | |
101 iflag, | |
102 jflag, | |
103 kflag, | |
104 mflag, | |
105 pflag, | |
106 Pflag, | |
107 Rflag, | |
108 sflag, | |
109 uflag, | |
110 vflag, | |
111 wflag, | |
112 Wflag, | |
113 xflag, | |
114 yflag, | |
115 zflag; | |
116 | |
117 extern FILE *stream; | |
118 | |
119 extern SetOfString exturis; | |
120 | |
121 #define MAXINFILES (1000) | |
122 | |
123 extern int infiles; | |
124 extern char *infile[MAXINFILES], *outfile, *proxy_host, *proxy_userid, *proxy_passwd, *auth_userid, *auth_passwd; | |
125 extern const char *mapfile, *import_path, *cwd_path, *cppnamespace; | |
126 | |
127 extern int proxy_port; | |
128 | |
129 extern const char *service_prefix; | |
130 extern const char *schema_prefix; | |
131 | |
132 extern const char elementformat[]; | |
133 extern const char pointerformat[]; | |
134 extern const char attributeformat[]; | |
135 extern const char vectorformat_open[]; | |
136 extern const char vectorformat[]; | |
137 extern const char pointervectorformat[]; | |
138 extern const char arrayformat[]; | |
139 extern const char arraysizeformat[]; | |
140 extern const char arrayoffsetformat[]; | |
141 extern const char sizeformat[]; | |
142 extern const char choiceformat[]; | |
143 extern const char schemaformat[]; | |
144 extern const char serviceformat[]; | |
145 extern const char paraformat[]; | |
146 extern const char anonformat[]; | |
147 extern const char copyrightnotice[]; | |
148 extern const char licensenotice[]; | |
149 | |
150 extern void *emalloc(size_t size); | |
151 extern char *estrdup(const char *s); | |
152 extern char *estrdupf(const char *s); | |
153 | |
154 extern void text(const char*); | |
155 | |
156 class Types; | |
157 class Message; | |
158 class Operation; | |
159 class Service; | |
160 class Definitions; | |
161 | |
162 #endif |