1 /*
2  * Copyright 1999-2006 University of Chicago
3  * 
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  * 
8  * http://www.apache.org/licenses/LICENSE-2.0
9  * 
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17
18 #include "xsd_float.h"
19 #include "globus_soap_message.h"
20
21 #include "globus_i_xsd.h"
22
23 GLOBUS_I_XSD_DEFINE_QNAME(xsd, float);
24 GLOBUS_I_XSD_DEFINE_TYPE_INFO(xsd_float);
25 0 GLOBUS_I_XSD_DEFINE_TYPE_FUNCTIONS(xsd_float);
26 0 GLOBUS_I_XSD_DEFINE_ATTR_FUNCTIONS(xsd_float, float);
27 0 GLOBUS_I_XSD_DEFINE_INIT_CONTENTS_GENERIC(xsd_float);
28 0 GLOBUS_I_XSD_DEFINE_DESTROY_CONTENTS_GENERIC(xsd_float);
29 0 GLOBUS_I_XSD_DEFINE_COPY_CONTENTS_GENERIC(xsd_float);
30
31 globus_result_t
32 xsd_float_serialize_contents(
33     const xsd_QName *                   element,
34     const xsd_float *                   instance,
35     globus_soap_message_handle_t        message_handle,
36     globus_xsd_element_options_t        options)
37 {
38 0     globus_result_t                     result = GLOBUS_SUCCESS;
39 0     GlobusFuncName(xsd_float_serialize_contents);
40 0     GlobusSoapMessageDebugEnter();
41
42     /* serialize contents of type */
43 0     result = globus_soap_message_serialize_float(
44         message_handle, instance);
45
46 0     GlobusSoapMessageDebugExit();
47 0     return result;
48 }
49
50 globus_result_t
51 xsd_float_deserialize_contents(
52     const xsd_QName *                   eqn,
53     xsd_float *                         instance,
54     globus_soap_message_handle_t        message_handle,
55     globus_xsd_element_options_t        options)
56 0 {
57 0     globus_result_t                     result = GLOBUS_SUCCESS;
58 0     GlobusFuncName(xsd_float_deserialize_contents);
59 0     GlobusSoapMessageDebugEnter();
60     
61 0     result = globus_soap_message_deserialize_float(
62         message_handle, instance);
63
64 0     GlobusSoapMessageDebugExit();
65 0     return result;