Main Page | Modules | Data Structures | File List | Data Fields | Globals

Simple Type: wst_StatusCodeEnum
[XML Types]

Data Structures

Defines

Typedefs

Functions

Variables


Define Documentation

#define WST_STATUSCODEENUM_NS   "http://schemas.xmlsoap.org/ws/2004/04/trust"
 

Namespace of the wst_StatusCodeEnum complex type.

Definition at line 71 of file wst_StatusCodeEnum.h.

#define WST_STATUSCODEENUM_LOCAL   "StatusCodeEnum"
 

Local part of the QName of the wst_StatusCodeEnum complex type.

Definition at line 76 of file wst_StatusCodeEnum.h.


Typedef Documentation

typedef wst_StatusCodeEnum* wst_StatusCodeEnum_o
 

Optional wst_StatusCodeEnum element.

Definition at line 46 of file wst_StatusCodeEnum.h.

typedef struct wst_StatusCodeEnum_array_s wst_StatusCodeEnum_array
 

Array of wst_StatusCodeEnum elements.

This structure type is used represent an array of wst_StatusCodeEnum elements.

Arrays are allocated by wst_StatusCodeEnum_array_init() and freed by calling wst_StatusCodeEnum_array_destroy(). Elements may be added to an array by calling wst_StatusCodeEnum_array_push().

Referenced by wst_StatusCodeEnum_array_copy(), wst_StatusCodeEnum_array_copy_contents(), wst_StatusCodeEnum_array_copy_contents_wrapper(), wst_StatusCodeEnum_array_copy_wrapper(), wst_StatusCodeEnum_array_deserialize(), wst_StatusCodeEnum_array_deserialize_wrapper(), wst_StatusCodeEnum_array_destroy(), wst_StatusCodeEnum_array_destroy_contents(), wst_StatusCodeEnum_array_destroy_contents_wrapper(), wst_StatusCodeEnum_array_destroy_wrapper(), wst_StatusCodeEnum_array_init(), wst_StatusCodeEnum_array_init_contents(), wst_StatusCodeEnum_array_init_contents_wrapper(), wst_StatusCodeEnum_array_init_wrapper(), wst_StatusCodeEnum_array_push(), wst_StatusCodeEnum_array_push_wrapper(), wst_StatusCodeEnum_array_serialize(), and wst_StatusCodeEnum_array_serialize_wrapper().


Function Documentation

globus_result_t wst_StatusCodeEnum_init (
     wst_StatusCodeEnum ** inst )
 

Initialize a wst_StatusCodeEnum.

Allocates a new wst_StatusCodeEnum and initializes its contents. When the structure is no longer needed, it should be freed by calling wst_StatusCodeEnum_destroy().

Parameters:
inst Pointer to set to a newly allocated instance.

Definition at line 303 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum, and wst_StatusCodeEnum_init().

Referenced by wst_StatusCodeEnum_deserialize_contents_wrapper(), wst_StatusCodeEnum_init(), and wst_StatusCodeEnum_init_wrapper().

00305 {
00306     wst_StatusCodeEnum * instance;
00307     globus_result_t                     result = GLOBUS_SUCCESS;
00308     GlobusFuncName(wst_StatusCodeEnum_init);
00309     GlobusSoapMessageDebugEnter();
00310 
00311 
00312     xsd_anyURI_init(object);
00313 
00314     GlobusSoapMessageDebugExit();
00315     return result;
00316 }

void wst_StatusCodeEnum_destroy (
     wst_StatusCodeEnum * inst )
 

Destroy a wst_StatusCodeEnum.

Frees a wst_StatusCodeEnum. All subelements and attributes will be destroyed (and freed if they are optional).

Parameters:
inst Pointer to the instance to destroy.

Definition at line 319 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_destroy(), and wst_StatusCodeEnum_destroy_contents().

Referenced by wst_StatusCodeEnum_destroy(), and wst_StatusCodeEnum_destroy_wrapper().

00321 {
00322     GlobusFuncName(wst_StatusCodeEnum_destroy);
00323     GlobusSoapMessageDebugEnter();
00324 
00325     if(!instance)
00326     {
00327         goto exit;
00328     }
00329 
00330     wst_StatusCodeEnum_destroy_contents(instance);
00331     globus_free(instance);
00332 
00333  exit:
00334 
00335     GlobusSoapMessageDebugExit();
00336 }

