Changeset 347 for XIOS/trunk/src/interface/c_attr/icgridgroup_attr.cpp
- Timestamp:
- 05/21/12 17:57:22 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icgridgroup_attr.cpp
r345 r347 10 10 #include "group_template_impl.hpp" 11 11 #include "icutil.hpp" 12 #include "timer.hpp" 12 13 13 14 extern "C" … … 19 20 std::string axis_ref_str; 20 21 if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; 22 CTimer::get("XIOS").resume(); 21 23 gridgroup_hdl->axis_ref.setValue(axis_ref_str); 22 24 gridgroup_hdl->sendAttributToServer(gridgroup_hdl->axis_ref); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(gridgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) 28 32 ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 34 39 std::string description_str; 35 40 if(!cstr2string(description, description_size, description_str)) return; 41 CTimer::get("XIOS").resume(); 36 42 gridgroup_hdl->description.setValue(description_str); 37 43 gridgroup_hdl->sendAttributToServer(gridgroup_hdl->description); 44 CTimer::get("XIOS").suspend(); 38 45 } 39 46 40 47 void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) 41 48 { 49 CTimer::get("XIOS").resume(); 42 50 if(!string_copy(gridgroup_hdl->description.getValue(),description , description_size)) 43 51 ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); 52 CTimer::get("XIOS").suspend(); 44 53 } 45 54 … … 49 58 std::string domain_ref_str; 50 59 if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; 60 CTimer::get("XIOS").resume(); 51 61 gridgroup_hdl->domain_ref.setValue(domain_ref_str); 52 62 gridgroup_hdl->sendAttributToServer(gridgroup_hdl->domain_ref); 63 CTimer::get("XIOS").suspend(); 53 64 } 54 65 55 66 void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) 56 67 { 68 CTimer::get("XIOS").resume(); 57 69 if(!string_copy(gridgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) 58 70 ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); 71 CTimer::get("XIOS").suspend(); 59 72 } 60 73 … … 64 77 std::string group_ref_str; 65 78 if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 79 CTimer::get("XIOS").resume(); 66 80 gridgroup_hdl->group_ref.setValue(group_ref_str); 67 81 gridgroup_hdl->sendAttributToServer(gridgroup_hdl->group_ref); 82 CTimer::get("XIOS").suspend(); 68 83 } 69 84 70 85 void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) 71 86 { 87 CTimer::get("XIOS").resume(); 72 88 if(!string_copy(gridgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 73 89 ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 90 CTimer::get("XIOS").suspend(); 74 91 } 75 92 … … 79 96 std::string name_str; 80 97 if(!cstr2string(name, name_size, name_str)) return; 98 CTimer::get("XIOS").resume(); 81 99 gridgroup_hdl->name.setValue(name_str); 82 100 gridgroup_hdl->sendAttributToServer(gridgroup_hdl->name); 101 CTimer::get("XIOS").suspend(); 83 102 } 84 103 85 104 void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) 86 105 { 106 CTimer::get("XIOS").resume(); 87 107 if(!string_copy(gridgroup_hdl->name.getValue(),name , name_size)) 88 108 ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); 109 CTimer::get("XIOS").suspend(); 89 110 } 90 111
Note: See TracChangeset
for help on using the changeset viewer.