- Timestamp:
- 01/10/17 14:36:29 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/dev/dev_olga/src/interface/c_attr/icfieldgroup_attr.cpp
r891 r1021 67 67 68 68 69 void cxios_set_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, const char * cell_methods, int cell_methods_size) 70 { 71 std::string cell_methods_str; 72 if (!cstr2string(cell_methods, cell_methods_size, cell_methods_str)) return; 73 CTimer::get("XIOS").resume(); 74 fieldgroup_hdl->cell_methods.setValue(cell_methods_str); 75 CTimer::get("XIOS").suspend(); 76 } 77 78 void cxios_get_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods, int cell_methods_size) 79 { 80 CTimer::get("XIOS").resume(); 81 if (!string_copy(fieldgroup_hdl->cell_methods.getInheritedValue(), cell_methods, cell_methods_size)) 82 ERROR("void cxios_get_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods, int cell_methods_size)", << "Input string is too short"); 83 CTimer::get("XIOS").suspend(); 84 } 85 86 bool cxios_is_defined_fieldgroup_cell_methods(fieldgroup_Ptr fieldgroup_hdl) 87 { 88 CTimer::get("XIOS").resume(); 89 bool isDefined = fieldgroup_hdl->cell_methods.hasInheritedValue(); 90 CTimer::get("XIOS").suspend(); 91 return isDefined; 92 } 93 94 95 void cxios_set_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl, const char * cell_methods_mode, int cell_methods_mode_size) 96 { 97 std::string cell_methods_mode_str; 98 if (!cstr2string(cell_methods_mode, cell_methods_mode_size, cell_methods_mode_str)) return; 99 CTimer::get("XIOS").resume(); 100 fieldgroup_hdl->cell_methods_mode.fromString(cell_methods_mode_str); 101 CTimer::get("XIOS").suspend(); 102 } 103 104 void cxios_get_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods_mode, int cell_methods_mode_size) 105 { 106 CTimer::get("XIOS").resume(); 107 if (!string_copy(fieldgroup_hdl->cell_methods_mode.getInheritedStringValue(), cell_methods_mode, cell_methods_mode_size)) 108 ERROR("void cxios_get_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl, char * cell_methods_mode, int cell_methods_mode_size)", << "Input string is too short"); 109 CTimer::get("XIOS").suspend(); 110 } 111 112 bool cxios_is_defined_fieldgroup_cell_methods_mode(fieldgroup_Ptr fieldgroup_hdl) 113 { 114 CTimer::get("XIOS").resume(); 115 bool isDefined = fieldgroup_hdl->cell_methods_mode.hasInheritedValue(); 116 CTimer::get("XIOS").suspend(); 117 return isDefined; 118 } 119 120 69 121 void cxios_set_fieldgroup_compression_level(fieldgroup_Ptr fieldgroup_hdl, int compression_level) 70 122 { … … 180 232 CTimer::get("XIOS").resume(); 181 233 bool isDefined = fieldgroup_hdl->enabled.hasInheritedValue(); 234 CTimer::get("XIOS").suspend(); 235 return isDefined; 236 } 237 238 239 void cxios_set_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl, const char * expr, int expr_size) 240 { 241 std::string expr_str; 242 if (!cstr2string(expr, expr_size, expr_str)) return; 243 CTimer::get("XIOS").resume(); 244 fieldgroup_hdl->expr.setValue(expr_str); 245 CTimer::get("XIOS").suspend(); 246 } 247 248 void cxios_get_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl, char * expr, int expr_size) 249 { 250 CTimer::get("XIOS").resume(); 251 if (!string_copy(fieldgroup_hdl->expr.getInheritedValue(), expr, expr_size)) 252 ERROR("void cxios_get_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl, char * expr, int expr_size)", << "Input string is too short"); 253 CTimer::get("XIOS").suspend(); 254 } 255 256 bool cxios_is_defined_fieldgroup_expr(fieldgroup_Ptr fieldgroup_hdl) 257 { 258 CTimer::get("XIOS").resume(); 259 bool isDefined = fieldgroup_hdl->expr.hasInheritedValue(); 182 260 CTimer::get("XIOS").suspend(); 183 261 return isDefined;
Note: See TracChangeset
for help on using the changeset viewer.