globus_result_t wst_StatusCodeEnum_copy (
     wst_StatusCodeEnum ** dest,
     const wst_StatusCodeEnum * src)
 

Copy a wst_StatusCodeEnum.

Perform a deep copy of a wst_StatusCodeEnum. The dest structure will be allocated, and then a copy of the contents of src and its subelements and attributes will be made to dest.

Parameters:
dest The wst_StatusCodeEnum structure to be initialized with a copy of the contents of the src structure.
src Source wst_StatusCodeEnum to be copied.

Definition at line 357 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum, wst_StatusCodeEnum_copy(), and wst_StatusCodeEnum_copy_contents().

Referenced by wst_StatusCodeEnum_copy(), and wst_StatusCodeEnum_copy_wrapper().

00360 {
00361     globus_result_t                     result = GLOBUS_SUCCESS;
00362     wst_StatusCodeEnum * instance;
00363     GlobusFuncName(wst_StatusCodeEnum_copy);
00364 
00365     GlobusSoapMessageDebugEnter();
00366 
00367     instance = malloc(sizeof(wst_StatusCodeEnum));
00368     if (instance == NULL)
00369     {
00370         GlobusSoapMessageDebugExit();
00371         return GlobusSoapMessageErrorOutOfMemory;
00372     }
00373 
00374     result = wst_StatusCodeEnum_copy_contents(instance, src_obj);
00375     if(result != GLOBUS_SUCCESS)
00376     {
00377         globus_free(instance);
00378         GlobusSoapMessageDebugExit();
00379         return GlobusSoapMessageErrorOutOfMemory;
00380     }
00381 
00382     *dest_obj = instance;
00383     GlobusSoapMessageDebugExit();
00384     return result;
00385 }

globus_result_t wst_StatusCodeEnum_init_contents (
     wst_StatusCodeEnum * instance )
 

Initialize the contents of a wst_StatusCodeEnum.

Initialize the contents of a wst_StatusCodeEnum. This should be used when the structure is allocated on the stack or by a some allocator besides wst_StatusCodeEnum_init(). The contents may be freed by calling wst_StatusCodeEnum_destroy_contents().

Parameters:
instance Pointer to an allocated but uninitialized wst_StatusCodeEnum.

Definition at line 288 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_init_contents().

Referenced by wst_StatusCodeEnum_init_contents(), and wst_StatusCodeEnum_init_contents_wrapper().

00290 {
00291     globus_result_t                     result = GLOBUS_SUCCESS;
00292     GlobusFuncName(wst_StatusCodeEnum_init_contents);
00293     GlobusSoapMessageDebugEnter();
00294 
00295 
00296     xsd_anyURI_init_contents(instance);
00297 
00298     GlobusSoapMessageDebugExit();
00299     return result;
00300 }

void wst_StatusCodeEnum_destroy_contents (
     wst_StatusCodeEnum * inst )
 

Destroy the contents of a wst_StatusCodeEnum.

Destroy the subelements and attributes of the given wst_StatusCodeEnum.

Parameters:
inst Pointer to a wst_StatusCodeEnum instance to destroy.

Definition at line 339 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_destroy_contents().

Referenced by wst_StatusCodeEnum_array_copy_contents(), wst_StatusCodeEnum_array_deserialize(), wst_StatusCodeEnum_array_destroy_contents(), wst_StatusCodeEnum_destroy(), wst_StatusCodeEnum_destroy_contents(), and wst_StatusCodeEnum_destroy_contents_wrapper().

00341 {
00342     GlobusFuncName(wst_StatusCodeEnum_destroy_contents);
00343     GlobusSoapMessageDebugEnter();
00344 
00345     if(instance)
00346     {
00347 
00348 
00349     xsd_anyURI_destroy_contents(instance);
00350 
00351     }
00352 
00353     GlobusSoapMessageDebugExit();
00354 }

globus_result_t wst_StatusCodeEnum_copy_contents (
     wst_StatusCodeEnum * dest,
     const wst_StatusCodeEnum * src)
 

Copy the contents of a wst_StatusCodeEnum.

Perform a deep copy of the contents of a wst_StatusCodeEnum. The dest strcuture must be allocated before making this call. A copy of the subelements and attributes of @ src will be made to dest.

Parameters:
dest Structure to be initialized with copies of the contents of src.
src Source wst_StatusCodeEnum to be copied.

Definition at line 388 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_copy_contents().

