Changeset 134 for XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.hpp
- Timestamp:
- 10/15/10 11:16:12 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.hpp
r133 r134 13 13 14 14 typedef long int XInt; // Integer 15 typedef bool XBool;// Logical16 typedef void *XPtr;// Pointeur C non typé15 typedef bool XBool;// Logical 16 typedef void *XPtr; // Pointeur C non typé 17 17 18 18 typedef enum _datatype … … 35 35 { char * str; int len; } XString; 36 36 37 typedef struct _ymdhms // Durée et date. 38 { int year, month, day, hour, minute, second; } XDate, XDuration; 37 typedef struct _ymdhms_int 38 { int year, month, day, hour, minute, second; } XDate; 39 40 typedef struct _ymdhms_double 41 { double year, month, day, hour, minute, second; } XDuration; 39 42 40 43 const XHandle NULLHANDLE = { NOTYPE, NULL }; 41 44 42 #define isNullHandle(hdl) ((hdl).data_type == NOTYPE && (hdl).data_ptr == NULL) 45 #define isNullHandle(hdl) \ 46 ((hdl).data_type == NOTYPE && (hdl).data_ptr == NULL) 43 47 44 48 /* ******************** HANDLE INTERFACE ******************** */ 45 void xios_handle_create_ (XHandle * _ret, const XDType * const _dtype, XString _id); 46 47 /* 48 void xios_handle_verify_ (XBool * _ret, const XHandle * const _hd); 49 void xios_handle_getType_(XDType * _ret, const XHandle * const _hd); 50 51 void xios_handle_isType_ (XBool * _ret, const XHandle * const _hd, const XDType * const _dtype); 52 void xios_handle_isId_ (XBool * _ret, const XHandle * const _hd, const XString * const _id); 53 void xios_handle_isGroup_ (XBool * _ret, const XHandle * const _hd); 54 void xios_handle_isElement_(XBool * _ret, const XHandle * const _hd); 55 */ 49 void xios_handle_create_ (XHandle * const _ret, const XDType * const _dtype, const XString _id); 56 50 57 51 /* ******************** XML INTERFACE *********************** */ 58 void xios_xml_parse_file_ ( XString _filename);59 void xios_xml_parse_string_( XString _xmlcontent);52 void xios_xml_parse_file_ (const XString _filename); 53 void xios_xml_parse_string_(const XString _xmlcontent); 60 54 61 55 /* ******************** DATA TREATMENT INTERFACE ************ */ 62 void xios_dtreatment_new_(XHandle * _dt, const XHandle * const _hd);56 void xios_dtreatment_new_(XHandle * const _dt, const XHandle * const _hd); 63 57 void xios_dtreatment_create_files_and_headers_(const XHandle * const _hd, const XFileType * const _ft); 64 58 65 59 /* ******************** CONTEXT INTERFACE ******************* */ 66 void xios_context_set_current_(const XHandle * const _ctxt, const bool * const _wswap); 60 void xios_context_set_current_ (const XHandle * const _ctxt, const bool * const _wswap); 61 void xios_context_get_current_ (XHandle * _ctxt); 62 void xios_context_get_calendar_(const XHandle * const _ctxt, XHandle * _cal); 63 /// void xios_context_ShowTree_ (void); 67 64 68 69 /* 70 void xios_context_GetCurrent_(XHandle * _ctxt); 71 void xios_context_ShowTree_ (void); 72 73 void xios_context_getCalendar_(const XHandle * const _ctxt, XHandle* _cal); 74 */ 75 76 /* ******************** AXIS INTERFACE ********************** */ 77 /* ******************** DOMAIN INTERFACE ******************** */ 78 /* ******************** FIELD INTERFACE ********************* */ 79 /* ******************** FILE INTERFACE ********************** */ 80 /* ******************** GRID INTERFACE ********************** */ 81 /* ******************** GROUP INTERFACE ********************* */ 65 /* ******************** CALENDAR INTERFACE ****************** */ 66 void xios_calendar_set_timestep_(const XHandle * const _cal, const XDuration * const _dur); 82 67 83 68 #ifdef __cplusplus
Note: See TracChangeset
for help on using the changeset viewer.