1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
|
/*
includes.h
--------------------------------------------------------------------------------
gSOAP XML Web services tools
Copyright (C) 2001-2006, Robert van Engelen, Genivia Inc. All Rights Reserved.
This software is released under one of the following two licenses:
GPL or Genivia's license for commercial use.
--------------------------------------------------------------------------------
GPL license.
This program is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation; either version 2 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program; if not, write to the Free Software Foundation, Inc., 59 Temple
Place, Suite 330, Boston, MA 02111-1307 USA
Author contact information:
engelen@genivia.com / engelen@acm.org
--------------------------------------------------------------------------------
A commercial use license is available from Genivia, Inc., contact@genivia.com
--------------------------------------------------------------------------------
*/
#ifndef INCLUDES_H
#define INCLUDES_H
#include "stdsoap2.h"
#undef VERSION
#define VERSION "1.2.6e"
#include <utility>
#include <iterator>
#include <vector>
#include <set>
#include <map>
using namespace std;
struct ltstr
{ bool operator()(const char *s1, const char *s2) const
{ return strcmp(s1, s2) < 0;
}
};
typedef set<const char*, ltstr> SetOfString;
typedef pair<const char*, const char*> Pair;
struct ltpair
{ bool operator()(Pair s1, Pair s2) const
{ int cmp = strcmp(s1.first, s2.first);
if (cmp)
return cmp < 0;
return strcmp(s1.second, s2.second) < 0;
}
};
typedef map<const char*, const char*, ltstr> MapOfStringToString;
typedef map<Pair, const char*, ltpair> MapOfPairToString;
typedef map<const char*, size_t, ltstr> MapOfStringToNum;
typedef vector<const char*> VectorOfString;
extern int aflag,
cflag,
dflag,
eflag,
fflag,
gflag,
iflag,
lflag,
mflag,
pflag,
sflag,
uflag,
vflag,
wflag,
xflag,
yflag,
zflag;
extern FILE *stream;
extern SetOfString exturis;
extern int infiles;
extern char *infile[100], *outfile, *mapfile, *proxy_host, *import_path;
extern int proxy_port;
extern const char *service_prefix;
extern const char *schema_prefix;
extern char elementformat[];
extern char pointerformat[];
extern char attributeformat[];
extern char vectorformat[];
extern char pointervectorformat[];
extern char arrayformat[];
extern char sizeformat[];
extern char offsetformat[];
extern char choiceformat[];
extern char schemaformat[];
extern char serviceformat[];
extern char paraformat[];
extern char anonformat[];
extern char copyrightnotice[];
extern char licensenotice[];
extern void *emalloc(size_t size);
extern char *estrdup(const char *s);
#endif
|