Referenced by wst_StatusCodeEnum_array_copy_contents(), wst_StatusCodeEnum_copy(), wst_StatusCodeEnum_copy_contents(), and wst_StatusCodeEnum_copy_contents_wrapper().

00391 {
00392     globus_result_t                     result = GLOBUS_SUCCESS;
00393     GlobusFuncName(wst_StatusCodeEnum_copy_contents);
00394 
00395     GlobusSoapMessageDebugEnter();
00396 
00397 
00398     result = xsd_anyURI_copy_contents(
00399         instance, src_obj);
00400 
00401     goto exit;
00402 
00403  fail_copy:
00404 
00405 
00406  exit:
00407 
00408     GlobusSoapMessageDebugExit();
00409     return result;
00410 }

globus_result_t wst_StatusCodeEnum_array_init (
     wst_StatusCodeEnum_array ** inst )
 

Initialize an array of wst_StatusCodeEnum elements.

Allocates a new array of 0 elements. When this array is no longer used, it should be freed by calling wst_StatusCodeEnum_array_destroy().

Parameters:
inst Pointer to set to a newly allocated array instance.

Definition at line 585 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_init(), and wst_StatusCodeEnum_array_init_contents().

Referenced by wst_StatusCodeEnum_array_deserialize_wrapper(), wst_StatusCodeEnum_array_init(), and wst_StatusCodeEnum_array_init_wrapper().

00587 {
00588     wst_StatusCodeEnum_array * array;
00589     globus_result_t                     result;
00590     GlobusFuncName(wst_StatusCodeEnum_array_init);
00591     GlobusSoapMessageDebugEnter();
00592 
00593     array = (wst_StatusCodeEnum_array *)
00594         globus_malloc(sizeof(wst_StatusCodeEnum_array));
00595     if(!array)
00596     {
00597         result = GlobusSoapMessageErrorOutOfMemory;
00598         GlobusSoapMessageDebugExit();
00599         return result;
00600     }
00601 
00602     result = wst_StatusCodeEnum_array_init_contents(array);
00603     if(result != GLOBUS_SUCCESS)
00604     {
00605         globus_free(array);
00606         array = NULL;
00607 
00608     }
00609 
00610     *arr = array;
00611 
00612     GlobusSoapMessageDebugExit();
00613     return result;
00614 }

void wst_StatusCodeEnum_array_destroy (
     wst_StatusCodeEnum_array * inst )
 

Destroy an array of wst_StatusCodeEnum elements.

Frees an array of wst_StatusCodeEnum elements. The contents of each element element in the array be destroyed by calling wst_StatusCodeEnum_destroy_contents().

Parameters:
inst Pointer to array instance to destroy.

Definition at line 640 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_destroy(), and wst_StatusCodeEnum_array_destroy_contents().

Referenced by wst_StatusCodeEnum_array_destroy(), and wst_StatusCodeEnum_array_destroy_wrapper().

00642 {
00643     GlobusFuncName(wst_StatusCodeEnum_array_destroy);
00644     GlobusSoapMessageDebugEnter();
00645 
00646     wst_StatusCodeEnum_array_destroy_contents(array);
00647     globus_free(array);
00648 
00649     GlobusSoapMessageDebugExit();
00650 }

globus_result_t wst_StatusCodeEnum_array_copy (
     wst_StatusCodeEnum_array ** dest,
     const wst_StatusCodeEnum_array * src)
 

Copy an array of wst_StatusCodeEnum elements.

Perform a deep copy of an array of wst_StatusCodeEnum elements. The dest array will be allocated, and then a copy of the contents of each element in src will be made to dest.

Parameters:
dest Array to be initialized with copies of the elements in src.
src Source array to be copied.

Definition at line 653 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_copy(), and wst_StatusCodeEnum_array_copy_contents().

Referenced by wst_StatusCodeEnum_array_copy(), and wst_StatusCodeEnum_array_copy_wrapper().

00656 {
00657     wst_StatusCodeEnum_array * array;
00658     globus_result_t                     result;
00659     GlobusFuncName(wst_StatusCodeEnum_array_copy);
00660     GlobusSoapMessageDebugEnter();
00661 
00662     array = (wst_StatusCodeEnum_array *) malloc(
00663         sizeof(wst_StatusCodeEnum_array));
00664     if(!array)
00665     {
00666         result = GlobusSoapMessageErrorOutOfMemory;
00667         GlobusSoapMessageDebugExit();
00668         return result;
00669     }
00670 
00671     result = wst_StatusCodeEnum_array_copy_contents(array, src_arr);
00672     if(result != GLOBUS_SUCCESS)
00673     {
00674         globus_free(array);
00675         GlobusSoapMessageDebugExit();
00676         return result;
00677     }
00678 
00679     *dest_arr = array;
00680 
00681     GlobusSoapMessageDebugExit();
00682     return GLOBUS_SUCCESS;
00683 }

