| 1 | /* | |
| 2 | * Portions of this file Copyright 1999-2005 University of Chicago | |
| 3 | * Portions of this file Copyright 1999-2005 The University of Southern California. | |
| 4 | * | |
| 5 | * This file or a portion of this file is licensed under the | |
| 6 | * terms of the Globus Toolkit Public License, found at | |
| 7 | * http://www.globus.org/toolkit/download/license.html. | |
| 8 | * If you redistribute this file, with or without | |
| 9 | * modifications, you must include this notice in the file. | |
| 10 | */ | |
| 11 | ||
| 12 | ||
| 13 | #include "xsd_float.h" | |
| 14 | #include "globus_soap_message.h" | |
| 15 | ||
| 16 | #include "globus_i_xsd.h" | |
| 17 | ||
| 18 | GLOBUS_I_XSD_DEFINE_QNAME(xsd, float); | |
| 19 | GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_float); | |
| 20 | 0 | GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_float); |
| 21 | 0 | GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_float, float); |
| 22 | 0 | GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_float); |
| 23 | 0 | GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_float); |
| 24 | 0 | GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_float); |
| 25 | ||
| 26 | globus_result_t | |
| 27 | xsd_float_serialize_contents( | |
| 28 | xsd_QName * element, | |
| 29 | xsd_float * instance, | |
| 30 | globus_soap_message_handle_t message_handle, | |
| 31 | globus_xsd_element_options_t options) | |
| 32 | 0 | { |
| 33 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 34 | GlobusFuncName(xsd_float_serialize_contents); | |
| 35 | 0 | GlobusSoapMessageDebugEnter(); |
| 36 | ||
| 37 | /* serialize contents of type */ | |
| 38 | 0 | result = globus_soap_message_serialize_float( |
| 39 | message_handle, instance); | |
| 40 | ||
| 41 | 0 | GlobusSoapMessageDebugExit(); |
| 42 | 0 | return result; |
| 43 | } | |
| 44 | ||
| 45 | globus_result_t | |
| 46 | xsd_float_deserialize_contents( | |
| 47 | xsd_QName * eqn, | |
| 48 | xsd_float * instance, | |
| 49 | globus_soap_message_handle_t message_handle, | |
| 50 | globus_xsd_element_options_t options) | |
| 51 | 0 | { |
| 52 | 0 | globus_result_t result = GLOBUS_SUCCESS; |
| 53 | GlobusFuncName(xsd_float_deserialize_contents); | |
| 54 | 0 | GlobusSoapMessageDebugEnter(); |
| 55 | ||
| 56 | 0 | result = globus_soap_message_deserialize_float( |
| 57 | message_handle, instance); | |
| 58 | ||
| 59 | 0 | GlobusSoapMessageDebugExit(); |
| 60 | 0 | return result; |