Genivia Home Documentation
addressStub.h Source File

updated Thu Dec 22 2022 by Robert van Engelen
 
addressStub.h
Go to the documentation of this file.
1 /* addressStub.h
2  Generated by gSOAP 2.8.124 for ../../../gsoap/samples/databinding/address.h
3 
4 gSOAP XML Web services tools
5 Copyright (C) 2000-2022, 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 != 208124
21 # error "GSOAP VERSION 208124 MISMATCH IN GENERATED CODE VERSUS LIBRARY CODE: PLEASE REINSTALL PACKAGE"
22 #endif
23 
24 
25 /******************************************************************************\
26  * *
27  * Enumeration Types *
28  * *
29 \******************************************************************************/
30 
31 
32 /* ../../../gsoap/samples/databinding/address.h:182 */
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; /* ../../../gsoap/samples/databinding/address.h:162 */
65 class _a__address_book; /* ../../../gsoap/samples/databinding/address.h:164 */
66 
67 /* ../../../gsoap/samples/databinding/address.h:162 */
68 #ifndef SOAP_TYPE_a__address
69 #define SOAP_TYPE_a__address (8)
70 /* complex XML schema 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;
84  std::string *phone;
86  std::string *mobile;
88  time_t *dob;
90  int ID;
92  struct soap *soap;
93  public:
95  virtual long 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_UNMANAGED(a__address); }
110  public:
112  a__address() : name(), street(), city(), zip(), country((enum a__ISO_country)10), phone(), mobile(), dob(), ID(), soap() { }
114  virtual ~a__address() { }
116  friend SOAP_FMAC1 a__address * SOAP_FMAC2 address_instantiate_a__address(struct soap*, int, const char*, const char*, size_t*);
117 };
118 #endif
119 
120 /* ../../../gsoap/samples/databinding/address.h:164 */
121 #ifndef SOAP_TYPE__a__address_book
122 #define SOAP_TYPE__a__address_book (9)
123 /* complex XML schema type 'a:address-book': */
124 class SOAP_CMAC _a__address_book {
125  public:
129  struct soap *soap;
130  public:
132  virtual long soap_type(void) const { return SOAP_TYPE__a__address_book; }
134  virtual void soap_default(struct soap*);
136  virtual void soap_serialize(struct soap*) const;
138  virtual int soap_put(struct soap*, const char *tag, const char *type) const;
140  virtual int soap_out(struct soap*, const char *tag, int id, const char *type) const;
142  virtual void *soap_get(struct soap*, const char *tag, const char *type);
144  virtual void *soap_in(struct soap*, const char *tag, const char *type);
146  virtual _a__address_book *soap_alloc(void) const { return SOAP_NEW_UNMANAGED(_a__address_book); }
147  public:
149  _a__address_book() : address(), soap() { }
151  virtual ~_a__address_book() { }
153  friend SOAP_FMAC1 _a__address_book * SOAP_FMAC2 address_instantiate__a__address_book(struct soap*, int, const char*, const char*, size_t*);
154 };
155 #endif
156 
157 /* ../../../gsoap/samples/databinding/address.h:354 */
158 #ifndef WITH_NOGLOBAL
159 #ifndef SOAP_TYPE_SOAP_ENV__Header
160 #define SOAP_TYPE_SOAP_ENV__Header (18)
161 /* SOAP_ENV__Header: */
162 struct SOAP_CMAC SOAP_ENV__Header {
163  public:
165  long soap_type() const { return SOAP_TYPE_SOAP_ENV__Header; }
169  friend SOAP_FMAC1 SOAP_ENV__Header * SOAP_FMAC2 address_instantiate_SOAP_ENV__Header(struct soap*, int, const char*, const char*, size_t*);
170 };
171 #endif
172 #endif
173 
174 /* ../../../gsoap/samples/databinding/address.h:354 */
175 #ifndef WITH_NOGLOBAL
176 #ifndef SOAP_TYPE_SOAP_ENV__Code
177 #define SOAP_TYPE_SOAP_ENV__Code (19)
178 /* Type SOAP_ENV__Code is a recursive data type, (in)directly referencing itself through its (base or derived class) members */
179 /* SOAP_ENV__Code: */
180 struct SOAP_CMAC SOAP_ENV__Code {
181  public:
186  public:
188  long soap_type() const { return SOAP_TYPE_SOAP_ENV__Code; }
192  friend SOAP_FMAC1 SOAP_ENV__Code * SOAP_FMAC2 address_instantiate_SOAP_ENV__Code(struct soap*, int, const char*, const char*, size_t*);
193 };
194 #endif
195 #endif
196 
197 /* ../../../gsoap/samples/databinding/address.h:354 */
198 #ifndef WITH_NOGLOBAL
199 #ifndef SOAP_TYPE_SOAP_ENV__Detail
200 #define SOAP_TYPE_SOAP_ENV__Detail (21)
201 /* SOAP_ENV__Detail: */
202 struct SOAP_CMAC SOAP_ENV__Detail {
203  public:
204  char *__any;
207  int __type;
208  void *fault;
209  public:
211  long soap_type() const { return SOAP_TYPE_SOAP_ENV__Detail; }
213  SOAP_ENV__Detail() : __any(), __type(), fault() { }
215  friend SOAP_FMAC1 SOAP_ENV__Detail * SOAP_FMAC2 address_instantiate_SOAP_ENV__Detail(struct soap*, int, const char*, const char*, size_t*);
216 };
217 #endif
218 #endif
219 
220 /* ../../../gsoap/samples/databinding/address.h:354 */
221 #ifndef WITH_NOGLOBAL
222 #ifndef SOAP_TYPE_SOAP_ENV__Reason
223 #define SOAP_TYPE_SOAP_ENV__Reason (24)
224 /* SOAP_ENV__Reason: */
225 struct SOAP_CMAC SOAP_ENV__Reason {
226  public:
229  public:
231  long soap_type() const { return SOAP_TYPE_SOAP_ENV__Reason; }
233  SOAP_ENV__Reason() : SOAP_ENV__Text() { }
235  friend SOAP_FMAC1 SOAP_ENV__Reason * SOAP_FMAC2 address_instantiate_SOAP_ENV__Reason(struct soap*, int, const char*, const char*, size_t*);
236 };
237 #endif
238 #endif
239 
240 /* ../../../gsoap/samples/databinding/address.h:354 */
241 #ifndef WITH_NOGLOBAL
242 #ifndef SOAP_TYPE_SOAP_ENV__Fault
243 #define SOAP_TYPE_SOAP_ENV__Fault (25)
244 /* SOAP_ENV__Fault: */
245 struct SOAP_CMAC SOAP_ENV__Fault {
246  public:
248  char *faultcode;
250  char *faultstring;
252  char *faultactor;
265  public:
267  long soap_type() const { return SOAP_TYPE_SOAP_ENV__Fault; }
269  SOAP_ENV__Fault() : faultcode(), faultstring(), faultactor(), detail(), SOAP_ENV__Code(), SOAP_ENV__Reason(), SOAP_ENV__Node(), SOAP_ENV__Role(), SOAP_ENV__Detail() { }
271  friend SOAP_FMAC1 SOAP_ENV__Fault * SOAP_FMAC2 address_instantiate_SOAP_ENV__Fault(struct soap*, int, const char*, const char*, size_t*);
272 };
273 #endif
274 #endif
275 
276 /******************************************************************************\
277  * *
278  * Typedefs *
279  * *
280 \******************************************************************************/
281 
282 
283 /* (built-in):0 */
284 #ifndef SOAP_TYPE__XML
285 #define SOAP_TYPE__XML (5)
286 typedef char *_XML;
287 #endif
288 
289 /* (built-in):0 */
290 #ifndef SOAP_TYPE__QName
291 #define SOAP_TYPE__QName (6)
292 typedef char *_QName;
293 #endif
294 
295 /******************************************************************************\
296  * *
297  * Serializable Types *
298  * *
299 \******************************************************************************/
300 
301 
302 /* char has binding name 'byte' for type 'xsd:byte' */
303 #ifndef SOAP_TYPE_byte
304 #define SOAP_TYPE_byte (3)
305 #endif
306 
307 /* int has binding name 'int' for type 'xsd:int' */
308 #ifndef SOAP_TYPE_int
309 #define SOAP_TYPE_int (1)
310 #endif
311 
312 /* time_t has binding name 'dateTime' for type 'xsd:dateTime' */
313 #ifndef SOAP_TYPE_dateTime
314 #define SOAP_TYPE_dateTime (13)
315 #endif
316 
317 /* enum a__ISO_country has binding name 'a__ISO_country' for type 'a:ISO-country' */
318 #ifndef SOAP_TYPE_a__ISO_country
319 #define SOAP_TYPE_a__ISO_country (10)
320 #endif
321 
322 /* std::string has binding name 'std__string' for type 'xsd:string' */
323 #ifndef SOAP_TYPE_std__string
324 #define SOAP_TYPE_std__string (11)
325 #endif
326 
327 /* _a__address_book has binding name '_a__address_book' for type '' */
328 #ifndef SOAP_TYPE__a__address_book
329 #define SOAP_TYPE__a__address_book (9)
330 #endif
331 
332 /* a__address has binding name 'a__address' for type 'a:address' */
333 #ifndef SOAP_TYPE_a__address
334 #define SOAP_TYPE_a__address (8)
335 #endif
336 
337 /* struct SOAP_ENV__Fault has binding name 'SOAP_ENV__Fault' for type '' */
338 #ifndef SOAP_TYPE_SOAP_ENV__Fault
339 #define SOAP_TYPE_SOAP_ENV__Fault (25)
340 #endif
341 
342 /* struct SOAP_ENV__Reason has binding name 'SOAP_ENV__Reason' for type '' */
343 #ifndef SOAP_TYPE_SOAP_ENV__Reason
344 #define SOAP_TYPE_SOAP_ENV__Reason (24)
345 #endif
346 
347 /* struct SOAP_ENV__Detail has binding name 'SOAP_ENV__Detail' for type '' */
348 #ifndef SOAP_TYPE_SOAP_ENV__Detail
349 #define SOAP_TYPE_SOAP_ENV__Detail (21)
350 #endif
351 
352 /* struct SOAP_ENV__Code has binding name 'SOAP_ENV__Code' for type '' */
353 #ifndef SOAP_TYPE_SOAP_ENV__Code
354 #define SOAP_TYPE_SOAP_ENV__Code (19)
355 #endif
356 
357 /* struct SOAP_ENV__Header has binding name 'SOAP_ENV__Header' for type '' */
358 #ifndef SOAP_TYPE_SOAP_ENV__Header
359 #define SOAP_TYPE_SOAP_ENV__Header (18)
360 #endif
361 
362 /* struct SOAP_ENV__Reason * has binding name 'PointerToSOAP_ENV__Reason' for type '' */
363 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Reason
364 #define SOAP_TYPE_PointerToSOAP_ENV__Reason (27)
365 #endif
366 
367 /* struct SOAP_ENV__Detail * has binding name 'PointerToSOAP_ENV__Detail' for type '' */
368 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Detail
369 #define SOAP_TYPE_PointerToSOAP_ENV__Detail (26)
370 #endif
371 
372 /* struct SOAP_ENV__Code * has binding name 'PointerToSOAP_ENV__Code' for type '' */
373 #ifndef SOAP_TYPE_PointerToSOAP_ENV__Code
374 #define SOAP_TYPE_PointerToSOAP_ENV__Code (20)
375 #endif
376 
377 /* a__address * has binding name 'PointerToa__address' for type 'a:address' */
378 #ifndef SOAP_TYPE_PointerToa__address
379 #define SOAP_TYPE_PointerToa__address (16)
380 #endif
381 
382 /* time_t * has binding name 'PointerTodateTime' for type 'xsd:dateTime' */
383 #ifndef SOAP_TYPE_PointerTodateTime
384 #define SOAP_TYPE_PointerTodateTime (14)
385 #endif
386 
387 /* std::string * has binding name 'PointerTostd__string' for type 'xsd:string' */
388 #ifndef SOAP_TYPE_PointerTostd__string
389 #define SOAP_TYPE_PointerTostd__string (12)
390 #endif
391 
392 /* _QName has binding name '_QName' for type 'xsd:QName' */
393 #ifndef SOAP_TYPE__QName
394 #define SOAP_TYPE__QName (6)
395 #endif
396 
397 /* _XML has binding name '_XML' for type '' */
398 #ifndef SOAP_TYPE__XML
399 #define SOAP_TYPE__XML (5)
400 #endif
401 
402 /* char * has binding name 'string' for type 'xsd:string' */
403 #ifndef SOAP_TYPE_string
404 #define SOAP_TYPE_string (4)
405 #endif
406 
407 /* std::vector<a__address *> has binding name 'std__vectorTemplateOfPointerToa__address' for type 'a:address' */
408 #ifndef SOAP_TYPE_std__vectorTemplateOfPointerToa__address
409 #define SOAP_TYPE_std__vectorTemplateOfPointerToa__address (17)
410 #endif
411 
412 /******************************************************************************\
413  * *
414  * Externals *
415  * *
416 \******************************************************************************/
417 
418 
419 #endif
420 
421 /* End of addressStub.h */
a__ISO_country
"urn:address-book-example":ISO-country is a simpleType restriction of type xs:string.
Definition: address.h:182
@ a__ISO_country__ca
Definition: addressStub.h:38
@ a__ISO_country__it
Definition: addressStub.h:42
@ a__ISO_country__no
Definition: addressStub.h:44
@ a__ISO_country__se
Definition: addressStub.h:46
@ a__ISO_country__ru
Definition: addressStub.h:45
@ a__ISO_country__be
Definition: addressStub.h:37
@ a__ISO_country__nl
Definition: addressStub.h:43
@ a__ISO_country__us
Definition: addressStub.h:47
@ a__ISO_country__gb
Definition: addressStub.h:41
@ a__ISO_country__en
Definition: addressStub.h:40
@ a__ISO_country__de
Definition: addressStub.h:39
#define SOAP_TYPE__a__address_book
Definition: addressStub.h:122
char * _XML
Definition: addressStub.h:286
#define SOAP_TYPE_SOAP_ENV__Header
Definition: addressStub.h:160
#define SOAP_TYPE_SOAP_ENV__Reason
Definition: addressStub.h:223
#define SOAP_TYPE_SOAP_ENV__Code
Definition: addressStub.h:177
#define SOAP_TYPE_SOAP_ENV__Fault
Definition: addressStub.h:243
char * _QName
Definition: addressStub.h:292
#define SOAP_TYPE_a__address
Definition: addressStub.h:69
#define SOAP_TYPE_SOAP_ENV__Detail
Definition: addressStub.h:200
Top-level root element "urn:address-book-example":address-book.
Definition: address.h:264
virtual ~_a__address_book()
Destructor.
Definition: addressStub.h:151
virtual void soap_default(struct soap *)
(Re)set members to default values
virtual long soap_type(void) const
Return unique type id SOAP_TYPE__a__address_book.
Definition: addressStub.h:132
virtual int soap_put(struct soap *, const char *tag, const char *type) const
Output object in XML, compliant with SOAP 1.1 encoding style, return error code or SOAP_OK.
virtual int soap_out(struct soap *, const char *tag, int id, const char *type) const
Output object in XML, with tag and optional id attribute and xsi:type, return error code or SOAP_OK.
virtual void * soap_in(struct soap *, const char *tag, const char *type)
Get object from XML, with matching tag and type (NULL matches any tag and type), return pointer to ob...
friend SOAP_FMAC1 _a__address_book *SOAP_FMAC2 address_instantiate__a__address_book(struct soap *, int, const char *, const char *, size_t *)
Friend allocator used by soap_new__a__address_book(struct soap*, int)
virtual void soap_serialize(struct soap *) const
Serialize object to prepare for SOAP 1.1/1.2 encoded output (or with SOAP_XML_GRAPH) by analyzing its...
_a__address_book()
Constructor with default initializations.
Definition: addressStub.h:149
virtual void * soap_get(struct soap *, const char *tag, const char *type)
Get object from XML, compliant with SOAP 1.1 encoding style, return pointer to object or NULL on erro...
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:146
"urn:address-book-example":address is a complexType.
Definition: address.h:222
virtual long soap_type(void) const
Return unique type id SOAP_TYPE_a__address.
Definition: addressStub.h:95
virtual void soap_default(struct soap *)
(Re)set members to default values
virtual ~a__address()
Destructor.
Definition: addressStub.h:114
virtual void soap_serialize(struct soap *) const
Serialize object to prepare for SOAP 1.1/1.2 encoded output (or with SOAP_XML_GRAPH) by analyzing its...
virtual int soap_out(struct soap *, const char *tag, int id, const char *type) const
Output object in XML, with tag and optional id attribute and xsi:type, return error code or SOAP_OK.
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
a__address()
Constructor with default initializations.
Definition: addressStub.h:112
virtual void * soap_get(struct soap *, const char *tag, const char *type)
Get object from XML, compliant with SOAP 1.1 encoding style, return pointer to object or NULL on erro...
virtual void * soap_in(struct soap *, const char *tag, const char *type)
Get object from XML, with matching tag and type (NULL matches any tag and type), return pointer to ob...
virtual int soap_put(struct soap *, const char *tag, const char *type) const
Output object in XML, compliant with SOAP 1.1 encoding style, return error code or SOAP_OK.
friend SOAP_FMAC1 a__address *SOAP_FMAC2 address_instantiate_a__address(struct soap *, int, const char *, const char *, size_t *)
Friend allocator used by soap_new_a__address(struct soap*, int)
struct SOAP_ENV__Code * SOAP_ENV__Subcode
Definition: addressStub.h:185
friend SOAP_FMAC1 SOAP_ENV__Code *SOAP_FMAC2 address_instantiate_SOAP_ENV__Code(struct soap *, int, const char *, const char *, size_t *)
long soap_type() const
Definition: addressStub.h:188
char * SOAP_ENV__Value
Definition: addressStub.h:183
long soap_type() const
Definition: addressStub.h:211
friend SOAP_FMAC1 SOAP_ENV__Detail *SOAP_FMAC2 address_instantiate_SOAP_ENV__Detail(struct soap *, int, const char *, const char *, size_t *)
char * SOAP_ENV__Node
Definition: addressStub.h:260
friend SOAP_FMAC1 SOAP_ENV__Fault *SOAP_FMAC2 address_instantiate_SOAP_ENV__Fault(struct soap *, int, const char *, const char *, size_t *)
struct SOAP_ENV__Detail * SOAP_ENV__Detail
Definition: addressStub.h:264
char * SOAP_ENV__Role
Definition: addressStub.h:262
struct SOAP_ENV__Reason * SOAP_ENV__Reason
Definition: addressStub.h:258
long soap_type() const
Definition: addressStub.h:267
char * faultstring
Definition: addressStub.h:250
struct SOAP_ENV__Code * SOAP_ENV__Code
Definition: addressStub.h:256
struct SOAP_ENV__Detail * detail
Definition: addressStub.h:254
long soap_type() const
Definition: addressStub.h:165
friend SOAP_FMAC1 SOAP_ENV__Header *SOAP_FMAC2 address_instantiate_SOAP_ENV__Header(struct soap *, int, const char *, const char *, size_t *)
char * SOAP_ENV__Text
Definition: addressStub.h:228
friend SOAP_FMAC1 SOAP_ENV__Reason *SOAP_FMAC2 address_instantiate_SOAP_ENV__Reason(struct soap *, int, const char *, const char *, size_t *)
long soap_type() const
Definition: addressStub.h:231