Ignore:
Timestamp:
10/15/10 11:16:12 (14 years ago)
Author:
hozdoba
Message:

Pour sauvegarde

File:
1 edited

Legend:

Unmodified
Added
Removed
  • XMLIO_V2/dev/dev_rv/src/XMLIO/c_interface.hpp

    r133 r134  
    1313 
    1414   typedef long int XInt; // Integer 
    15    typedef bool XBool;    // Logical 
    16    typedef void *XPtr;    // Pointeur C non typé 
     15   typedef bool     XBool;// Logical 
     16   typedef void    *XPtr; // Pointeur C non typé 
    1717 
    1818   typedef enum _datatype 
     
    3535   { char * str; int len;  } XString; 
    3636 
    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; 
    3942 
    4043   const XHandle NULLHANDLE = { NOTYPE, NULL }; 
    4144 
    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) 
    4347 
    4448   /* ******************** 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); 
    5650 
    5751   /* ******************** 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); 
    6054 
    6155   /* ******************** 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); 
    6357   void xios_dtreatment_create_files_and_headers_(const XHandle * const _hd, const XFileType * const _ft); 
    6458 
    6559   /* ******************** 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); 
    6764 
    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); 
    8267 
    8368#ifdef __cplusplus 
Note: See TracChangeset for help on using the changeset viewer.