globus_result_t wst_StatusCodeEnum_array_init_contents (
     wst_StatusCodeEnum_array * inst )
 

Initialize the contents of an array of wst_StatusCodeEnum elements.

Initialize the contents of an array of wst_StatusCodeEnum elements. Used when the array is allocated on the stack or by a some allocator besides wst_StatusCodeEnum_array_init(). The contents of the array may be freed by calling wst_StatusCodeEnum_array_destroy_contents().

Parameters:
inst Pointer to an allocated but uninitialized array.

Definition at line 572 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array, and wst_StatusCodeEnum_array_init_contents().

Referenced by wst_StatusCodeEnum_array_init(), wst_StatusCodeEnum_array_init_contents(), and wst_StatusCodeEnum_array_init_contents_wrapper().

00574 {
00575     GlobusFuncName(wst_StatusCodeEnum_array_init_contents);
00576     GlobusSoapMessageDebugEnter();
00577 
00578     memset(array, 0, sizeof(wst_StatusCodeEnum_array));
00579 
00580     GlobusSoapMessageDebugExit();
00581     return GLOBUS_SUCCESS;
00582 }

void wst_StatusCodeEnum_array_destroy_contents (
     wst_StatusCodeEnum_array * inst )
 

Destroy the contents of an array of wst_StatusCodeEnum elements.

Destroy the elements in an array of wst_StatusCodeEnum elements. The contents of each element in the array be destroyed by calling wst_StatusCodeEnum_destroy_contents() and the array will be reset to be empty.

Parameters:
inst Pointer to array instance to destroy.

Definition at line 617 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array_s::elements, wst_StatusCodeEnum_array_s::length, wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_destroy_contents(), and wst_StatusCodeEnum_destroy_contents().

Referenced by wst_StatusCodeEnum_array_destroy(), wst_StatusCodeEnum_array_destroy_contents(), and wst_StatusCodeEnum_array_destroy_contents_wrapper().

00619 {
00620     int                                 i = 0;
00621     GlobusFuncName(wst_StatusCodeEnum_array_destroy_contents);
00622     GlobusSoapMessageDebugEnter();
00623 
00624     for(; i < array->length; ++i)
00625     {
00626         wst_StatusCodeEnum_destroy_contents(&array->elements[i]);
00627     }
00628 
00629     if(array->elements)
00630     {
00631         globus_free(array->elements);
00632         array->elements = NULL;
00633     }
00634     array->length = 0;
00635 
00636     GlobusSoapMessageDebugExit();
00637 }

globus_result_t wst_StatusCodeEnum_array_copy_contents (
     wst_StatusCodeEnum_array * dest,
     const wst_StatusCodeEnum_array * src)
 

Copy the contents of an array of wst_StatusCodeEnum elements.

Perform a deep copy of an array of wst_StatusCodeEnum elements. The dest array must be allocated before making this call. A copy of the contents of each element in src will be made to dest.

Parameters:
dest Array to be initialized with copies of the elements in src.
src Source array to be copied.

Definition at line 686 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array_s::elements, wst_StatusCodeEnum_array_s::length, wst_StatusCodeEnum, wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_copy_contents(), wst_StatusCodeEnum_copy_contents(), and wst_StatusCodeEnum_destroy_contents().

Referenced by wst_StatusCodeEnum_array_copy(), wst_StatusCodeEnum_array_copy_contents(), and wst_StatusCodeEnum_array_copy_contents_wrapper().

