Changeset 313 for XIOS/trunk/src/fortran/iccontext.cpp
- Timestamp:
- 02/18/12 22:43:24 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/fortran/iccontext.cpp
r312 r313 26 26 typedef xmlioserver::tree::CContext * XContextPtr; 27 27 28 // ------------------------- Attributs des contextes ------------------------29 30 31 void cxios_set_context_calendar_type(XContextPtr context_hdl, const char * calendar_type, int calendar_type_size)32 {33 std::string calendar_type_str;34 if (!cstr2string(calendar_type, calendar_type_size, calendar_type_str)) return;35 context_hdl->calendar_type.setValue(calendar_type_str);36 context_hdl->sendAttributToServer(context_hdl->calendar_type) ;37 }38 39 void cxios_set_context_start_date(XContextPtr context_hdl, const char * start_date, int start_date_size)40 {41 std::string start_date_str;42 if (!cstr2string(start_date, start_date_size, start_date_str)) return;43 44 context_hdl->start_date.setValue(start_date_str);45 context_hdl->sendAttributToServer(context_hdl->start_date) ;46 }47 48 void cxios_set_context_output_dir(XContextPtr context_hdl, const char * output_dir, int output_dir_size)49 {50 std::string output_dir_str;51 if (!cstr2string(output_dir, output_dir_size, output_dir_str)) return;52 53 context_hdl->output_dir.setValue(output_dir_str);54 context_hdl->sendAttributToServer(context_hdl->output_dir) ;55 }56 57 28 // ------------------------ Création des handle ----------------------------- 58 29 … … 71 42 return; 72 43 } 73 // Lever une exec ption ici44 // Lever une exeception ici 74 45 } 75 46
Note: See TracChangeset
for help on using the changeset viewer.