Genivia Home Documentation
addressStub.h Source File

updated Tue Jul 4 2017 by Robert van Engelen
 
addressStub.h
Go to the documentation of this file.
1 /* addressStub.h
2  Generated by gSOAP 2.8.48 for address.h
3 
4 gSOAP XML Web services tools
5 Copyright (C) 2000-2017, Robert van Engelen, Genivia Inc. All Rights Reserved.
6 The soapcpp2 tool and its generated software are released under the GPL.
7 This program is released under the GPL with the additional exemption that
8 compiling, linking, and/or using OpenSSL is allowed.
9 --------------------------------------------------------------------------------
10 A commercial use license is available from Genivia Inc., contact@genivia.com
11 --------------------------------------------------------------------------------
12 */
13 
14 #include <vector>
15 #define SOAP_NAMESPACE_OF_a "urn:address-book-example"
16 
17 #ifndef addressStub_H
18 #define addressStub_H
19 #include "stdsoap2.h"
20 #if GSOAP_VERSION != 20848
21 # error "GSOAP VERSION 20848 MISMATCH IN GENERATED CODE VERSUS LIBRARY CODE: PLEASE REINSTALL PACKAGE"
22 #endif
23 
24 
25 /******************************************************************************\
26  * *
27  * Enumeration Types *
28  * *
29 \******************************************************************************/
30 
31 
32 /* address.h:153 */
33 #ifndef SOAP_TYPE_a__ISO_country
34 #define SOAP_TYPE_a__ISO_country (10)
35 /* a:ISO-country */
48 };
49 #endif
50 
51 /******************************************************************************\
52  * *
53  * Types with Custom Serializers *
54  * *
55 \******************************************************************************/
56 
57 
58 /******************************************************************************\
59  * *
60  * Classes, Structs and Unions *
61  * *
62 \******************************************************************************/
63 
64 class a__address; /* address.h:136 */
65 class _a__address_book; /* address.h:139 */
66 
67 /* address.h:136 */
68 #ifndef SOAP_TYPE_a__address
69 #define SOAP_TYPE_a__address (8)
70 /* complex XSD type 'a:address': */
71 class SOAP_CMAC a__address {
72  public:
74  std::string name;
76  std::string street;
78  std::string city;
80  std::string zip;
82  enum a__ISO_country country;
83  std::string *phone;
86  std::string *mobile;
88  time_t *dob;
90  int ID;
92  struct soap *soap;
93  public:
95  virtual int soap_type(void) const { return SOAP_TYPE_a__address; }
97  virtual void soap_default(struct soap*);
99  virtual void soap_serialize(struct soap*) const;
101  virtual int soap_put(struct soap*, const char *tag, const char *type) const;
103  virtual int soap_out(struct soap*, const char *tag, int id, const char *type) const;
105  virtual void *soap_get(struct soap*, const char *tag, const char *type);
107  virtual void *soap_in(struct soap*, const char *tag, const char *type);
109  virtual a__address *soap_alloc(void) const { return SOAP_NEW(a__address); }
110  public:
113  {
114  country = (enum a__ISO_country)10;
115  phone = (std::string *)0;
116  mobile = (std::string *)0;
117  dob = (time_t *)0;
118  ID = (int)0;
119  soap = (struct soap *)0;
120  }
121  virtual ~a__address() { }
123  friend SOAP_FMAC1 a__address * SOAP_FMAC2 address_instantiate_a__address(struct soap*, int, const char*, const char*, size_t*);
124 };
125 #endif
126 
127 /* address.h:139 */
128 #ifndef SOAP_TYPE__a__address_book
129 #define SOAP_TYPE__a__address_book (9)
130 /* complex XSD type 'a:address-book': */
131 class SOAP_CMAC _a__address_book {
132  public:
134  std::vector<a__address *> address;
136  struct soap *soap;
137  public:
139  virtual int soap_type(void) const { return SOAP_TYPE__a__address_book; }
141  virtual void soap_default(struct soap*);
143  virtual void soap_serialize(struct soap*) const;
145  virtual int soap_put(struct soap*, const char *tag, const char *type) const;
147  virtual int soap_out(struct soap*, const char *tag, int id, const char *type) const;
149  virtual void *soap_get(struct soap*, const char *tag, const char *type);
151  virtual void *soap_in(struct soap*, const char *tag, const char *type);
153  virtual _a__address_book *soap_alloc(void) const { return SOAP_NEW(_a__address_book); }
154  public:
157  {
158  soap = (struct soap *)0;
159  }
160  virtual ~_a__address_book() { }
162  friend SOAP_FMAC1 _a__address_book * SOAP_FMAC2 address_instantiate__a__address_book(struct soap*, int, const char*, const char*, size_t*);
163 };
164 #endif
165 
166 /* address.h:279 */
167 #ifndef WITH_NOGLOBAL
168 #ifndef SOAP_TYPE_SOAP_ENV__Header
169 #define SOAP_TYPE_SOAP_ENV__Header (18)
170 /* SOAP_ENV__Header: */
171 struct SOAP_CMAC SOAP_ENV__Header {
172  public:
174  int soap_type() const { return SOAP_TYPE_SOAP_ENV__Header; }
177  {
178  }
180  friend SOAP_FMAC1 SOAP_ENV__Header * SOAP_FMAC2 address_instantiate_SOAP_ENV__Header(struct soap*, int, const char*, const char*, size_t*);
181 };
182 #endif
183 #endif
184 
185 /* address.h:279 */
186 #ifndef WITH_NOGLOBAL
187 #ifndef SOAP_TYPE_SOAP_ENV__Code
188 #define SOAP_TYPE_SOAP_ENV__Code (19)
189 /* Type SOAP_ENV__Code is a recursive data type, (in)directly referencing itself through its (base or derived class) members */
190 /* SOAP_ENV__Code: */
191 struct SOAP_CMAC SOAP_ENV__Code {
192  public:
197  public:
199  int soap_type() const { return SOAP_TYPE_SOAP_ENV__Code; }
202  {
203  SOAP_ENV__Value = (char *)0;
204  SOAP_ENV__Subcode = (struct SOAP_ENV__Code *)0;
205  }
207  friend SOAP_FMAC1 SOAP_ENV__Code * SOAP_FMAC2 address_instantiate_SOAP_ENV__Code(struct soap*, int, const char*, const char*, size_t*);
208 };
209 #endif
210 #endif
211 
212 /* address.h:279 */
213 #ifndef WITH_NOGLOBAL
214 #ifndef SOAP_TYPE_SOAP_ENV__Detail
215 #define SOAP_TYPE_SOAP_ENV__Detail (21)
216 /* SOAP_ENV__Detail: */
217 struct SOAP_CMAC SOAP_ENV__Detail {
218  public:
219  char *__any;
222  int __type;
223  void *fault;
224  public:
226  int soap_type() const { return SOAP_TYPE_SOAP_ENV__Detail; }
229  {
230  __any = (char *)0;
231  __type = 0;
232  fault = NULL;
233  }
235  friend SOAP_FMAC1 SOAP_ENV__Detail * SOAP_FMAC2 address_instantiate_SOAP_ENV__Detail(struct soap*, int, const char*, const char*, size_t*);
236 };
237 #endif
238 #endif
239 
240 /* address.h:279 */
241 #ifndef WITH_NOGLOBAL
242 #ifndef SOAP_TYPE_SOAP_ENV__Reason
243 #define SOAP_TYPE_SOAP_ENV__Reason (24)
244 /* SOAP_ENV__Reason: */
245 struct SOAP_CMAC SOAP_ENV__Reason {
246  public:
249  public:
251  int soap_type() const { return SOAP_TYPE_SOAP_ENV__Reason; }
254  {
255  SOAP_ENV__Text = (char *)0;
256  }
258  friend SOAP_FMAC1 SOAP_ENV__Reason * SOAP_FMAC2 address_instantiate_SOAP_ENV__Reason(struct soap*, int, const char*, const char*, size_t*);
259 };
260 #endif
261 #endif
262 
263 /* address.h:279 */
264 #ifndef WITH_NOGLOBAL
265 #ifndef SOAP_TYPE_SOAP_ENV__Fault
266 #define SOAP_TYPE_SOAP_ENV__Fault (25)
267 /* SOAP_ENV__Fault: */
268 struct SOAP_CMAC SOAP_ENV__Fault {
269  public:
271  char *faultcode;
273  char *faultstring;
275  char *faultactor;
288  public:
290  int soap_type() const { return SOAP_TYPE_SOAP_ENV__Fault; }
293  {
294  faultcode = (char *)0;
295  faultstring = (char *)0;
296  faultactor = (char *)0;
297  detail = (struct SOAP_ENV__Detail *)0;
298  SOAP_ENV__Code = (struct SOAP_ENV__Code *)0;
299  SOAP_ENV__Reason = (struct SOAP_ENV__Reason *)0;
300  SOAP_ENV__Node = (char *)0;
301  SOAP_ENV__Role = (char *)0;
302  SOAP_ENV__Detail = (struct SOAP_ENV__Detail *)0;
303  }
305  friend SOAP_FMAC1 SOAP_ENV__Fault * SOAP_FMAC2 address_instantiate_SOAP_ENV__Fault(struct soap*, int, const char*, const char*, size_t*);
306 };
307 #endif
308 #endif
309 
310 /******************************************************************************\
311  * *
312  * Typedefs *
313  * *
314 \******************************************************************************/
315 
316 
317 /* stlvector.h:53 */
318 #ifndef SOAP_TYPE__QName
319 #define SOAP_TYPE__QName (5)
320 typedef char *_QName;
321 #endif
322 
323 /* stlvector.h:53 */
324 #ifndef SOAP_TYPE__XML
325 #define SOAP_TYPE__XML (6)
326 typedef char *_XML;
327 #endif
328 
329 /******************************************************************************\
330  * *
331  * Serializable Types *
332  * *
333 \******************************************************************************/
334 
335 
336 /* char has binding name 'byte' for type 'xsd:byte' */
337 #ifndef SOAP_TYPE_byte
338 #define SOAP_TYPE_byte (3)
339 #endif
340 
341 /* int has binding name 'int' for type 'xsd:int' */
342 #ifndef SOAP_TYPE_int
343 #define SOAP_TYPE_int (1)
344 #endif
345 
346 /* time_t has binding name 'dateTime' for type 'xsd:dateTime' */
347 #ifndef SOAP_TYPE_dateTime
348 #define SOAP_TYPE_dateTime (13)
349 #endif
350 
351 /* enum a__ISO_country has binding name 'a__ISO_country' for type 'a:ISO-country' */
352 #ifndef SOAP_TYPE_a__ISO_country
353 #define SOAP_TYPE_a__ISO_country (10)
354 #endif
355 
356 /* std::string has binding name 'std__string' for type 'xsd:string' */
357 #ifndef SOAP_TYPE_std__string
358 #define SOAP_TYPE_std__string (11)
359 #endif
360 
361 /* _a__address_book has binding name '_a__address_book' for type '' */
362 #ifndef SOAP_TYPE__a__address_book
363 #define SOAP_TYPE__a__address_book (9)
364 #endif
365 
366 /* a__address has binding name 'a__address' for type 'a:address' */
367 #ifndef SOAP_TYPE_a__address
368 #define SOAP_TYPE_a__address (8)
369 #endif
370 
371 /* struct SOAP_ENV__Fault has binding name 'SOAP_ENV__Fault' for type '' */
372 #ifndef SOAP_TYPE_SOAP_ENV__Fault
373 #define SOAP_TYPE_SOAP_ENV__Fault (25)
374 #endif
375 
376 /* struct SOAP_ENV__Reason has binding name 'SOAP_ENV__Reason' for type '' */
377 #ifndef SOAP_TYPE_SOAP_ENV__Reason
378 #define SOAP_TYPE_SOAP_ENV__Reason (24)
379 #endif
380 
381 /* struct SOAP_ENV__Detail has binding name 'SOAP_ENV__Detail' for type '' */
382 #ifndef SOAP_TYPE_SOAP_ENV__Detail
383 #define SOAP_TYPE_SOAP_ENV__Detail (21)
384 #endif
385 
386 /* struct SOAP_ENV__Code has binding name 'SOAP_ENV__Code' for type '' */
387 #ifndef SOAP_TYPE_SOAP_ENV__Code
388 #define SOAP_TYPE_SOAP_ENV__Code (19)
389 #endif
390 
391 /* struct SOAP_ENV__Header has binding name 'SOAP_ENV__Header' for type '' */
392 #ifndef SOAP_TYPE_SOAP_ENV__Header
393 #define SOAP_TYPE_SOAP_ENV__Header (18)
394 #endif
395 
396 /* struct SOAP_ENV__Reason * has binding name 'PointerToSOAP_ENV__Reason' for type '' */
397 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason
398 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (27)
399 #endif
400 
401 /* struct SOAP_ENV__Detail * has binding name 'PointerToSOAP_ENV__Detail' for type '' */
402 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail
403 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (26)
404 #endif
405 
406 /* struct SOAP_ENV__Code * has binding name 'PointerToSOAP_ENV__Code' for type '' */
407 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code
408 #define SOAP_TYPE_PointerToSOAP_ENV__Code (20)
409 #endif
410 
411 /* a__address * has binding name 'PointerToa__address' for type 'a:address' */
412 #ifndef SOAP_TYPE_PointerToa__address
413 #define SOAP_TYPE_PointerToa__address (16)
414 #endif
415 
416 /* time_t * has binding name 'PointerTodateTime' for type 'xsd:dateTime' */
417 #ifndef SOAP_TYPE_PointerTodateTime
418 #define SOAP_TYPE_PointerTodateTime (14)
419 #endif
420 
421 /* std::string * has binding name 'PointerTostd__string' for type 'xsd:string' */
422 #ifndef SOAP_TYPE_PointerTostd__string
423 #define SOAP_TYPE_PointerTostd__string (12)
424 #endif
425 
426 /* _XML has binding name '_XML' for type '' */
427 #ifndef SOAP_TYPE__XML
428 #define SOAP_TYPE__XML (6)
429 #endif
430 
431 /* _QName has binding name '_QName' for type 'xsd:QName' */
432 #ifndef SOAP_TYPE__QName
433 #define SOAP_TYPE__QName (5)
434 #endif
435 
436 /* char * has binding name 'string' for type 'xsd:string' */
437 #ifndef SOAP_TYPE_string
438 #define SOAP_TYPE_string (4)
439 #endif
440 
441 /* std::vector<a__address *> has binding name 'std__vectorTemplateOfPointerToa__address' for type 'a:address' */
442 #ifndef SOAP_TYPE_std__vectorTemplateOfPointerToa__address
443 #define SOAP_TYPE_std__vectorTemplateOfPointerToa__address (17)
444 #endif
445 
446 /******************************************************************************\
447  * *
448  * Externals *
449  * *
450 \******************************************************************************/
451 
452 
453 #endif
454 
455 /* End of addressStub.h */
int soap_type() const
Definition: addressStub.h:290
a__ISO_country
ISO country codes (limited to just a few for this example) Note: enum values are prefixed with &#39;a__IS...
Definition: address.h:152
SOAP_FMAC1 struct SOAP_ENV__Fault *SOAP_FMAC2 address_instantiate_SOAP_ENV__Fault(struct soap *, int, const char *, const char *, size_t *)
#define SOAP_TYPE_SOAP_ENV__Fault
Definition: addressStub.h:266
int soap_type() const
Definition: addressStub.h:174
SOAP_FMAC1 struct SOAP_ENV__Detail *SOAP_FMAC2 address_instantiate_SOAP_ENV__Detail(struct soap *, int, const char *, const char *, size_t *)
char * _XML
Definition: addressStub.h:326
int soap_type() const
Definition: addressStub.h:226
char * SOAP_ENV__Value
Definition: addressStub.h:194
struct SOAP_ENV__Detail * detail
Definition: addressStub.h:277
#define SOAP_TYPE_SOAP_ENV__Code
Definition: addressStub.h:188
SOAP_FMAC1 struct SOAP_ENV__Header *SOAP_FMAC2 address_instantiate_SOAP_ENV__Header(struct soap *, int, const char *, const char *, size_t *)
a__ISO_country
Definition: addressStub.h:36
struct SOAP_ENV__Code * SOAP_ENV__Code
Definition: addressStub.h:279
#define SOAP_TYPE_a__address
Definition: addressStub.h:69
_a__address_book()
Constructor with initializations.
Definition: addressStub.h:156
struct SOAP_ENV__Detail * SOAP_ENV__Detail
Definition: addressStub.h:287
#define SOAP_TYPE_SOAP_ENV__Reason
Definition: addressStub.h:243
char * SOAP_ENV__Role
Definition: addressStub.h:285
int soap_type() const
Definition: addressStub.h:199
struct SOAP_ENV__Reason * SOAP_ENV__Reason
Definition: addressStub.h:281
char * faultstring
Definition: addressStub.h:273
An address information item.
Definition: address.h:177
virtual int soap_type(void) const
Return unique type id SOAP_TYPE__a__address_book.
Definition: addressStub.h:139
char * _QName
Definition: addressStub.h:320
#define SOAP_TYPE__a__address_book
Definition: addressStub.h:129
#define SOAP_TYPE_SOAP_ENV__Header
Definition: addressStub.h:169
virtual a__address * soap_alloc(void) const
Return a new object of type a__address, default initialized and not managed by a soap context...
Definition: addressStub.h:109
virtual int soap_type(void) const
Return unique type id SOAP_TYPE_a__address.
Definition: addressStub.h:95
SOAP_FMAC1 struct SOAP_ENV__Reason *SOAP_FMAC2 address_instantiate_SOAP_ENV__Reason(struct soap *, int, const char *, const char *, size_t *)
char * SOAP_ENV__Text
Definition: addressStub.h:248
SOAP_FMAC1 struct SOAP_ENV__Code *SOAP_FMAC2 address_instantiate_SOAP_ENV__Code(struct soap *, int, const char *, const char *, size_t *)
The root element of the address book schema.
Definition: address.h:206
a__address()
Constructor with initializations.
Definition: addressStub.h:112
virtual _a__address_book * soap_alloc(void) const
Return a new object of type _a__address_book, default initialized and not managed by a soap context...
Definition: addressStub.h:153
SOAP_FMAC1 _a__address_book *SOAP_FMAC2 address_instantiate__a__address_book(struct soap *, int, const char *, const char *, size_t *)
#define SOAP_TYPE_SOAP_ENV__Detail
Definition: addressStub.h:215
struct SOAP_ENV__Code * SOAP_ENV__Subcode
Definition: addressStub.h:196
char * SOAP_ENV__Node
Definition: addressStub.h:283
int soap_type() const
Definition: addressStub.h:251
virtual ~a__address()
Definition: addressStub.h:121
SOAP_FMAC1 a__address *SOAP_FMAC2 address_instantiate_a__address(struct soap *, int, const char *, const char *, size_t *)
virtual ~_a__address_book()
Definition: addressStub.h:160