00689 {
00690     int                                 i;
00691     globus_result_t                     result = GLOBUS_SUCCESS;
00692     GlobusFuncName(wst_StatusCodeEnum_array_copy_contents);
00693     GlobusSoapMessageDebugEnter();
00694 
00695     dest_arr->length = src_arr->length;
00696     if(dest_arr->length > 0)
00697     {
00698         dest_arr->elements = (wst_StatusCodeEnum *) malloc(
00699             sizeof(wst_StatusCodeEnum) * dest_arr->length);
00700         if(!dest_arr->elements)
00701         {
00702             result = GlobusSoapMessageErrorOutOfMemory;
00703             GlobusSoapMessageDebugExit();
00704             return result;
00705         }
00706     }
00707     else
00708     {
00709         dest_arr->elements = NULL;
00710     }
00711     
00712     for(i = 0; i < dest_arr->length; i++)
00713     {
00714         result = wst_StatusCodeEnum_copy_contents(
00715             &dest_arr->elements[i], &src_arr->elements[i]);
00716         if(result != GLOBUS_SUCCESS)
00717         {
00718             while(i--)
00719             {
00720                 wst_StatusCodeEnum_destroy_contents(&dest_arr->elements[i]);
00721             }
00722 
00723             globus_free(dest_arr->elements);
00724             dest_arr->elements = NULL;
00725             dest_arr->length = 0;
00726             break;
00727         }
00728     }
00729 
00730     GlobusSoapMessageDebugExit();
00731     return result;
00732 }

wst_StatusCodeEnum* wst_StatusCodeEnum_array_push (
     wst_StatusCodeEnum_array * array )
 

Append a new wst_StatusCodeEnum to an array.

Allocate and initialize a new wst_StatusCodeEnum structure, adding it to the end of the given array.

Parameters:
array Array to be appended to.
Returns:
This function returns the newly allocated element.

Definition at line 735 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array_s::elements, wst_StatusCodeEnum_array_s::length, wst_StatusCodeEnum, wst_StatusCodeEnum_array, and wst_StatusCodeEnum_array_push().

Referenced by wst_StatusCodeEnum_array_push(), and wst_StatusCodeEnum_array_push_wrapper().

00737 {
00738     GlobusFuncName(wst_StatusCodeEnum_array_push);
00739     GlobusSoapMessageDebugEnter();
00740 
00741     array->elements = realloc(array->elements,
00742                               sizeof(wst_StatusCodeEnum) *
00743                               (array->length + 1));
00744     memset(&array->elements[array->length], 0, sizeof(wst_StatusCodeEnum));
00745     array->length++;
00746 
00747     GlobusSoapMessageDebugExit();
00748     return (&array->elements[array->length - 1]);
00749 }

