includes.h

00001 /*
00002 
00003 includes.h
00004 
00005 --------------------------------------------------------------------------------
00006 gSOAP XML Web services tools
00007 Copyright (C) 2001-2004, Robert van Engelen, Genivia, Inc. All Rights Reserved.
00008 
00009 GPL license.
00010 
00011 This program is free software; you can redistribute it and/or modify it under
00012 the terms of the GNU General Public License as published by the Free Software
00013 Foundation; either version 2 of the License, or (at your option) any later
00014 version.
00015 
00016 This program is distributed in the hope that it will be useful, but WITHOUT ANY
00017 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
00018 PARTICULAR PURPOSE. See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License along with
00021 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
00022 Place, Suite 330, Boston, MA 02111-1307 USA
00023 
00024 Author contact information:
00025 engelen@genivia.com / engelen@acm.org
00026 --------------------------------------------------------------------------------
00027 
00028 */
00029 
00030 #ifndef INCLUDES_H
00031 #define INCLUDES_H
00032 
00033 #include "stdsoap2.h"
00034 
00035 #undef VERSION
00036 #define VERSION "1.0.4"
00037 
00038 #include <utility>
00039 #include <iterator>
00040 #include <set>
00041 #include <map>
00042 
00043 using namespace std;
00044 
00045 struct ltstr
00046 { bool operator()(const char *s1, const char *s2) const
00047   { return strcmp(s1, s2) < 0;
00048   }
00049 }; 
00050 
00051 typedef set<const char*, ltstr> SetOfString;
00052 
00053 typedef pair<const char*, const char*> Pair;
00054 
00055 struct ltpair
00056 { bool operator()(Pair s1, Pair s2) const
00057   { int cmp = strcmp(s1.first, s2.first);
00058     if (cmp)
00059       return cmp < 0;
00060     return strcmp(s1.second, s2.second) < 0;
00061   }
00062 };
00063 
00064 typedef map<const char*, const char*, ltstr> MapOfStringToString;
00065 
00066 typedef map<Pair, const char*, ltpair> MapOfPairToString;
00067 
00068 typedef map<const char*, size_t, ltstr> MapOfStringToNum;
00069 
00070 extern int cflag, fflag, lflag, mflag, pflag, sflag, vflag;
00071 
00072 extern FILE *stream;
00073 
00074 extern char *infile, *outfile, *mapfile;
00075 
00076 extern const char *prefix_name;
00077 
00078 extern char elementformat[];
00079 extern char pointerformat[];
00080 extern char attributeformat[];
00081 extern char vectorformat[];
00082 extern char arrayformat[];
00083 extern char sizeformat[];
00084 extern char schemaformat[];
00085 extern char serviceformat[];
00086 extern char paraformat[];
00087 extern char anonformat[];
00088 extern char copyrightnotice[];
00089 extern char licensenotice[];
00090 
00091 extern void *emalloc(size_t size);
00092 extern char *estrdup(const char *s);
00093 
00094 #endif

Generated on Mon Jun 5 10:20:42 2006 for Intelligence.kdevelop by  doxygen 1.4.6