annotate GEMBASSY-1.0.3/gsoap/wsdl/includes.h @ 1:84a17b3fad1f draft

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