Changeset 347 for XIOS/trunk/src/interface/c_attr/icfilegroup_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/icfilegroup_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 description_str; 20 21 if(!cstr2string(description, description_size, description_str)) return; 22 CTimer::get("XIOS").resume(); 21 23 filegroup_hdl->description.setValue(description_str); 22 24 filegroup_hdl->sendAttributToServer(filegroup_hdl->description); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(filegroup_hdl->description.getValue(),description , description_size)) 28 32 ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 32 37 void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled) 33 38 { 39 CTimer::get("XIOS").resume(); 34 40 filegroup_hdl->enabled.setValue(enabled); 35 41 filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled); 42 CTimer::get("XIOS").suspend(); 36 43 } 37 44 … … 46 53 std::string group_ref_str; 47 54 if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 55 CTimer::get("XIOS").resume(); 48 56 filegroup_hdl->group_ref.setValue(group_ref_str); 49 57 filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref); 58 CTimer::get("XIOS").suspend(); 50 59 } 51 60 52 61 void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size) 53 62 { 63 CTimer::get("XIOS").resume(); 54 64 if(!string_copy(filegroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 55 65 ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 66 CTimer::get("XIOS").suspend(); 56 67 } 57 68 … … 61 72 std::string name_str; 62 73 if(!cstr2string(name, name_size, name_str)) return; 74 CTimer::get("XIOS").resume(); 63 75 filegroup_hdl->name.setValue(name_str); 64 76 filegroup_hdl->sendAttributToServer(filegroup_hdl->name); 77 CTimer::get("XIOS").suspend(); 65 78 } 66 79 67 80 void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size) 68 81 { 82 CTimer::get("XIOS").resume(); 69 83 if(!string_copy(filegroup_hdl->name.getValue(),name , name_size)) 70 84 ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short"); 85 CTimer::get("XIOS").suspend(); 71 86 } 72 87 … … 76 91 std::string name_suffix_str; 77 92 if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; 93 CTimer::get("XIOS").resume(); 78 94 filegroup_hdl->name_suffix.setValue(name_suffix_str); 79 95 filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix); 96 CTimer::get("XIOS").suspend(); 80 97 } 81 98 82 99 void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size) 83 100 { 101 CTimer::get("XIOS").resume(); 84 102 if(!string_copy(filegroup_hdl->name_suffix.getValue(),name_suffix , name_suffix_size)) 85 103 ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); 104 CTimer::get("XIOS").suspend(); 86 105 } 87 106 … … 91 110 std::string output_freq_str; 92 111 if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; 112 CTimer::get("XIOS").resume(); 93 113 filegroup_hdl->output_freq.setValue(output_freq_str); 94 114 filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq); 115 CTimer::get("XIOS").suspend(); 95 116 } 96 117 97 118 void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size) 98 119 { 120 CTimer::get("XIOS").resume(); 99 121 if(!string_copy(filegroup_hdl->output_freq.getValue(),output_freq , output_freq_size)) 100 122 ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); 123 CTimer::get("XIOS").suspend(); 101 124 } 102 125 … … 104 127 void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level) 105 128 { 129 CTimer::get("XIOS").resume(); 106 130 filegroup_hdl->output_level.setValue(output_level); 107 131 filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level); 132 CTimer::get("XIOS").suspend(); 108 133 } 109 134 … … 118 143 std::string par_access_str; 119 144 if(!cstr2string(par_access, par_access_size, par_access_str)) return; 145 CTimer::get("XIOS").resume(); 120 146 filegroup_hdl->par_access.setValue(par_access_str); 121 147 filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access); 148 CTimer::get("XIOS").suspend(); 122 149 } 123 150 124 151 void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size) 125 152 { 153 CTimer::get("XIOS").resume(); 126 154 if(!string_copy(filegroup_hdl->par_access.getValue(),par_access , par_access_size)) 127 155 ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); 156 CTimer::get("XIOS").suspend(); 128 157 } 129 158 … … 133 162 std::string split_freq_str; 134 163 if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; 164 CTimer::get("XIOS").resume(); 135 165 filegroup_hdl->split_freq.setValue(split_freq_str); 136 166 filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq); 167 CTimer::get("XIOS").suspend(); 137 168 } 138 169 139 170 void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size) 140 171 { 172 CTimer::get("XIOS").resume(); 141 173 if(!string_copy(filegroup_hdl->split_freq.getValue(),split_freq , split_freq_size)) 142 174 ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); 175 CTimer::get("XIOS").suspend(); 143 176 } 144 177 … … 148 181 std::string sync_freq_str; 149 182 if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; 183 CTimer::get("XIOS").resume(); 150 184 filegroup_hdl->sync_freq.setValue(sync_freq_str); 151 185 filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq); 186 CTimer::get("XIOS").suspend(); 152 187 } 153 188 154 189 void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size) 155 190 { 191 CTimer::get("XIOS").resume(); 156 192 if(!string_copy(filegroup_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) 157 193 ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); 194 CTimer::get("XIOS").suspend(); 158 195 } 159 196 … … 163 200 std::string type_str; 164 201 if(!cstr2string(type, type_size, type_str)) return; 202 CTimer::get("XIOS").resume(); 165 203 filegroup_hdl->type.setValue(type_str); 166 204 filegroup_hdl->sendAttributToServer(filegroup_hdl->type); 205 CTimer::get("XIOS").suspend(); 167 206 } 168 207 169 208 void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size) 170 209 { 210 CTimer::get("XIOS").resume(); 171 211 if(!string_copy(filegroup_hdl->type.getValue(),type , type_size)) 172 212 ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short"); 213 CTimer::get("XIOS").suspend(); 173 214 } 174 215
Note: See TracChangeset
for help on using the changeset viewer.