globus_result_t wst_StatusCodeEnum_deserialize (
     xsd_QName * element_name,
     wst_StatusCodeEnum * val,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Deserialize a wst_StatusCodeEnum.

Deserialize an element containing a wst_StatusCodeEnum element.

Parameters:
element_name The name of the element which should enclose the wst_StatusCodeEnum.
val Pointer to the wst_StatusCodeEnum which will be initialized with the value of the element.
message_handle The handle to deserialize the element from.
options Deserialization options.

Definition at line 518 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_deserialize().

Referenced by wst_StatusCodeEnum_array_deserialize(), wst_StatusCodeEnum_deserialize(), and wst_StatusCodeEnum_deserialize_contents().

00523 {
00524     globus_result_t                     result = GLOBUS_SUCCESS;
00525     xsd_QName                           subelement;
00526     GlobusFuncName(wst_StatusCodeEnum_deserialize);
00527     GlobusSoapMessageDebugEnter();
00528 
00529 
00530     result = xsd_anyURI_deserialize(element_qname, 
00531                                 instance, message_handle, options);
00532 
00533 
00534  exit:
00535 
00536     GlobusSoapMessageDebugExit();
00537     return result;
00538 }

globus_result_t wst_StatusCodeEnum_deserialize_contents (
     xsd_QName * element_name,
     wst_StatusCodeEnum * val,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Deserialize a wst_StatusCodeEnum.

Deserialize a wst_StatusCodeEnum whose enclosing element has already been deserialized.

Parameters:
element_name Ignored.
val Pointer to the wst_StatusCodeEnum which will be initialized with the value of the current element.
message_handle The handle to deserialize the element from.
options Deserialization options.

Definition at line 487 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_deserialize(), and wst_StatusCodeEnum_deserialize_contents().

Referenced by wst_StatusCodeEnum_deserialize_contents(), and wst_StatusCodeEnum_deserialize_contents_wrapper().

00492 {
00493     globus_result_t                     result = GLOBUS_SUCCESS;
00494     GlobusFuncName(wst_StatusCodeEnum_deserialize_contents);
00495     GlobusSoapMessageDebugEnter();
00496 
00497     result = wst_StatusCodeEnum_deserialize(
00498         NULL,
00499         inst,
00500         message_handle,
00501         options | GLOBUS_XSD_ELEMENT_CONTENTS_ONLY);
00502     if(result != GLOBUS_SUCCESS)
00503     {
00504         result = GlobusSoapMessageErrorDeserializeFailed(
00505             result, element_qname);
00506         goto exit;
00507     }
00508 
00509  exit:
00510 
00511     GlobusSoapMessageDebugExit();
00512     return result;
00513 }

globus_result_t wst_StatusCodeEnum_deserialize_pointer (
     xsd_QName * element_name,
     wst_StatusCodeEnum ** instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Deserialize an optional wst_StatusCodeEnum.

Deserialize the next element if it contains a wst_StatusCodeEnum.

Parameters:
element_name The name of the element which should enclose the wst_StatusCodeEnum.
instance Pointer to the wst_StatusCodeEnum * which will be allocated and initialized with the value of the element if it is present.
message_handle The handle to deserialize the element from.
options Deserialization options.

Definition at line 543 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum, and wst_StatusCodeEnum_deserialize_pointer().

Referenced by wst_StatusCodeEnum_deserialize_pointer(), and wst_StatusCodeEnum_deserialize_pointer_wrapper().

00548 {
00549     wst_StatusCodeEnum * instance = NULL;
00550     globus_result_t                     result = GLOBUS_SUCCESS;
00551     xsd_QName                           subelement;
00552     GlobusFuncName(wst_StatusCodeEnum_deserialize_pointer);
00553     GlobusSoapMessageDebugEnter();
00554 
00555     *ip = NULL;
00556 
00557 
00558     result = xsd_anyURI_deserialize_pointer(
00559         element_qname, 
00560         ip, message_handle, options);
00561 
00562 
00563  exit:
00564 
00565     GlobusSoapMessageDebugExit();
00566     return result;
00567 }

globus_result_t wst_StatusCodeEnum_array_serialize (
     xsd_QName * element,
     wst_StatusCodeEnum_array * array_instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Serialize an array of wst_StatusCodeEnum elements.

Serialize an element containing an array of wst_StatusCodeEnum elements.

Parameters:
element The name of the element which will contain the array.
array_instance The array to serialize
message_handle The handle to serialize the element on.
options Serialization options.

Definition at line 759 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array_s::elements, wst_StatusCodeEnum_array_s::length, wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_serialize(), and wst_StatusCodeEnum_serialize().

Referenced by wst_StatusCodeEnum_array_serialize(), and wst_StatusCodeEnum_array_serialize_wrapper().

00764 {
00765     globus_result_t                     result = GLOBUS_SUCCESS;
00766     int                                 i = 0;
00767     GlobusFuncName(wst_StatusCodeEnum_array_serialize);
00768     GlobusSoapMessageDebugEnter();
00769 
00770     for(; i < array->length; ++i)
00771     {
00772         result = wst_StatusCodeEnum_serialize(
00773             element_qname,
00774             &array->elements[i],
00775             message,
00776             options);
00777         if(result != GLOBUS_SUCCESS)
00778         {
00779             goto exit;
00780         }
00781     }
00782 
00783 exit:
00784 
00785     GlobusSoapMessageDebugExit();
00786     return result;
00787 }

globus_result_t wst_StatusCodeEnum_array_deserialize (
     xsd_QName * element,
     wst_StatusCodeEnum_array * array_instance,
     globus_soap_message_handle_t message_handle,
     globus_xsd_element_options_t options)
 

Deserialize an array of wst_StatusCodeEnum elements.

Deserialize an element containing an array of wst_StatusCodeEnum elements.

Parameters:
element The name of the element which should enclose the array.
array_instance The array to deserialize into
message_handle The handle to deserialize the element from.
options Deserialization options.

Definition at line 790 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_array_s::elements, wst_StatusCodeEnum_array_s::length, wst_StatusCodeEnum, wst_StatusCodeEnum_array, wst_StatusCodeEnum_array_deserialize(), wst_StatusCodeEnum_deserialize(), and wst_StatusCodeEnum_destroy_contents().

Referenced by wst_StatusCodeEnum_array_deserialize(), and wst_StatusCodeEnum_array_deserialize_wrapper().

00795 {
00796     globus_result_t                     result = GLOBUS_SUCCESS;
00797     int                                 i = 0;
00798     int                                 pre_length;
00799     GlobusFuncName(wst_StatusCodeEnum_array_deserialize);
00800     GlobusSoapMessageDebugEnter();
00801 
00802     pre_length = array->length;
00803 
00804     for(i = 0; i < pre_length; ++i)
00805     {
00806         result = wst_StatusCodeEnum_deserialize(
00807             element_qname,
00808             &array->elements[i],
00809             message,
00810             options);
00811         if(result != GLOBUS_SUCCESS)
00812         {
00813             if(GlobusSoapMessageStatusFailedElementCheck(result) ||
00814                GlobusSoapMessageStatusElementNotFoundCheck(result) ||
00815                GlobusSoapMessageStatusFailedWithTextCheck(result))
00816             {
00817                 result = GLOBUS_SUCCESS;
00818                 break;
00819             }
00820 
00821             result = GlobusSoapMessageErrorDeserializeFailed(
00822                 result, element_qname);
00823             goto exit;
00824         }
00825     }
00826 
00827     while(result == GLOBUS_SUCCESS)
00828     {
00829         wst_StatusCodeEnum                  next;
00830         memset(&next, 0, sizeof(wst_StatusCodeEnum));
00831 
00832         result = wst_StatusCodeEnum_deserialize(
00833             element_qname,
00834             &next,
00835             message,
00836             options);
00837         if(result != GLOBUS_SUCCESS)
00838         {
00839             if(GlobusSoapMessageStatusFailedElementCheck(result) ||
00840                GlobusSoapMessageStatusElementNotFoundCheck(result) ||
00841                GlobusSoapMessageStatusFailedWithTextCheck(result))
00842             {
00843                 result = GLOBUS_SUCCESS;
00844                 break;
00845             }
00846 
00847             result = GlobusSoapMessageErrorDeserializeFailed(
00848                 result, element_qname);
00849             goto exit;
00850         }
00851 
00852         array->elements = realloc(
00853             array->elements,
00854             (array->length + 1) * sizeof(wst_StatusCodeEnum));
00855         if(!array->elements)
00856         {
00857             result = GlobusSoapMessageErrorOutOfMemory;
00858             goto exit;
00859         }
00860         array->elements[array->length] = next;
00861         array->length++;
00862         ++i;
00863     }
00864 
00865   exit:
00866 
00867     if(result != GLOBUS_SUCCESS)
00868     {
00869         int                             di = 0;
00870         for(; di < i; ++di)
00871         {
00872             wst_StatusCodeEnum_destroy_contents(
00873                 &array->elements[di]);
00874             memset(&array->elements[di], 0, sizeof(wst_StatusCodeEnum));
00875         }
00876     }
00877 
00878     GlobusSoapMessageDebugExit();
00879     return result;
00880 }

globus_result_t wst_StatusCodeEnum_deserialize_attribute (
     xsd_QName * attr_qname,
     wst_StatusCodeEnum * instance,
     globus_soap_message_handle_t message,
     globus_xsd_element_options_t options)
 

Deserialize an attribute of type wst_StatusCodeEnum.

Deserialize a wst_StatusCodeEnum as an attribute of the current element.

Parameters:
attr_qname The name of the attribute whose value is a wst_StatusCodeEnum.
instance Pointer to the wst_StatusCodeEnum which will be initialized with the value of the attribute.
message The handle to deserialize the element from.
options Deserialization options.

Definition at line 911 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_deserialize_attribute().

Referenced by wst_StatusCodeEnum_deserialize_attribute().

00916 {
00917     globus_result_t                     result = GLOBUS_SUCCESS;
00918     GlobusFuncName(wst_StatusCodeEnum_deserialize_attribute);
00919     GlobusSoapMessageDebugEnter();
00920     
00921 
00922     result = xsd_anyURI_deserialize_attribute(
00923         attr_qname, (xsd_anyURI *)instance, message, options);
00924 
00925     if(result != GLOBUS_SUCCESS)
00926     {
00927         result = GlobusSoapMessageErrorDeserializeFailed(
00928             result, attr_qname);
00929         goto exit;
00930     }
00931 
00932  exit:
00933 
00934     GlobusSoapMessageDebugExit();
00935     return result;
00936 }

globus_result_t wst_StatusCodeEnum_deserialize_attribute_pointer (
     xsd_QName * attr_qname,
     wst_StatusCodeEnum ** instance,
     globus_soap_message_handle_t message,
     globus_xsd_element_options_t options)
 

Deserialize an optional attribute of type wst_StatusCodeEnum.

Try to deserialize a wst_StatusCodeEnum as an attribute of the current element if it is present. The attribute's name is defined by @ attr_qname.

Parameters:
attr_qname The name of the attribute whose value is a wst_StatusCodeEnum.
instance Pointer to the wst_StatusCodeEnum which will be allocated and initialized with the value of the attribute if it is present.
message The handle to deserialize the element from.
options Deserialization options.

Definition at line 939 of file wst_StatusCodeEnum.c.

References wst_StatusCodeEnum_deserialize_attribute_pointer().

Referenced by wst_StatusCodeEnum_deserialize_attribute_pointer().

00944 {
00945     globus_result_t                     result = GLOBUS_SUCCESS;
00946     GlobusFuncName(wst_StatusCodeEnum_deserialize_attribute_pointer);
00947     GlobusSoapMessageDebugEnter();
00948     
00949 
00950     result = xsd_anyURI_deserialize_attribute_pointer(
00951         attr_qname, (xsd_anyURI **)instance, message, options);
00952 
00953     if(result != GLOBUS_SUCCESS)
00954     {
00955         result = GlobusSoapMessageErrorDeserializeFailed(
00956             result, attr_qname);
00957         goto exit;
00958     }
00959 
00960  exit:
00961 
00962     GlobusSoapMessageDebugExit();
00963     return result;
00964 }


Variable Documentation

EXTERN_C_BEGIN typedef xsd_anyURI wst_StatusCodeEnum
 

Definition at line 37 of file wst_StatusCodeEnum.h.

Referenced by wst_StatusCodeEnum_array_copy_contents(), wst_StatusCodeEnum_array_deserialize(), wst_StatusCodeEnum_array_push(), wst_StatusCodeEnum_copy(), wst_StatusCodeEnum_copy_contents_wrapper(), wst_StatusCodeEnum_copy_wrapper(), wst_StatusCodeEnum_deserialize_contents_wrapper(), wst_StatusCodeEnum_deserialize_pointer(), wst_StatusCodeEnum_deserialize_pointer_wrapper(), wst_StatusCodeEnum_destroy_contents_wrapper(), wst_StatusCodeEnum_destroy_wrapper(), wst_StatusCodeEnum_init(), wst_StatusCodeEnum_init_contents_wrapper(), wst_StatusCodeEnum_init_wrapper(), wst_StatusCodeEnum_serialize_contents_wrapper(), and wst_StatusCodeEnum_serialize_wrapper().

xsd_QName wst_StatusCodeEnum_qname
 

Initial value:

{
    "http://schemas.xmlsoap.org/ws/2004/04/trust",
    "StatusCodeEnum"
}
QName of the wst_StatusCodeEnum complex type.

Definition at line 22 of file wst_StatusCodeEnum.c.

xsd_QName wst_StatusCodeEnum_qname
 

QName of the wst_StatusCodeEnum complex type.

Definition at line 82 of file wst_StatusCodeEnum.h.

struct globus_xsd_type_info_s wst_StatusCodeEnum_info
 

Initial value:

Type information for serializing and deserializing wst_StatusCodeEnum elements.

Definition at line 270 of file wst_StatusCodeEnum.c.

struct globus_xsd_type_info_s wst_StatusCodeEnum_info
 

Type information for serializing and deserializing wst_StatusCodeEnum elements.

Definition at line 87 of file wst_StatusCodeEnum.h.

struct globus_xsd_type_info_s wst_StatusCodeEnum_array_info
 

Initial value:

Type information for serializing and deserializing arrays of wst_StatusCodeEnum elements.

Definition at line 236 of file wst_StatusCodeEnum.c.

struct globus_xsd_type_info_s wst_StatusCodeEnum_array_info
 

Type information for serializing and deserializing arrays of wst_StatusCodeEnum elements.

Definition at line 93 of file wst_StatusCodeEnum.h.

struct globus_xsd_type_info_s wst_StatusCodeEnum_contents_info
 

Initial value:

Type information for serializing and deserializing the contents of wst_StatusCodeEnum without surrounding elements.

Definition at line 253 of file wst_StatusCodeEnum.c.

struct globus_xsd_type_info_s wst_StatusCodeEnum_contents_info
 

Type information for serializing and deserializing the contents of wst_StatusCodeEnum without surrounding elements.

Definition at line 99 of file wst_StatusCodeEnum.h.


about globus | grid research | globus toolkit | software development

Comments? webmaster@globus.org