Changeset 347 for XIOS/trunk/src/interface
- Timestamp:
- 05/21/12 17:57:22 (12 years ago)
- Location:
- XIOS/trunk/src/interface
- Files:
-
- 20 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c/icaxis.cpp
r346 r347 13 13 14 14 #include "icutil.hpp" 15 #include "timer.hpp" 15 16 16 17 extern "C" … … 29 30 std::string id; 30 31 if (!cstr2string(_id, _id_len, id)) return; 31 32 *_ret = xios::CAxis::get(id).get(); 32 CTimer::get("XIOS").resume() ; 33 *_ret = xios::CAxis::get(id); 34 CTimer::get("XIOS").suspend() ; 33 35 } 34 36 … … 37 39 std::string id; 38 40 if (!cstr2string(_id, _id_len, id)) return; 39 40 *_ret = xios::CAxisGroup::get(id).get(); 41 } 41 CTimer::get("XIOS").resume() ; 42 *_ret = xios::CAxisGroup::get(id); 43 CTimer::get("XIOS").suspend() ; 44 } 42 45 43 46 // -------------------- Vérification des identifiants ----------------------- … … 48 51 if (!cstr2string(_id, _id_len, id)) return; 49 52 53 CTimer::get("XIOS").resume() ; 50 54 *_ret = xios::CAxis::has(id); 55 CTimer::get("XIOS").suspend() ; 51 56 } 52 57 … … 56 61 if (!cstr2string(_id, _id_len, id)) return; 57 62 63 CTimer::get("XIOS").resume() ; 58 64 *_ret = xios::CAxisGroup::has(id); 65 CTimer::get("XIOS").suspend() ; 66 59 67 } 60 68 -
XIOS/trunk/src/interface/c/iccontext.cpp
r346 r347 15 15 16 16 #include "icutil.hpp" 17 #include "timer.hpp" 17 18 18 19 extern "C" … … 32 33 std::string id; 33 34 if (!cstr2string(_id, _id_len, id)) return; 34 35 std::vector<boost::shared_ptr<xios::CContext> > def_vector = 35 CTimer::get("XIOS").resume() ; 36 37 std::vector<xios::CContext*> def_vector = 36 38 xios::CContext::getRoot()->getChildList(); 37 39 … … 39 41 { 40 42 if (def_vector[i]->getId().compare(id) == 0) 41 *_ret = def_vector[i].get(); 43 *_ret = def_vector[i]; 44 CTimer::get("XIOS").suspend() ; 42 45 return; 43 46 } 47 CTimer::get("XIOS").suspend() ; 44 48 // Lever une exeception ici 45 49 } … … 49 53 void cxios_context_set_current(XContextPtr context, bool withswap) 50 54 { 55 CTimer::get("XIOS").resume() ; 51 56 CContext::setCurrent(context->getId()); 57 CTimer::get("XIOS").suspend() ; 52 58 } 53 59 … … 59 65 std::string id; 60 66 if (!cstr2string(_id, _id_len, id)) return; 61 62 std::vector<boost::shared_ptr<xios::CContext> > def_vector = 67 68 CTimer::get("XIOS").resume() ; 69 std::vector<xios::CContext*> def_vector = 63 70 xios::CContext::getRoot()->getChildList(); 64 71 … … 69 76 } 70 77 *_ret = false; 78 CTimer::get("XIOS").suspend() ; 71 79 } 72 80 } // extern "C" -
XIOS/trunk/src/interface/c/icdata.cpp
r346 r347 22 22 #include "field_impl.hpp" 23 23 #include <mpi.h> 24 #include "timer.hpp" 24 25 25 26 extern "C" … … 36 37 void cxios_init_server(void) 37 38 { 39 CTimer::get("XIOS").resume() ; 38 40 CXios::initServerSide(); 41 CTimer::get("XIOS").suspend() ; 39 42 } 40 43 … … 46 49 47 50 if (!cstr2string(client_id, len_client_id, str)) return; 48 51 52 CTimer::get("XIOS").resume() ; 53 CTimer::get("XIOS init").resume() ; 49 54 int initialized ; 50 55 MPI_Initialized(&initialized) ; … … 53 58 CXios::initClientSide(str,local_comm,return_comm); 54 59 *f_return_comm=MPI_Comm_c2f(return_comm) ; 60 CTimer::get("XIOS init").suspend() ; 61 CTimer::get("XIOS").suspend() ; 55 62 } 56 63 … … 61 68 62 69 if (!cstr2string(context_id, len_context_id, str)) return; 70 CTimer::get("XIOS").resume() ; 71 CTimer::get("XIOS init context").resume() ; 63 72 comm=MPI_Comm_f2c(*f_comm) ; 64 73 CClient::registerContext(str,comm) ; 74 CTimer::get("XIOS init context").suspend() ; 75 CTimer::get("XIOS").suspend() ; 65 76 } 66 77 67 78 void cxios_context_close_definition() 68 79 { 69 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 80 CTimer::get("XIOS").resume() ; 81 CTimer::get("XIOS close definition").resume() ; 82 CContext* context = CContext::getCurrent() ; 70 83 context->closeDefinition() ; 84 CTimer::get("XIOS close definition").suspend() ; 85 CTimer::get("XIOS").suspend() ; 71 86 } 72 87 73 88 void cxios_context_finalize() 74 89 { 75 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 90 CTimer::get("XIOS").resume() ; 91 CTimer::get("XIOS context finalize").resume() ; 92 CContext* context = CContext::getCurrent() ; 76 93 context->finalize() ; 94 CTimer::get("XIOS context finalize").suspend() ; 95 CTimer::get("XIOS").suspend() ; 77 96 } 78 97 79 98 void cxios_finalize() 80 99 { 100 CTimer::get("XIOS").resume() ; 101 CTimer::get("XIOS finalize").resume() ; 81 102 CXios::clientFinalize() ; 103 CTimer::get("XIOS finalize").suspend() ; 104 CTimer::get("XIOS").suspend() ; 82 105 } 83 106 … … 89 112 { 90 113 std::string fieldid_str; 91 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 92 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 93 114 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 115 116 CTimer::get("XIOS").resume() ; 117 CTimer::get("XIOS send field").resume() ; 118 CContext* context = CContext::getCurrent() ; 94 119 // boost::const_multi_array_ref<double, 1> array_(data_k8, 95 120 // boost::extents [data_Xsize], … … 100 125 // dtreat->write_data(fieldid_str, data); 101 126 CField::get(fieldid_str)->setData(data) ; 127 CTimer::get("XIOS send field").suspend() ; 128 CTimer::get("XIOS").suspend() ; 102 129 } 103 130 … … 105 132 { 106 133 std::string fieldid_str; 107 boost::shared_ptr<CContext> context = CContext::getCurrent() ;108 134 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 135 136 CTimer::get("XIOS").resume() ; 137 CTimer::get("XIOS send field").resume() ; 138 CContext* context = CContext::getCurrent() ; 109 139 110 140 // boost::const_multi_array_ref<double, 2> array_(data_k8, … … 115 145 // dtreat->write_data(fieldid_str, data); 116 146 CField::get(fieldid_str)->setData(data) ; 147 CTimer::get("XIOS send field").suspend() ; 148 CTimer::get("XIOS").suspend() ; 117 149 } 118 150 … … 120 152 { 121 153 std::string fieldid_str; 122 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 123 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 124 154 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 155 156 CTimer::get("XIOS").resume() ; 157 CTimer::get("XIOS send field").resume() ; 158 CContext* context = CContext::getCurrent() ; 125 159 // boost::const_multi_array_ref<double, 3> array_(data_k8, 126 160 // boost::extents [data_Xsize][data_Ysize][data_Zsize], … … 130 164 // dtreat->write_data(fieldid_str, data); 131 165 CField::get(fieldid_str)->setData(data) ; 132 166 CTimer::get("XIOS send field").suspend() ; 167 CTimer::get("XIOS").suspend() ; 133 168 } 134 169 … … 136 171 { 137 172 std::string fieldid_str; 138 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 139 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 140 173 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 174 175 CTimer::get("XIOS").resume() ; 176 CTimer::get("XIOS send field").resume() ; 177 CContext* context = CContext::getCurrent() ; 141 178 // boost::const_multi_array_ref<float, 1> array_(data_k4, 142 179 // boost::extents [data_Xsize], … … 149 186 for(int i=0;i<data->num_elements();i++) ptr_data[i]=data_k4[i]; 150 187 CField::get(fieldid_str)->setData(data) ; 188 CTimer::get("XIOS send field").suspend() ; 189 CTimer::get("XIOS").suspend() ; 151 190 } 152 191 … … 154 193 { 155 194 std::string fieldid_str; 156 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 157 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 158 195 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 196 197 CTimer::get("XIOS").resume() ; 198 CTimer::get("XIOS send field").resume() ; 199 CContext* context = CContext::getCurrent() ; 159 200 // boost::const_multi_array_ref<float, 2> array_(data_k4, 160 201 // boost::extents [data_Xsize][data_Ysize], … … 167 208 for(int i=0;i<data->num_elements();i++) ptr_data[i]=data_k4[i]; 168 209 CField::get(fieldid_str)->setData(data) ; 210 CTimer::get("XIOS send field").suspend() ; 211 CTimer::get("XIOS").suspend() ; 169 212 } 170 213 … … 172 215 { 173 216 std::string fieldid_str; 174 boost::shared_ptr<CContext> context = CContext::getCurrent() ; 175 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 176 217 218 if (!cstr2string(fieldid, fieldid_size, fieldid_str)) return; 219 220 CTimer::get("XIOS").resume() ; 221 CTimer::get("XIOS send field").resume() ; 222 CContext* context = CContext::getCurrent() ; 223 177 224 // boost::const_multi_array_ref<float, 3> array_(data_k4, 178 225 // boost::extents [data_Xsize][data_Ysize][data_Zsize], … … 185 232 for(int i=0;i<data->num_elements();i++) ptr_data[i]=data_k4[i]; 186 233 CField::get(fieldid_str)->setData(data) ; 234 CTimer::get("XIOS send field").suspend() ; 235 CTimer::get("XIOS").suspend() ; 236 187 237 } 188 238 -
XIOS/trunk/src/interface/c/icdate.cpp
r346 r347 15 15 16 16 #include "icutil.hpp" 17 #include "timer.hpp" 17 18 18 19 extern "C" … … 25 26 try 26 27 { 28 CTimer::get("XIOS").resume() ; 27 29 CDuration dur = {ts_year, ts_month, ts_day, ts_hour, ts_minute, ts_second}; 28 boost::shared_ptr<xios::CContext>context = CContext::getCurrent() ;30 xios::CContext* context = CContext::getCurrent() ; 29 31 30 32 context->timestep.setValue(dur.toString()); 31 33 context->sendAttributToServer("timestep") ; 34 CTimer::get("XIOS").suspend() ; 32 35 } 33 36 catch (xios::CException & exc) … … 40 43 void cxios_update_calendar(int step) 41 44 { 42 boost::shared_ptr<xios::CContext> context = CContext::getCurrent() ; 45 CTimer::get("XIOS").resume() ; 46 xios::CContext* context = CContext::getCurrent() ; 43 47 context->updateCalendar(step) ; 44 48 context->sendUpdateCalendar(step) ; 49 CTimer::get("XIOS").suspend() ; 45 50 46 51 } -
XIOS/trunk/src/interface/c/icdomain.cpp
r346 r347 13 13 14 14 #include "icutil.hpp" 15 #include "timer.hpp" 15 16 16 17 extern "C" … … 29 30 std::string id; 30 31 if (!cstr2string(_id, _id_len, id)) return; 31 32 *_ret = CDomain::get(id).get(); 32 CTimer::get("XIOS").resume() ; 33 *_ret = CDomain::get(id); 34 CTimer::get("XIOS").suspend() ; 33 35 } 34 36 … … 38 40 if (!cstr2string(_id, _id_len, id)) return; 39 41 40 *_ret = CDomainGroup::get(id).get(); 42 CTimer::get("XIOS").resume() ; 43 *_ret = CDomainGroup::get(id); 44 CTimer::get("XIOS").suspend() ; 41 45 } 42 46 … … 48 52 if (!cstr2string(_id, _id_len, id)) return; 49 53 54 CTimer::get("XIOS").resume() ; 50 55 *_ret = CDomain::has(id); 56 CTimer::get("XIOS").suspend() ; 51 57 } 52 58 … … 55 61 std::string id; 56 62 if (!cstr2string(_id, _id_len, id)) return; 57 63 CTimer::get("XIOS").resume() ; 58 64 *_ret = CDomainGroup::has(id); 65 CTimer::get("XIOS").suspend() ; 59 66 } 60 67 } // extern "C" -
XIOS/trunk/src/interface/c/icfield.cpp
r346 r347 13 13 14 14 #include "icutil.hpp" 15 #include "timer.hpp" 15 16 16 17 extern "C" … … 31 32 std::string id; 32 33 if (!cstr2string(_id, _id_len, id)) return; 33 34 *_ret = CField::get(id).get(); 34 CTimer::get("XIOS").resume() ; 35 *_ret = CField::get(id); 36 CTimer::get("XIOS").suspend() ; 35 37 } 36 38 … … 39 41 std::string id; 40 42 if (!cstr2string(_id, _id_len, id)) return; 41 42 *_ret = CFieldGroup::get(id).get(); 43 CTimer::get("XIOS").resume() ; 44 *_ret = CFieldGroup::get(id); 45 CTimer::get("XIOS").suspend() ; 43 46 } 44 47 … … 50 53 std::string id; 51 54 if (!cstr2string(_id, _id_len, id)) return; 52 55 CTimer::get("XIOS").resume() ; 53 56 *_ret = CField::has(id); 57 CTimer::get("XIOS").suspend() ; 54 58 } 55 59 … … 58 62 std::string id; 59 63 if (!cstr2string(_id, _id_len, id)) return; 60 64 CTimer::get("XIOS").resume() ; 61 65 *_ret = CFieldGroup::has(id); 66 CTimer::get("XIOS").suspend() ; 62 67 } 63 68 … … 68 73 void cxios_field_is_active (XFieldPtr field_hdl, bool* ret) 69 74 { 75 CTimer::get("XIOS").resume() ; 70 76 *ret = field_hdl->isActive(); 77 CTimer::get("XIOS").suspend() ; 71 78 } 72 79 -
XIOS/trunk/src/interface/c/icfile.cpp
r346 r347 13 13 14 14 #include "icutil.hpp" 15 #include "timer.hpp" 15 16 16 17 extern "C" … … 29 30 std::string id; 30 31 if (!cstr2string(_id, _id_len, id)) return; 31 32 *_ret = CFile::get(id).get(); 32 CTimer::get("XIOS").resume() ; 33 *_ret = CFile::get(id); 34 CTimer::get("XIOS").suspend() ; 33 35 } 34 36 … … 37 39 std::string id; 38 40 if (!cstr2string(_id, _id_len, id)) return; 39 40 *_ret = CFileGroup::get(id).get(); 41 CTimer::get("XIOS").resume() ; 42 *_ret = CFileGroup::get(id); 43 CTimer::get("XIOS").suspend() ; 41 44 } 42 45 … … 47 50 std::string id; 48 51 if (!cstr2string(_id, _id_len, id)) return; 49 52 CTimer::get("XIOS").resume() ; 50 53 *_ret = CFile::has(id); 54 CTimer::get("XIOS").suspend() ; 51 55 } 52 56 … … 55 59 std::string id; 56 60 if (!cstr2string(_id, _id_len, id)) return; 57 61 CTimer::get("XIOS").resume() ; 58 62 *_ret = CFileGroup::has(id); 63 CTimer::get("XIOS").suspend() ; 59 64 } 60 65 } // extern "C" -
XIOS/trunk/src/interface/c/icgrid.cpp
r346 r347 13 13 14 14 #include "icutil.hpp" 15 #include "timer.hpp" 15 16 16 17 extern "C" … … 29 30 std::string id; 30 31 if (!cstr2string(_id, _id_len, id)) return; 31 32 *_ret = CGrid::get(id).get(); 32 CTimer::get("XIOS").resume() ; 33 *_ret = CGrid::get(id); 34 CTimer::get("XIOS").suspend() ; 33 35 } 34 36 … … 37 39 std::string id; 38 40 if (!cstr2string(_id, _id_len, id)) return; 39 40 *_ret = CGridGroup::get(id).get(); 41 CTimer::get("XIOS").resume() ; 42 *_ret = CGridGroup::get(id); 43 CTimer::get("XIOS").suspend() ; 41 44 } 42 45 … … 47 50 std::string id; 48 51 if (!cstr2string(_id, _id_len, id)) return; 49 52 CTimer::get("XIOS").resume() ; 50 53 *_ret = CGrid::has(id); 54 CTimer::get("XIOS").suspend() ; 51 55 } 52 56 … … 55 59 std::string id; 56 60 if (!cstr2string(_id, _id_len, id)) return; 57 61 CTimer::get("XIOS").resume() ; 58 62 *_ret = CGridGroup::has(id); 63 CTimer::get("XIOS").suspend() ; 59 64 } 60 65 } // extern "C" -
XIOS/trunk/src/interface/c/icxml_tree.cpp
r346 r347 13 13 14 14 #include "icutil.hpp" 15 #include "timer.hpp" 15 16 16 17 extern "C" … … 43 44 { 44 45 std::string child_id_str; 45 46 if (cstr2string(child_id, child_id_size, child_id_str)) 47 { 48 *child_ = parent_->createChild(child_id_str).get() ; 49 parent_->sendCreateChild(child_id_str) ; 50 } 51 else 52 { 53 *child_ = parent_->createChild().get() ; 54 parent_->sendCreateChild() ; 55 } 46 CTimer::get("XIOS").resume() ; 47 if (cstr2string(child_id, child_id_size, child_id_str)) 48 { 49 *child_ = parent_->createChild(child_id_str) ; 50 parent_->sendCreateChild(child_id_str) ; 51 } 52 else 53 { 54 *child_ = parent_->createChild() ; 55 parent_->sendCreateChild() ; 56 } 57 CTimer::get("XIOS").suspend() ; 56 58 } 57 59 … … 60 62 { 61 63 std::string child_id_str; 62 if (cstr2string(child_id, child_id_size, child_id_str)) 63 { 64 *child_ = parent_->createChild(child_id_str).get() ; 65 parent_->sendCreateChild(child_id_str) ; 66 } 67 else 68 { 69 *child_ = parent_->createChild().get() ; 70 parent_->sendCreateChild() ; 71 } 64 CTimer::get("XIOS").resume() ; 65 if (cstr2string(child_id, child_id_size, child_id_str)) 66 { 67 *child_ = parent_->createChild(child_id_str) ; 68 parent_->sendCreateChild(child_id_str) ; 69 } 70 else 71 { 72 *child_ = parent_->createChild() ; 73 parent_->sendCreateChild() ; 74 } 75 CTimer::get("XIOS").suspend() ; 72 76 } 73 77 … … 76 80 { 77 81 std::string child_id_str; 78 if (cstr2string(child_id, child_id_size, child_id_str)) 79 { 80 *child_ = parent_->createChild(child_id_str).get() ; 81 parent_->sendCreateChild(child_id_str) ; 82 } 83 else 84 { 85 *child_ = parent_->createChild().get() ; 86 parent_->sendCreateChild() ; 87 } 82 CTimer::get("XIOS").resume() ; 83 if (cstr2string(child_id, child_id_size, child_id_str)) 84 { 85 *child_ = parent_->createChild(child_id_str) ; 86 parent_->sendCreateChild(child_id_str) ; 87 } 88 else 89 { 90 *child_ = parent_->createChild() ; 91 parent_->sendCreateChild() ; 92 } 93 CTimer::get("XIOS").suspend() ; 88 94 } 89 95 … … 92 98 { 93 99 std::string child_id_str; 94 if (cstr2string(child_id, child_id_size, child_id_str)) 95 { 96 *child_ = parent_->createChild(child_id_str).get() ; 97 parent_->sendCreateChild(child_id_str) ; 98 } 99 else 100 { 101 *child_ = parent_->createChild().get() ; 102 parent_->sendCreateChild() ; 103 } 100 CTimer::get("XIOS").resume() ; 101 if (cstr2string(child_id, child_id_size, child_id_str)) 102 { 103 *child_ = parent_->createChild(child_id_str) ; 104 parent_->sendCreateChild(child_id_str) ; 105 } 106 else 107 { 108 *child_ = parent_->createChild() ; 109 parent_->sendCreateChild() ; 110 } 111 CTimer::get("XIOS").suspend() ; 104 112 } 105 113 … … 107 115 (XDomainGroupPtr parent_, XDomainPtr * child_, const char * child_id, int child_id_size) 108 116 { 109 std::string child_id_str; 110 if (cstr2string(child_id, child_id_size, child_id_str)) 111 { 112 *child_ = parent_->createChild(child_id_str).get() ; 113 parent_->sendCreateChild(child_id_str) ; 114 } 115 else 116 { 117 *child_ = parent_->createChild().get() ; 118 parent_->sendCreateChild() ; 119 } 117 std::string child_id_str; 118 CTimer::get("XIOS").resume() ; 119 if (cstr2string(child_id, child_id_size, child_id_str)) 120 { 121 *child_ = parent_->createChild(child_id_str) ; 122 parent_->sendCreateChild(child_id_str) ; 123 } 124 else 125 { 126 *child_ = parent_->createChild() ; 127 parent_->sendCreateChild() ; 128 } 129 CTimer::get("XIOS").suspend() ; 120 130 } 121 131 … … 123 133 (XFilePtr parent_, XFieldPtr * child_, const char * child_id, int child_id_size) 124 134 { 125 std::string child_id_str; 135 std::string child_id_str; 136 CTimer::get("XIOS").resume() ; 126 137 127 138 if (cstr2string(child_id, child_id_size, child_id_str)) 128 139 { 129 *child_ = parent_->addField(child_id_str) .get();140 *child_ = parent_->addField(child_id_str); 130 141 parent_->sendAddField(child_id_str) ; 131 142 } 132 143 else 133 144 { 134 *child_ = parent_->addField() .get();145 *child_ = parent_->addField(); 135 146 parent_->sendAddField() ; 136 147 } 148 CTimer::get("XIOS").suspend() ; 137 149 } 138 150 … … 143 155 { 144 156 std::string child_id_str; 145 146 if (cstr2string(child_id, child_id_size, child_id_str)) 147 { 148 *child_ = parent_->createChildGroup(child_id_str).get() ; 149 parent_->sendCreateChildGroup(child_id_str) ; 150 } 151 else 152 { 153 *child_ = parent_->createChildGroup().get() ; 154 parent_->sendCreateChildGroup(child_id_str) ; 155 } 157 CTimer::get("XIOS").resume() ; 158 if (cstr2string(child_id, child_id_size, child_id_str)) 159 { 160 *child_ = parent_->createChildGroup(child_id_str) ; 161 parent_->sendCreateChildGroup(child_id_str) ; 162 } 163 else 164 { 165 *child_ = parent_->createChildGroup() ; 166 parent_->sendCreateChildGroup(child_id_str) ; 167 } 168 CTimer::get("XIOS").suspend() ; 156 169 } 157 170 … … 160 173 { 161 174 std::string child_id_str; 162 163 if (cstr2string(child_id, child_id_size, child_id_str)) 164 { 165 *child_ = parent_->createChildGroup(child_id_str).get() ; 166 parent_->sendCreateChildGroup(child_id_str) ; 167 } 168 else 169 { 170 *child_ = parent_->createChildGroup().get() ; 171 parent_->sendCreateChildGroup(child_id_str) ; 172 } 175 CTimer::get("XIOS").resume() ; 176 if (cstr2string(child_id, child_id_size, child_id_str)) 177 { 178 *child_ = parent_->createChildGroup(child_id_str) ; 179 parent_->sendCreateChildGroup(child_id_str) ; 180 } 181 else 182 { 183 *child_ = parent_->createChildGroup() ; 184 parent_->sendCreateChildGroup(child_id_str) ; 185 } 186 CTimer::get("XIOS").suspend() ; 173 187 } 174 188 … … 177 191 { 178 192 std::string child_id_str; 179 if (cstr2string(child_id, child_id_size, child_id_str)) 180 { 181 *child_ = parent_->createChildGroup(child_id_str).get() ; 182 parent_->sendCreateChildGroup(child_id_str) ; 183 } 184 else 185 { 186 *child_ = parent_->createChildGroup().get() ; 187 parent_->sendCreateChildGroup(child_id_str) ; 188 } 193 CTimer::get("XIOS").resume() ; 194 if (cstr2string(child_id, child_id_size, child_id_str)) 195 { 196 *child_ = parent_->createChildGroup(child_id_str) ; 197 parent_->sendCreateChildGroup(child_id_str) ; 198 } 199 else 200 { 201 *child_ = parent_->createChildGroup() ; 202 parent_->sendCreateChildGroup(child_id_str) ; 203 } 204 CTimer::get("XIOS").suspend() ; 189 205 } 190 206 … … 193 209 { 194 210 std::string child_id_str; 195 if (cstr2string(child_id, child_id_size, child_id_str)) 196 { 197 *child_ = parent_->createChildGroup(child_id_str).get() ; 198 parent_->sendCreateChildGroup(child_id_str) ; 199 } 200 else 201 { 202 *child_ = parent_->createChildGroup().get() ; 203 parent_->sendCreateChildGroup(child_id_str) ; 204 } 211 CTimer::get("XIOS").resume() ; 212 if (cstr2string(child_id, child_id_size, child_id_str)) 213 { 214 *child_ = parent_->createChildGroup(child_id_str) ; 215 parent_->sendCreateChildGroup(child_id_str) ; 216 } 217 else 218 { 219 *child_ = parent_->createChildGroup() ; 220 parent_->sendCreateChildGroup(child_id_str) ; 221 } 222 CTimer::get("XIOS").suspend() ; 205 223 } 206 224 … … 209 227 { 210 228 std::string child_id_str; 211 if (cstr2string(child_id, child_id_size, child_id_str)) 212 { 213 *child_ = parent_->createChildGroup(child_id_str).get() ; 214 parent_->sendCreateChildGroup(child_id_str) ; 215 } 216 else 217 { 218 *child_ = parent_->createChildGroup().get() ; 219 parent_->sendCreateChildGroup(child_id_str) ; 220 } 229 CTimer::get("XIOS").resume() ; 230 if (cstr2string(child_id, child_id_size, child_id_str)) 231 { 232 *child_ = parent_->createChildGroup(child_id_str) ; 233 parent_->sendCreateChildGroup(child_id_str) ; 234 } 235 else 236 { 237 *child_ = parent_->createChildGroup() ; 238 parent_->sendCreateChildGroup(child_id_str) ; 239 } 240 CTimer::get("XIOS").suspend() ; 221 241 } 222 242 … … 225 245 { 226 246 std::string child_id_str; 227 228 if (cstr2string(child_id, child_id_size, child_id_str)) 229 { 230 *child_ = parent_->addFieldGroup(child_id_str) .get();247 CTimer::get("XIOS").resume() ; 248 if (cstr2string(child_id, child_id_size, child_id_str)) 249 { 250 *child_ = parent_->addFieldGroup(child_id_str); 231 251 parent_->sendAddFieldGroup(child_id_str) ; 232 252 } 233 253 else 234 254 { 235 *child_ = parent_->addFieldGroup() .get();255 *child_ = parent_->addFieldGroup(); 236 256 parent_->sendAddFieldGroup() ; 237 257 } 258 CTimer::get("XIOS").suspend() ; 238 259 } 239 260 -
XIOS/trunk/src/interface/c_attr/icaxis_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 long_name_str; 20 21 if(!cstr2string(long_name, long_name_size, long_name_str)) return; 22 CTimer::get("XIOS").resume(); 21 23 axis_hdl->long_name.setValue(long_name_str); 22 24 axis_hdl->sendAttributToServer(axis_hdl->long_name); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(axis_hdl->long_name.getValue(),long_name , long_name_size)) 28 32 ERROR("void cxios_get_axis_long_name(axis_Ptr axis_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 34 39 std::string name_str; 35 40 if(!cstr2string(name, name_size, name_str)) return; 41 CTimer::get("XIOS").resume(); 36 42 axis_hdl->name.setValue(name_str); 37 43 axis_hdl->sendAttributToServer(axis_hdl->name); 44 CTimer::get("XIOS").suspend(); 38 45 } 39 46 40 47 void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size) 41 48 { 49 CTimer::get("XIOS").resume(); 42 50 if(!string_copy(axis_hdl->name.getValue(),name , name_size)) 43 51 ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); 52 CTimer::get("XIOS").suspend(); 44 53 } 45 54 … … 47 56 void cxios_set_axis_size(axis_Ptr axis_hdl, int size) 48 57 { 58 CTimer::get("XIOS").resume(); 49 59 axis_hdl->size.setValue(size); 50 60 axis_hdl->sendAttributToServer(axis_hdl->size); 61 CTimer::get("XIOS").suspend(); 51 62 } 52 63 … … 61 72 std::string standard_name_str; 62 73 if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 74 CTimer::get("XIOS").resume(); 63 75 axis_hdl->standard_name.setValue(standard_name_str); 64 76 axis_hdl->sendAttributToServer(axis_hdl->standard_name); 77 CTimer::get("XIOS").suspend(); 65 78 } 66 79 67 80 void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size) 68 81 { 82 CTimer::get("XIOS").resume(); 69 83 if(!string_copy(axis_hdl->standard_name.getValue(),standard_name , standard_name_size)) 70 84 ERROR("void cxios_get_axis_standard_name(axis_Ptr axis_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 85 CTimer::get("XIOS").suspend(); 71 86 } 72 87 … … 76 91 std::string unit_str; 77 92 if(!cstr2string(unit, unit_size, unit_str)) return; 93 CTimer::get("XIOS").resume(); 78 94 axis_hdl->unit.setValue(unit_str); 79 95 axis_hdl->sendAttributToServer(axis_hdl->unit); 96 CTimer::get("XIOS").suspend(); 80 97 } 81 98 82 99 void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size) 83 100 { 101 CTimer::get("XIOS").resume(); 84 102 if(!string_copy(axis_hdl->unit.getValue(),unit , unit_size)) 85 103 ERROR("void cxios_get_axis_unit(axis_Ptr axis_hdl, char * unit, int unit_size)", <<"Input string is to short"); 104 CTimer::get("XIOS").suspend(); 86 105 } 87 106 … … 89 108 void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1) 90 109 { 110 CTimer::get("XIOS").resume(); 91 111 ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 92 112 std::copy(value, &(value[array_tmp->num_elements()]), array_tmp->data()); … … 99 119 if (!array_copy(axis_hdl->value.getValue(), value, extent1)) 100 120 ERROR("void cxios_set_axis_value(axis_Ptr axis_hdl, double* value, int extent1)",<<"Output array size is not conform to array size attribute") ; 121 CTimer::get("XIOS").suspend(); 101 122 } 102 123 -
XIOS/trunk/src/interface/c_attr/icaxisgroup_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 group_ref_str; 20 21 if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 22 CTimer::get("XIOS").resume(); 21 23 axisgroup_hdl->group_ref.setValue(group_ref_str); 22 24 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->group_ref); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(axisgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 28 32 ERROR("void cxios_get_axisgroup_group_ref(axisgroup_Ptr axisgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 34 39 std::string long_name_str; 35 40 if(!cstr2string(long_name, long_name_size, long_name_str)) return; 41 CTimer::get("XIOS").resume(); 36 42 axisgroup_hdl->long_name.setValue(long_name_str); 37 43 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->long_name); 44 CTimer::get("XIOS").suspend(); 38 45 } 39 46 40 47 void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size) 41 48 { 49 CTimer::get("XIOS").resume(); 42 50 if(!string_copy(axisgroup_hdl->long_name.getValue(),long_name , long_name_size)) 43 51 ERROR("void cxios_get_axisgroup_long_name(axisgroup_Ptr axisgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 52 CTimer::get("XIOS").suspend(); 44 53 } 45 54 … … 49 58 std::string name_str; 50 59 if(!cstr2string(name, name_size, name_str)) return; 60 CTimer::get("XIOS").resume(); 51 61 axisgroup_hdl->name.setValue(name_str); 52 62 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->name); 63 CTimer::get("XIOS").suspend(); 53 64 } 54 65 55 66 void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size) 56 67 { 68 CTimer::get("XIOS").resume(); 57 69 if(!string_copy(axisgroup_hdl->name.getValue(),name , name_size)) 58 70 ERROR("void cxios_get_axisgroup_name(axisgroup_Ptr axisgroup_hdl, char * name, int name_size)", <<"Input string is to short"); 71 CTimer::get("XIOS").suspend(); 59 72 } 60 73 … … 62 75 void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size) 63 76 { 77 CTimer::get("XIOS").resume(); 64 78 axisgroup_hdl->size.setValue(size); 65 79 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->size); 80 CTimer::get("XIOS").suspend(); 66 81 } 67 82 … … 76 91 std::string standard_name_str; 77 92 if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 93 CTimer::get("XIOS").resume(); 78 94 axisgroup_hdl->standard_name.setValue(standard_name_str); 79 95 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->standard_name); 96 CTimer::get("XIOS").suspend(); 80 97 } 81 98 82 99 void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size) 83 100 { 101 CTimer::get("XIOS").resume(); 84 102 if(!string_copy(axisgroup_hdl->standard_name.getValue(),standard_name , standard_name_size)) 85 103 ERROR("void cxios_get_axisgroup_standard_name(axisgroup_Ptr axisgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 104 CTimer::get("XIOS").suspend(); 86 105 } 87 106 … … 91 110 std::string unit_str; 92 111 if(!cstr2string(unit, unit_size, unit_str)) return; 112 CTimer::get("XIOS").resume(); 93 113 axisgroup_hdl->unit.setValue(unit_str); 94 114 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->unit); 115 CTimer::get("XIOS").suspend(); 95 116 } 96 117 97 118 void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size) 98 119 { 120 CTimer::get("XIOS").resume(); 99 121 if(!string_copy(axisgroup_hdl->unit.getValue(),unit , unit_size)) 100 122 ERROR("void cxios_get_axisgroup_unit(axisgroup_Ptr axisgroup_hdl, char * unit, int unit_size)", <<"Input string is to short"); 123 CTimer::get("XIOS").suspend(); 101 124 } 102 125 … … 104 127 void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1) 105 128 { 129 CTimer::get("XIOS").resume(); 106 130 ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 107 131 std::copy(value, &(value[array_tmp->num_elements()]), array_tmp->data()); … … 114 138 if (!array_copy(axisgroup_hdl->value.getValue(), value, extent1)) 115 139 ERROR("void cxios_set_axisgroup_value(axisgroup_Ptr axisgroup_hdl, double* value, int extent1)",<<"Output array size is not conform to array size attribute") ; 140 CTimer::get("XIOS").suspend(); 116 141 } 117 142 -
XIOS/trunk/src/interface/c_attr/iccontext_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 calendar_type_str; 20 21 if(!cstr2string(calendar_type, calendar_type_size, calendar_type_str)) return; 22 CTimer::get("XIOS").resume(); 21 23 context_hdl->calendar_type.setValue(calendar_type_str); 22 24 context_hdl->sendAttributToServer(context_hdl->calendar_type); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(context_hdl->calendar_type.getValue(),calendar_type , calendar_type_size)) 28 32 ERROR("void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 34 39 std::string output_dir_str; 35 40 if(!cstr2string(output_dir, output_dir_size, output_dir_str)) return; 41 CTimer::get("XIOS").resume(); 36 42 context_hdl->output_dir.setValue(output_dir_str); 37 43 context_hdl->sendAttributToServer(context_hdl->output_dir); 44 CTimer::get("XIOS").suspend(); 38 45 } 39 46 40 47 void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size) 41 48 { 49 CTimer::get("XIOS").resume(); 42 50 if(!string_copy(context_hdl->output_dir.getValue(),output_dir , output_dir_size)) 43 51 ERROR("void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)", <<"Input string is to short"); 52 CTimer::get("XIOS").suspend(); 44 53 } 45 54 … … 49 58 std::string start_date_str; 50 59 if(!cstr2string(start_date, start_date_size, start_date_str)) return; 60 CTimer::get("XIOS").resume(); 51 61 context_hdl->start_date.setValue(start_date_str); 52 62 context_hdl->sendAttributToServer(context_hdl->start_date); 63 CTimer::get("XIOS").suspend(); 53 64 } 54 65 55 66 void cxios_get_context_start_date(context_Ptr context_hdl, char * start_date, int start_date_size) 56 67 { 68 CTimer::get("XIOS").resume(); 57 69 if(!string_copy(context_hdl->start_date.getValue(),start_date , start_date_size)) 58 70 ERROR("void cxios_get_context_start_date(context_Ptr context_hdl, char * start_date, int start_date_size)", <<"Input string is to short"); 71 CTimer::get("XIOS").suspend(); 59 72 } 60 73 … … 64 77 std::string time_origin_str; 65 78 if(!cstr2string(time_origin, time_origin_size, time_origin_str)) return; 79 CTimer::get("XIOS").resume(); 66 80 context_hdl->time_origin.setValue(time_origin_str); 67 81 context_hdl->sendAttributToServer(context_hdl->time_origin); 82 CTimer::get("XIOS").suspend(); 68 83 } 69 84 70 85 void cxios_get_context_time_origin(context_Ptr context_hdl, char * time_origin, int time_origin_size) 71 86 { 87 CTimer::get("XIOS").resume(); 72 88 if(!string_copy(context_hdl->time_origin.getValue(),time_origin , time_origin_size)) 73 89 ERROR("void cxios_get_context_time_origin(context_Ptr context_hdl, char * time_origin, int time_origin_size)", <<"Input string is to short"); 90 CTimer::get("XIOS").suspend(); 74 91 } 75 92 … … 79 96 std::string timestep_str; 80 97 if(!cstr2string(timestep, timestep_size, timestep_str)) return; 98 CTimer::get("XIOS").resume(); 81 99 context_hdl->timestep.setValue(timestep_str); 82 100 context_hdl->sendAttributToServer(context_hdl->timestep); 101 CTimer::get("XIOS").suspend(); 83 102 } 84 103 85 104 void cxios_get_context_timestep(context_Ptr context_hdl, char * timestep, int timestep_size) 86 105 { 106 CTimer::get("XIOS").resume(); 87 107 if(!string_copy(context_hdl->timestep.getValue(),timestep , timestep_size)) 88 108 ERROR("void cxios_get_context_timestep(context_Ptr context_hdl, char * timestep, int timestep_size)", <<"Input string is to short"); 109 CTimer::get("XIOS").suspend(); 89 110 } 90 111 -
XIOS/trunk/src/interface/c_attr/icdomain_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" … … 17 18 void cxios_set_domain_data_dim(domain_Ptr domain_hdl, int data_dim) 18 19 { 20 CTimer::get("XIOS").resume(); 19 21 domain_hdl->data_dim.setValue(data_dim); 20 22 domain_hdl->sendAttributToServer(domain_hdl->data_dim); 23 CTimer::get("XIOS").suspend(); 21 24 } 22 25 … … 29 32 void cxios_set_domain_data_i_index(domain_Ptr domain_hdl, int* data_i_index, int extent1) 30 33 { 34 CTimer::get("XIOS").resume(); 31 35 ARRAY(int,1) array_tmp(new CArray<int,1>(boost::extents[extent1])); 32 36 std::copy(data_i_index, &(data_i_index[array_tmp->num_elements()]), array_tmp->data()); … … 39 43 if (!array_copy(domain_hdl->data_i_index.getValue(), data_i_index, extent1)) 40 44 ERROR("void cxios_set_domain_data_i_index(domain_Ptr domain_hdl, int* data_i_index, int extent1)",<<"Output array size is not conform to array size attribute") ; 45 CTimer::get("XIOS").suspend(); 41 46 } 42 47 … … 44 49 void cxios_set_domain_data_ibegin(domain_Ptr domain_hdl, int data_ibegin) 45 50 { 51 CTimer::get("XIOS").resume(); 46 52 domain_hdl->data_ibegin.setValue(data_ibegin); 47 53 domain_hdl->sendAttributToServer(domain_hdl->data_ibegin); 54 CTimer::get("XIOS").suspend(); 48 55 } 49 56 … … 56 63 void cxios_set_domain_data_j_index(domain_Ptr domain_hdl, int* data_j_index, int extent1) 57 64 { 65 CTimer::get("XIOS").resume(); 58 66 ARRAY(int,1) array_tmp(new CArray<int,1>(boost::extents[extent1])); 59 67 std::copy(data_j_index, &(data_j_index[array_tmp->num_elements()]), array_tmp->data()); … … 66 74 if (!array_copy(domain_hdl->data_j_index.getValue(), data_j_index, extent1)) 67 75 ERROR("void cxios_set_domain_data_j_index(domain_Ptr domain_hdl, int* data_j_index, int extent1)",<<"Output array size is not conform to array size attribute") ; 76 CTimer::get("XIOS").suspend(); 68 77 } 69 78 … … 71 80 void cxios_set_domain_data_jbegin(domain_Ptr domain_hdl, int data_jbegin) 72 81 { 82 CTimer::get("XIOS").resume(); 73 83 domain_hdl->data_jbegin.setValue(data_jbegin); 74 84 domain_hdl->sendAttributToServer(domain_hdl->data_jbegin); 85 CTimer::get("XIOS").suspend(); 75 86 } 76 87 … … 83 94 void cxios_set_domain_data_n_index(domain_Ptr domain_hdl, int data_n_index) 84 95 { 96 CTimer::get("XIOS").resume(); 85 97 domain_hdl->data_n_index.setValue(data_n_index); 86 98 domain_hdl->sendAttributToServer(domain_hdl->data_n_index); 99 CTimer::get("XIOS").suspend(); 87 100 } 88 101 … … 95 108 void cxios_set_domain_data_ni(domain_Ptr domain_hdl, int data_ni) 96 109 { 110 CTimer::get("XIOS").resume(); 97 111 domain_hdl->data_ni.setValue(data_ni); 98 112 domain_hdl->sendAttributToServer(domain_hdl->data_ni); 113 CTimer::get("XIOS").suspend(); 99 114 } 100 115 … … 107 122 void cxios_set_domain_data_nj(domain_Ptr domain_hdl, int data_nj) 108 123 { 124 CTimer::get("XIOS").resume(); 109 125 domain_hdl->data_nj.setValue(data_nj); 110 126 domain_hdl->sendAttributToServer(domain_hdl->data_nj); 127 CTimer::get("XIOS").suspend(); 111 128 } 112 129 … … 121 138 std::string domain_group_ref_str; 122 139 if(!cstr2string(domain_group_ref, domain_group_ref_size, domain_group_ref_str)) return; 140 CTimer::get("XIOS").resume(); 123 141 domain_hdl->domain_group_ref.setValue(domain_group_ref_str); 124 142 domain_hdl->sendAttributToServer(domain_hdl->domain_group_ref); 143 CTimer::get("XIOS").suspend(); 125 144 } 126 145 127 146 void cxios_get_domain_domain_group_ref(domain_Ptr domain_hdl, char * domain_group_ref, int domain_group_ref_size) 128 147 { 148 CTimer::get("XIOS").resume(); 129 149 if(!string_copy(domain_hdl->domain_group_ref.getValue(),domain_group_ref , domain_group_ref_size)) 130 150 ERROR("void cxios_get_domain_domain_group_ref(domain_Ptr domain_hdl, char * domain_group_ref, int domain_group_ref_size)", <<"Input string is to short"); 151 CTimer::get("XIOS").suspend(); 131 152 } 132 153 … … 134 155 void cxios_set_domain_ibegin(domain_Ptr domain_hdl, int ibegin) 135 156 { 157 CTimer::get("XIOS").resume(); 136 158 domain_hdl->ibegin.setValue(ibegin); 137 159 domain_hdl->sendAttributToServer(domain_hdl->ibegin); 160 CTimer::get("XIOS").suspend(); 138 161 } 139 162 … … 146 169 void cxios_set_domain_iend(domain_Ptr domain_hdl, int iend) 147 170 { 171 CTimer::get("XIOS").resume(); 148 172 domain_hdl->iend.setValue(iend); 149 173 domain_hdl->sendAttributToServer(domain_hdl->iend); 174 CTimer::get("XIOS").suspend(); 150 175 } 151 176 … … 158 183 void cxios_set_domain_jbegin(domain_Ptr domain_hdl, int jbegin) 159 184 { 185 CTimer::get("XIOS").resume(); 160 186 domain_hdl->jbegin.setValue(jbegin); 161 187 domain_hdl->sendAttributToServer(domain_hdl->jbegin); 188 CTimer::get("XIOS").suspend(); 162 189 } 163 190 … … 170 197 void cxios_set_domain_jend(domain_Ptr domain_hdl, int jend) 171 198 { 199 CTimer::get("XIOS").resume(); 172 200 domain_hdl->jend.setValue(jend); 173 201 domain_hdl->sendAttributToServer(domain_hdl->jend); 202 CTimer::get("XIOS").suspend(); 174 203 } 175 204 … … 182 211 void cxios_set_domain_latvalue(domain_Ptr domain_hdl, double* latvalue, int extent1) 183 212 { 213 CTimer::get("XIOS").resume(); 184 214 ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 185 215 std::copy(latvalue, &(latvalue[array_tmp->num_elements()]), array_tmp->data()); … … 192 222 if (!array_copy(domain_hdl->latvalue.getValue(), latvalue, extent1)) 193 223 ERROR("void cxios_set_domain_latvalue(domain_Ptr domain_hdl, double* latvalue, int extent1)",<<"Output array size is not conform to array size attribute") ; 224 CTimer::get("XIOS").suspend(); 194 225 } 195 226 … … 199 230 std::string long_name_str; 200 231 if(!cstr2string(long_name, long_name_size, long_name_str)) return; 232 CTimer::get("XIOS").resume(); 201 233 domain_hdl->long_name.setValue(long_name_str); 202 234 domain_hdl->sendAttributToServer(domain_hdl->long_name); 235 CTimer::get("XIOS").suspend(); 203 236 } 204 237 205 238 void cxios_get_domain_long_name(domain_Ptr domain_hdl, char * long_name, int long_name_size) 206 239 { 240 CTimer::get("XIOS").resume(); 207 241 if(!string_copy(domain_hdl->long_name.getValue(),long_name , long_name_size)) 208 242 ERROR("void cxios_get_domain_long_name(domain_Ptr domain_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 243 CTimer::get("XIOS").suspend(); 209 244 } 210 245 … … 212 247 void cxios_set_domain_lonvalue(domain_Ptr domain_hdl, double* lonvalue, int extent1) 213 248 { 249 CTimer::get("XIOS").resume(); 214 250 ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 215 251 std::copy(lonvalue, &(lonvalue[array_tmp->num_elements()]), array_tmp->data()); … … 222 258 if (!array_copy(domain_hdl->lonvalue.getValue(), lonvalue, extent1)) 223 259 ERROR("void cxios_set_domain_lonvalue(domain_Ptr domain_hdl, double* lonvalue, int extent1)",<<"Output array size is not conform to array size attribute") ; 260 CTimer::get("XIOS").suspend(); 224 261 } 225 262 … … 227 264 void cxios_set_domain_mask(domain_Ptr domain_hdl, bool* mask, int extent1, int extent2) 228 265 { 266 CTimer::get("XIOS").resume(); 229 267 ARRAY(bool,2) array_tmp(new CArray<bool,2>(boost::extents[extent1][extent2])); 230 268 std::copy(mask, &(mask[array_tmp->num_elements()]), array_tmp->data()); … … 237 275 if (!array_copy(domain_hdl->mask.getValue(), mask, extent1, extent2)) 238 276 ERROR("void cxios_set_domain_mask(domain_Ptr domain_hdl, bool* mask, int extent1, int extent2)",<<"Output array size is not conform to array size attribute") ; 277 CTimer::get("XIOS").suspend(); 239 278 } 240 279 … … 244 283 std::string name_str; 245 284 if(!cstr2string(name, name_size, name_str)) return; 285 CTimer::get("XIOS").resume(); 246 286 domain_hdl->name.setValue(name_str); 247 287 domain_hdl->sendAttributToServer(domain_hdl->name); 288 CTimer::get("XIOS").suspend(); 248 289 } 249 290 250 291 void cxios_get_domain_name(domain_Ptr domain_hdl, char * name, int name_size) 251 292 { 293 CTimer::get("XIOS").resume(); 252 294 if(!string_copy(domain_hdl->name.getValue(),name , name_size)) 253 295 ERROR("void cxios_get_domain_name(domain_Ptr domain_hdl, char * name, int name_size)", <<"Input string is to short"); 296 CTimer::get("XIOS").suspend(); 254 297 } 255 298 … … 257 300 void cxios_set_domain_ni(domain_Ptr domain_hdl, int ni) 258 301 { 302 CTimer::get("XIOS").resume(); 259 303 domain_hdl->ni.setValue(ni); 260 304 domain_hdl->sendAttributToServer(domain_hdl->ni); 305 CTimer::get("XIOS").suspend(); 261 306 } 262 307 … … 269 314 void cxios_set_domain_ni_glo(domain_Ptr domain_hdl, int ni_glo) 270 315 { 316 CTimer::get("XIOS").resume(); 271 317 domain_hdl->ni_glo.setValue(ni_glo); 272 318 domain_hdl->sendAttributToServer(domain_hdl->ni_glo); 319 CTimer::get("XIOS").suspend(); 273 320 } 274 321 … … 281 328 void cxios_set_domain_nj(domain_Ptr domain_hdl, int nj) 282 329 { 330 CTimer::get("XIOS").resume(); 283 331 domain_hdl->nj.setValue(nj); 284 332 domain_hdl->sendAttributToServer(domain_hdl->nj); 333 CTimer::get("XIOS").suspend(); 285 334 } 286 335 … … 293 342 void cxios_set_domain_nj_glo(domain_Ptr domain_hdl, int nj_glo) 294 343 { 344 CTimer::get("XIOS").resume(); 295 345 domain_hdl->nj_glo.setValue(nj_glo); 296 346 domain_hdl->sendAttributToServer(domain_hdl->nj_glo); 347 CTimer::get("XIOS").suspend(); 297 348 } 298 349 … … 307 358 std::string standard_name_str; 308 359 if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 360 CTimer::get("XIOS").resume(); 309 361 domain_hdl->standard_name.setValue(standard_name_str); 310 362 domain_hdl->sendAttributToServer(domain_hdl->standard_name); 363 CTimer::get("XIOS").suspend(); 311 364 } 312 365 313 366 void cxios_get_domain_standard_name(domain_Ptr domain_hdl, char * standard_name, int standard_name_size) 314 367 { 368 CTimer::get("XIOS").resume(); 315 369 if(!string_copy(domain_hdl->standard_name.getValue(),standard_name , standard_name_size)) 316 370 ERROR("void cxios_get_domain_standard_name(domain_Ptr domain_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 371 CTimer::get("XIOS").suspend(); 317 372 } 318 373 … … 320 375 void cxios_set_domain_zoom_ibegin(domain_Ptr domain_hdl, int zoom_ibegin) 321 376 { 377 CTimer::get("XIOS").resume(); 322 378 domain_hdl->zoom_ibegin.setValue(zoom_ibegin); 323 379 domain_hdl->sendAttributToServer(domain_hdl->zoom_ibegin); 380 CTimer::get("XIOS").suspend(); 324 381 } 325 382 … … 332 389 void cxios_set_domain_zoom_ibegin_loc(domain_Ptr domain_hdl, int zoom_ibegin_loc) 333 390 { 391 CTimer::get("XIOS").resume(); 334 392 domain_hdl->zoom_ibegin_loc.setValue(zoom_ibegin_loc); 335 393 domain_hdl->sendAttributToServer(domain_hdl->zoom_ibegin_loc); 394 CTimer::get("XIOS").suspend(); 336 395 } 337 396 … … 344 403 void cxios_set_domain_zoom_jbegin(domain_Ptr domain_hdl, int zoom_jbegin) 345 404 { 405 CTimer::get("XIOS").resume(); 346 406 domain_hdl->zoom_jbegin.setValue(zoom_jbegin); 347 407 domain_hdl->sendAttributToServer(domain_hdl->zoom_jbegin); 408 CTimer::get("XIOS").suspend(); 348 409 } 349 410 … … 356 417 void cxios_set_domain_zoom_jbegin_loc(domain_Ptr domain_hdl, int zoom_jbegin_loc) 357 418 { 419 CTimer::get("XIOS").resume(); 358 420 domain_hdl->zoom_jbegin_loc.setValue(zoom_jbegin_loc); 359 421 domain_hdl->sendAttributToServer(domain_hdl->zoom_jbegin_loc); 422 CTimer::get("XIOS").suspend(); 360 423 } 361 424 … … 368 431 void cxios_set_domain_zoom_ni(domain_Ptr domain_hdl, int zoom_ni) 369 432 { 433 CTimer::get("XIOS").resume(); 370 434 domain_hdl->zoom_ni.setValue(zoom_ni); 371 435 domain_hdl->sendAttributToServer(domain_hdl->zoom_ni); 436 CTimer::get("XIOS").suspend(); 372 437 } 373 438 … … 380 445 void cxios_set_domain_zoom_ni_loc(domain_Ptr domain_hdl, int zoom_ni_loc) 381 446 { 447 CTimer::get("XIOS").resume(); 382 448 domain_hdl->zoom_ni_loc.setValue(zoom_ni_loc); 383 449 domain_hdl->sendAttributToServer(domain_hdl->zoom_ni_loc); 450 CTimer::get("XIOS").suspend(); 384 451 } 385 452 … … 392 459 void cxios_set_domain_zoom_nj(domain_Ptr domain_hdl, int zoom_nj) 393 460 { 461 CTimer::get("XIOS").resume(); 394 462 domain_hdl->zoom_nj.setValue(zoom_nj); 395 463 domain_hdl->sendAttributToServer(domain_hdl->zoom_nj); 464 CTimer::get("XIOS").suspend(); 396 465 } 397 466 … … 404 473 void cxios_set_domain_zoom_nj_loc(domain_Ptr domain_hdl, int zoom_nj_loc) 405 474 { 475 CTimer::get("XIOS").resume(); 406 476 domain_hdl->zoom_nj_loc.setValue(zoom_nj_loc); 407 477 domain_hdl->sendAttributToServer(domain_hdl->zoom_nj_loc); 478 CTimer::get("XIOS").suspend(); 408 479 } 409 480 -
XIOS/trunk/src/interface/c_attr/icdomaingroup_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" … … 17 18 void cxios_set_domaingroup_data_dim(domaingroup_Ptr domaingroup_hdl, int data_dim) 18 19 { 20 CTimer::get("XIOS").resume(); 19 21 domaingroup_hdl->data_dim.setValue(data_dim); 20 22 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->data_dim); 23 CTimer::get("XIOS").suspend(); 21 24 } 22 25 … … 29 32 void cxios_set_domaingroup_data_i_index(domaingroup_Ptr domaingroup_hdl, int* data_i_index, int extent1) 30 33 { 34 CTimer::get("XIOS").resume(); 31 35 ARRAY(int,1) array_tmp(new CArray<int,1>(boost::extents[extent1])); 32 36 std::copy(data_i_index, &(data_i_index[array_tmp->num_elements()]), array_tmp->data()); … … 39 43 if (!array_copy(domaingroup_hdl->data_i_index.getValue(), data_i_index, extent1)) 40 44 ERROR("void cxios_set_domaingroup_data_i_index(domaingroup_Ptr domaingroup_hdl, int* data_i_index, int extent1)",<<"Output array size is not conform to array size attribute") ; 45 CTimer::get("XIOS").suspend(); 41 46 } 42 47 … … 44 49 void cxios_set_domaingroup_data_ibegin(domaingroup_Ptr domaingroup_hdl, int data_ibegin) 45 50 { 51 CTimer::get("XIOS").resume(); 46 52 domaingroup_hdl->data_ibegin.setValue(data_ibegin); 47 53 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->data_ibegin); 54 CTimer::get("XIOS").suspend(); 48 55 } 49 56 … … 56 63 void cxios_set_domaingroup_data_j_index(domaingroup_Ptr domaingroup_hdl, int* data_j_index, int extent1) 57 64 { 65 CTimer::get("XIOS").resume(); 58 66 ARRAY(int,1) array_tmp(new CArray<int,1>(boost::extents[extent1])); 59 67 std::copy(data_j_index, &(data_j_index[array_tmp->num_elements()]), array_tmp->data()); … … 66 74 if (!array_copy(domaingroup_hdl->data_j_index.getValue(), data_j_index, extent1)) 67 75 ERROR("void cxios_set_domaingroup_data_j_index(domaingroup_Ptr domaingroup_hdl, int* data_j_index, int extent1)",<<"Output array size is not conform to array size attribute") ; 76 CTimer::get("XIOS").suspend(); 68 77 } 69 78 … … 71 80 void cxios_set_domaingroup_data_jbegin(domaingroup_Ptr domaingroup_hdl, int data_jbegin) 72 81 { 82 CTimer::get("XIOS").resume(); 73 83 domaingroup_hdl->data_jbegin.setValue(data_jbegin); 74 84 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->data_jbegin); 85 CTimer::get("XIOS").suspend(); 75 86 } 76 87 … … 83 94 void cxios_set_domaingroup_data_n_index(domaingroup_Ptr domaingroup_hdl, int data_n_index) 84 95 { 96 CTimer::get("XIOS").resume(); 85 97 domaingroup_hdl->data_n_index.setValue(data_n_index); 86 98 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->data_n_index); 99 CTimer::get("XIOS").suspend(); 87 100 } 88 101 … … 95 108 void cxios_set_domaingroup_data_ni(domaingroup_Ptr domaingroup_hdl, int data_ni) 96 109 { 110 CTimer::get("XIOS").resume(); 97 111 domaingroup_hdl->data_ni.setValue(data_ni); 98 112 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->data_ni); 113 CTimer::get("XIOS").suspend(); 99 114 } 100 115 … … 107 122 void cxios_set_domaingroup_data_nj(domaingroup_Ptr domaingroup_hdl, int data_nj) 108 123 { 124 CTimer::get("XIOS").resume(); 109 125 domaingroup_hdl->data_nj.setValue(data_nj); 110 126 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->data_nj); 127 CTimer::get("XIOS").suspend(); 111 128 } 112 129 … … 121 138 std::string domain_group_ref_str; 122 139 if(!cstr2string(domain_group_ref, domain_group_ref_size, domain_group_ref_str)) return; 140 CTimer::get("XIOS").resume(); 123 141 domaingroup_hdl->domain_group_ref.setValue(domain_group_ref_str); 124 142 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->domain_group_ref); 143 CTimer::get("XIOS").suspend(); 125 144 } 126 145 127 146 void cxios_get_domaingroup_domain_group_ref(domaingroup_Ptr domaingroup_hdl, char * domain_group_ref, int domain_group_ref_size) 128 147 { 148 CTimer::get("XIOS").resume(); 129 149 if(!string_copy(domaingroup_hdl->domain_group_ref.getValue(),domain_group_ref , domain_group_ref_size)) 130 150 ERROR("void cxios_get_domaingroup_domain_group_ref(domaingroup_Ptr domaingroup_hdl, char * domain_group_ref, int domain_group_ref_size)", <<"Input string is to short"); 151 CTimer::get("XIOS").suspend(); 131 152 } 132 153 … … 136 157 std::string group_ref_str; 137 158 if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 159 CTimer::get("XIOS").resume(); 138 160 domaingroup_hdl->group_ref.setValue(group_ref_str); 139 161 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->group_ref); 162 CTimer::get("XIOS").suspend(); 140 163 } 141 164 142 165 void cxios_get_domaingroup_group_ref(domaingroup_Ptr domaingroup_hdl, char * group_ref, int group_ref_size) 143 166 { 167 CTimer::get("XIOS").resume(); 144 168 if(!string_copy(domaingroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 145 169 ERROR("void cxios_get_domaingroup_group_ref(domaingroup_Ptr domaingroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 170 CTimer::get("XIOS").suspend(); 146 171 } 147 172 … … 149 174 void cxios_set_domaingroup_ibegin(domaingroup_Ptr domaingroup_hdl, int ibegin) 150 175 { 176 CTimer::get("XIOS").resume(); 151 177 domaingroup_hdl->ibegin.setValue(ibegin); 152 178 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->ibegin); 179 CTimer::get("XIOS").suspend(); 153 180 } 154 181 … … 161 188 void cxios_set_domaingroup_iend(domaingroup_Ptr domaingroup_hdl, int iend) 162 189 { 190 CTimer::get("XIOS").resume(); 163 191 domaingroup_hdl->iend.setValue(iend); 164 192 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->iend); 193 CTimer::get("XIOS").suspend(); 165 194 } 166 195 … … 173 202 void cxios_set_domaingroup_jbegin(domaingroup_Ptr domaingroup_hdl, int jbegin) 174 203 { 204 CTimer::get("XIOS").resume(); 175 205 domaingroup_hdl->jbegin.setValue(jbegin); 176 206 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->jbegin); 207 CTimer::get("XIOS").suspend(); 177 208 } 178 209 … … 185 216 void cxios_set_domaingroup_jend(domaingroup_Ptr domaingroup_hdl, int jend) 186 217 { 218 CTimer::get("XIOS").resume(); 187 219 domaingroup_hdl->jend.setValue(jend); 188 220 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->jend); 221 CTimer::get("XIOS").suspend(); 189 222 } 190 223 … … 197 230 void cxios_set_domaingroup_latvalue(domaingroup_Ptr domaingroup_hdl, double* latvalue, int extent1) 198 231 { 232 CTimer::get("XIOS").resume(); 199 233 ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 200 234 std::copy(latvalue, &(latvalue[array_tmp->num_elements()]), array_tmp->data()); … … 207 241 if (!array_copy(domaingroup_hdl->latvalue.getValue(), latvalue, extent1)) 208 242 ERROR("void cxios_set_domaingroup_latvalue(domaingroup_Ptr domaingroup_hdl, double* latvalue, int extent1)",<<"Output array size is not conform to array size attribute") ; 243 CTimer::get("XIOS").suspend(); 209 244 } 210 245 … … 214 249 std::string long_name_str; 215 250 if(!cstr2string(long_name, long_name_size, long_name_str)) return; 251 CTimer::get("XIOS").resume(); 216 252 domaingroup_hdl->long_name.setValue(long_name_str); 217 253 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->long_name); 254 CTimer::get("XIOS").suspend(); 218 255 } 219 256 220 257 void cxios_get_domaingroup_long_name(domaingroup_Ptr domaingroup_hdl, char * long_name, int long_name_size) 221 258 { 259 CTimer::get("XIOS").resume(); 222 260 if(!string_copy(domaingroup_hdl->long_name.getValue(),long_name , long_name_size)) 223 261 ERROR("void cxios_get_domaingroup_long_name(domaingroup_Ptr domaingroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 262 CTimer::get("XIOS").suspend(); 224 263 } 225 264 … … 227 266 void cxios_set_domaingroup_lonvalue(domaingroup_Ptr domaingroup_hdl, double* lonvalue, int extent1) 228 267 { 268 CTimer::get("XIOS").resume(); 229 269 ARRAY(double,1) array_tmp(new CArray<double,1>(boost::extents[extent1])); 230 270 std::copy(lonvalue, &(lonvalue[array_tmp->num_elements()]), array_tmp->data()); … … 237 277 if (!array_copy(domaingroup_hdl->lonvalue.getValue(), lonvalue, extent1)) 238 278 ERROR("void cxios_set_domaingroup_lonvalue(domaingroup_Ptr domaingroup_hdl, double* lonvalue, int extent1)",<<"Output array size is not conform to array size attribute") ; 279 CTimer::get("XIOS").suspend(); 239 280 } 240 281 … … 242 283 void cxios_set_domaingroup_mask(domaingroup_Ptr domaingroup_hdl, bool* mask, int extent1, int extent2) 243 284 { 285 CTimer::get("XIOS").resume(); 244 286 ARRAY(bool,2) array_tmp(new CArray<bool,2>(boost::extents[extent1][extent2])); 245 287 std::copy(mask, &(mask[array_tmp->num_elements()]), array_tmp->data()); … … 252 294 if (!array_copy(domaingroup_hdl->mask.getValue(), mask, extent1, extent2)) 253 295 ERROR("void cxios_set_domaingroup_mask(domaingroup_Ptr domaingroup_hdl, bool* mask, int extent1, int extent2)",<<"Output array size is not conform to array size attribute") ; 296 CTimer::get("XIOS").suspend(); 254 297 } 255 298 … … 259 302 std::string name_str; 260 303 if(!cstr2string(name, name_size, name_str)) return; 304 CTimer::get("XIOS").resume(); 261 305 domaingroup_hdl->name.setValue(name_str); 262 306 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->name); 307 CTimer::get("XIOS").suspend(); 263 308 } 264 309 265 310 void cxios_get_domaingroup_name(domaingroup_Ptr domaingroup_hdl, char * name, int name_size) 266 311 { 312 CTimer::get("XIOS").resume(); 267 313 if(!string_copy(domaingroup_hdl->name.getValue(),name , name_size)) 268 314 ERROR("void cxios_get_domaingroup_name(domaingroup_Ptr domaingroup_hdl, char * name, int name_size)", <<"Input string is to short"); 315 CTimer::get("XIOS").suspend(); 269 316 } 270 317 … … 272 319 void cxios_set_domaingroup_ni(domaingroup_Ptr domaingroup_hdl, int ni) 273 320 { 321 CTimer::get("XIOS").resume(); 274 322 domaingroup_hdl->ni.setValue(ni); 275 323 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->ni); 324 CTimer::get("XIOS").suspend(); 276 325 } 277 326 … … 284 333 void cxios_set_domaingroup_ni_glo(domaingroup_Ptr domaingroup_hdl, int ni_glo) 285 334 { 335 CTimer::get("XIOS").resume(); 286 336 domaingroup_hdl->ni_glo.setValue(ni_glo); 287 337 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->ni_glo); 338 CTimer::get("XIOS").suspend(); 288 339 } 289 340 … … 296 347 void cxios_set_domaingroup_nj(domaingroup_Ptr domaingroup_hdl, int nj) 297 348 { 349 CTimer::get("XIOS").resume(); 298 350 domaingroup_hdl->nj.setValue(nj); 299 351 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->nj); 352 CTimer::get("XIOS").suspend(); 300 353 } 301 354 … … 308 361 void cxios_set_domaingroup_nj_glo(domaingroup_Ptr domaingroup_hdl, int nj_glo) 309 362 { 363 CTimer::get("XIOS").resume(); 310 364 domaingroup_hdl->nj_glo.setValue(nj_glo); 311 365 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->nj_glo); 366 CTimer::get("XIOS").suspend(); 312 367 } 313 368 … … 322 377 std::string standard_name_str; 323 378 if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 379 CTimer::get("XIOS").resume(); 324 380 domaingroup_hdl->standard_name.setValue(standard_name_str); 325 381 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->standard_name); 382 CTimer::get("XIOS").suspend(); 326 383 } 327 384 328 385 void cxios_get_domaingroup_standard_name(domaingroup_Ptr domaingroup_hdl, char * standard_name, int standard_name_size) 329 386 { 387 CTimer::get("XIOS").resume(); 330 388 if(!string_copy(domaingroup_hdl->standard_name.getValue(),standard_name , standard_name_size)) 331 389 ERROR("void cxios_get_domaingroup_standard_name(domaingroup_Ptr domaingroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 390 CTimer::get("XIOS").suspend(); 332 391 } 333 392 … … 335 394 void cxios_set_domaingroup_zoom_ibegin(domaingroup_Ptr domaingroup_hdl, int zoom_ibegin) 336 395 { 396 CTimer::get("XIOS").resume(); 337 397 domaingroup_hdl->zoom_ibegin.setValue(zoom_ibegin); 338 398 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_ibegin); 399 CTimer::get("XIOS").suspend(); 339 400 } 340 401 … … 347 408 void cxios_set_domaingroup_zoom_ibegin_loc(domaingroup_Ptr domaingroup_hdl, int zoom_ibegin_loc) 348 409 { 410 CTimer::get("XIOS").resume(); 349 411 domaingroup_hdl->zoom_ibegin_loc.setValue(zoom_ibegin_loc); 350 412 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_ibegin_loc); 413 CTimer::get("XIOS").suspend(); 351 414 } 352 415 … … 359 422 void cxios_set_domaingroup_zoom_jbegin(domaingroup_Ptr domaingroup_hdl, int zoom_jbegin) 360 423 { 424 CTimer::get("XIOS").resume(); 361 425 domaingroup_hdl->zoom_jbegin.setValue(zoom_jbegin); 362 426 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_jbegin); 427 CTimer::get("XIOS").suspend(); 363 428 } 364 429 … … 371 436 void cxios_set_domaingroup_zoom_jbegin_loc(domaingroup_Ptr domaingroup_hdl, int zoom_jbegin_loc) 372 437 { 438 CTimer::get("XIOS").resume(); 373 439 domaingroup_hdl->zoom_jbegin_loc.setValue(zoom_jbegin_loc); 374 440 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_jbegin_loc); 441 CTimer::get("XIOS").suspend(); 375 442 } 376 443 … … 383 450 void cxios_set_domaingroup_zoom_ni(domaingroup_Ptr domaingroup_hdl, int zoom_ni) 384 451 { 452 CTimer::get("XIOS").resume(); 385 453 domaingroup_hdl->zoom_ni.setValue(zoom_ni); 386 454 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_ni); 455 CTimer::get("XIOS").suspend(); 387 456 } 388 457 … … 395 464 void cxios_set_domaingroup_zoom_ni_loc(domaingroup_Ptr domaingroup_hdl, int zoom_ni_loc) 396 465 { 466 CTimer::get("XIOS").resume(); 397 467 domaingroup_hdl->zoom_ni_loc.setValue(zoom_ni_loc); 398 468 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_ni_loc); 469 CTimer::get("XIOS").suspend(); 399 470 } 400 471 … … 407 478 void cxios_set_domaingroup_zoom_nj(domaingroup_Ptr domaingroup_hdl, int zoom_nj) 408 479 { 480 CTimer::get("XIOS").resume(); 409 481 domaingroup_hdl->zoom_nj.setValue(zoom_nj); 410 482 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_nj); 483 CTimer::get("XIOS").suspend(); 411 484 } 412 485 … … 419 492 void cxios_set_domaingroup_zoom_nj_loc(domaingroup_Ptr domaingroup_hdl, int zoom_nj_loc) 420 493 { 494 CTimer::get("XIOS").resume(); 421 495 domaingroup_hdl->zoom_nj_loc.setValue(zoom_nj_loc); 422 496 domaingroup_hdl->sendAttributToServer(domaingroup_hdl->zoom_nj_loc); 497 CTimer::get("XIOS").suspend(); 423 498 } 424 499 -
XIOS/trunk/src/interface/c_attr/icfield_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 field_hdl->axis_ref.setValue(axis_ref_str); 22 24 field_hdl->sendAttributToServer(field_hdl->axis_ref); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_field_axis_ref(field_Ptr field_hdl, char * axis_ref, int axis_ref_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(field_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) 28 32 ERROR("void cxios_get_field_axis_ref(field_Ptr field_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 32 37 void cxios_set_field_default_value(field_Ptr field_hdl, double default_value) 33 38 { 39 CTimer::get("XIOS").resume(); 34 40 field_hdl->default_value.setValue(default_value); 35 41 field_hdl->sendAttributToServer(field_hdl->default_value); 42 CTimer::get("XIOS").suspend(); 36 43 } 37 44 … … 46 53 std::string domain_ref_str; 47 54 if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; 55 CTimer::get("XIOS").resume(); 48 56 field_hdl->domain_ref.setValue(domain_ref_str); 49 57 field_hdl->sendAttributToServer(field_hdl->domain_ref); 58 CTimer::get("XIOS").suspend(); 50 59 } 51 60 52 61 void cxios_get_field_domain_ref(field_Ptr field_hdl, char * domain_ref, int domain_ref_size) 53 62 { 63 CTimer::get("XIOS").resume(); 54 64 if(!string_copy(field_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) 55 65 ERROR("void cxios_get_field_domain_ref(field_Ptr field_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); 66 CTimer::get("XIOS").suspend(); 56 67 } 57 68 … … 59 70 void cxios_set_field_enabled(field_Ptr field_hdl, bool enabled) 60 71 { 72 CTimer::get("XIOS").resume(); 61 73 field_hdl->enabled.setValue(enabled); 62 74 field_hdl->sendAttributToServer(field_hdl->enabled); 75 CTimer::get("XIOS").suspend(); 63 76 } 64 77 … … 73 86 std::string field_ref_str; 74 87 if(!cstr2string(field_ref, field_ref_size, field_ref_str)) return; 88 CTimer::get("XIOS").resume(); 75 89 field_hdl->field_ref.setValue(field_ref_str); 76 90 field_hdl->sendAttributToServer(field_hdl->field_ref); 91 CTimer::get("XIOS").suspend(); 77 92 } 78 93 79 94 void cxios_get_field_field_ref(field_Ptr field_hdl, char * field_ref, int field_ref_size) 80 95 { 96 CTimer::get("XIOS").resume(); 81 97 if(!string_copy(field_hdl->field_ref.getValue(),field_ref , field_ref_size)) 82 98 ERROR("void cxios_get_field_field_ref(field_Ptr field_hdl, char * field_ref, int field_ref_size)", <<"Input string is to short"); 99 CTimer::get("XIOS").suspend(); 83 100 } 84 101 … … 88 105 std::string freq_offset_str; 89 106 if(!cstr2string(freq_offset, freq_offset_size, freq_offset_str)) return; 107 CTimer::get("XIOS").resume(); 90 108 field_hdl->freq_offset.setValue(freq_offset_str); 91 109 field_hdl->sendAttributToServer(field_hdl->freq_offset); 110 CTimer::get("XIOS").suspend(); 92 111 } 93 112 94 113 void cxios_get_field_freq_offset(field_Ptr field_hdl, char * freq_offset, int freq_offset_size) 95 114 { 115 CTimer::get("XIOS").resume(); 96 116 if(!string_copy(field_hdl->freq_offset.getValue(),freq_offset , freq_offset_size)) 97 117 ERROR("void cxios_get_field_freq_offset(field_Ptr field_hdl, char * freq_offset, int freq_offset_size)", <<"Input string is to short"); 118 CTimer::get("XIOS").suspend(); 98 119 } 99 120 … … 103 124 std::string freq_op_str; 104 125 if(!cstr2string(freq_op, freq_op_size, freq_op_str)) return; 126 CTimer::get("XIOS").resume(); 105 127 field_hdl->freq_op.setValue(freq_op_str); 106 128 field_hdl->sendAttributToServer(field_hdl->freq_op); 129 CTimer::get("XIOS").suspend(); 107 130 } 108 131 109 132 void cxios_get_field_freq_op(field_Ptr field_hdl, char * freq_op, int freq_op_size) 110 133 { 134 CTimer::get("XIOS").resume(); 111 135 if(!string_copy(field_hdl->freq_op.getValue(),freq_op , freq_op_size)) 112 136 ERROR("void cxios_get_field_freq_op(field_Ptr field_hdl, char * freq_op, int freq_op_size)", <<"Input string is to short"); 137 CTimer::get("XIOS").suspend(); 113 138 } 114 139 … … 118 143 std::string grid_ref_str; 119 144 if(!cstr2string(grid_ref, grid_ref_size, grid_ref_str)) return; 145 CTimer::get("XIOS").resume(); 120 146 field_hdl->grid_ref.setValue(grid_ref_str); 121 147 field_hdl->sendAttributToServer(field_hdl->grid_ref); 148 CTimer::get("XIOS").suspend(); 122 149 } 123 150 124 151 void cxios_get_field_grid_ref(field_Ptr field_hdl, char * grid_ref, int grid_ref_size) 125 152 { 153 CTimer::get("XIOS").resume(); 126 154 if(!string_copy(field_hdl->grid_ref.getValue(),grid_ref , grid_ref_size)) 127 155 ERROR("void cxios_get_field_grid_ref(field_Ptr field_hdl, char * grid_ref, int grid_ref_size)", <<"Input string is to short"); 156 CTimer::get("XIOS").suspend(); 128 157 } 129 158 … … 131 160 void cxios_set_field_level(field_Ptr field_hdl, int level) 132 161 { 162 CTimer::get("XIOS").resume(); 133 163 field_hdl->level.setValue(level); 134 164 field_hdl->sendAttributToServer(field_hdl->level); 165 CTimer::get("XIOS").suspend(); 135 166 } 136 167 … … 145 176 std::string long_name_str; 146 177 if(!cstr2string(long_name, long_name_size, long_name_str)) return; 178 CTimer::get("XIOS").resume(); 147 179 field_hdl->long_name.setValue(long_name_str); 148 180 field_hdl->sendAttributToServer(field_hdl->long_name); 181 CTimer::get("XIOS").suspend(); 149 182 } 150 183 151 184 void cxios_get_field_long_name(field_Ptr field_hdl, char * long_name, int long_name_size) 152 185 { 186 CTimer::get("XIOS").resume(); 153 187 if(!string_copy(field_hdl->long_name.getValue(),long_name , long_name_size)) 154 188 ERROR("void cxios_get_field_long_name(field_Ptr field_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 189 CTimer::get("XIOS").suspend(); 155 190 } 156 191 … … 160 195 std::string name_str; 161 196 if(!cstr2string(name, name_size, name_str)) return; 197 CTimer::get("XIOS").resume(); 162 198 field_hdl->name.setValue(name_str); 163 199 field_hdl->sendAttributToServer(field_hdl->name); 200 CTimer::get("XIOS").suspend(); 164 201 } 165 202 166 203 void cxios_get_field_name(field_Ptr field_hdl, char * name, int name_size) 167 204 { 205 CTimer::get("XIOS").resume(); 168 206 if(!string_copy(field_hdl->name.getValue(),name , name_size)) 169 207 ERROR("void cxios_get_field_name(field_Ptr field_hdl, char * name, int name_size)", <<"Input string is to short"); 208 CTimer::get("XIOS").suspend(); 170 209 } 171 210 … … 175 214 std::string operation_str; 176 215 if(!cstr2string(operation, operation_size, operation_str)) return; 216 CTimer::get("XIOS").resume(); 177 217 field_hdl->operation.setValue(operation_str); 178 218 field_hdl->sendAttributToServer(field_hdl->operation); 219 CTimer::get("XIOS").suspend(); 179 220 } 180 221 181 222 void cxios_get_field_operation(field_Ptr field_hdl, char * operation, int operation_size) 182 223 { 224 CTimer::get("XIOS").resume(); 183 225 if(!string_copy(field_hdl->operation.getValue(),operation , operation_size)) 184 226 ERROR("void cxios_get_field_operation(field_Ptr field_hdl, char * operation, int operation_size)", <<"Input string is to short"); 227 CTimer::get("XIOS").suspend(); 185 228 } 186 229 … … 188 231 void cxios_set_field_prec(field_Ptr field_hdl, int prec) 189 232 { 233 CTimer::get("XIOS").resume(); 190 234 field_hdl->prec.setValue(prec); 191 235 field_hdl->sendAttributToServer(field_hdl->prec); 236 CTimer::get("XIOS").suspend(); 192 237 } 193 238 … … 202 247 std::string standard_name_str; 203 248 if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 249 CTimer::get("XIOS").resume(); 204 250 field_hdl->standard_name.setValue(standard_name_str); 205 251 field_hdl->sendAttributToServer(field_hdl->standard_name); 252 CTimer::get("XIOS").suspend(); 206 253 } 207 254 208 255 void cxios_get_field_standard_name(field_Ptr field_hdl, char * standard_name, int standard_name_size) 209 256 { 257 CTimer::get("XIOS").resume(); 210 258 if(!string_copy(field_hdl->standard_name.getValue(),standard_name , standard_name_size)) 211 259 ERROR("void cxios_get_field_standard_name(field_Ptr field_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 260 CTimer::get("XIOS").suspend(); 212 261 } 213 262 … … 217 266 std::string unit_str; 218 267 if(!cstr2string(unit, unit_size, unit_str)) return; 268 CTimer::get("XIOS").resume(); 219 269 field_hdl->unit.setValue(unit_str); 220 270 field_hdl->sendAttributToServer(field_hdl->unit); 271 CTimer::get("XIOS").suspend(); 221 272 } 222 273 223 274 void cxios_get_field_unit(field_Ptr field_hdl, char * unit, int unit_size) 224 275 { 276 CTimer::get("XIOS").resume(); 225 277 if(!string_copy(field_hdl->unit.getValue(),unit , unit_size)) 226 278 ERROR("void cxios_get_field_unit(field_Ptr field_hdl, char * unit, int unit_size)", <<"Input string is to short"); 279 CTimer::get("XIOS").suspend(); 227 280 } 228 281 -
XIOS/trunk/src/interface/c_attr/icfieldgroup_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 fieldgroup_hdl->axis_ref.setValue(axis_ref_str); 22 24 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->axis_ref); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(fieldgroup_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) 28 32 ERROR("void cxios_get_fieldgroup_axis_ref(fieldgroup_Ptr fieldgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); 33 CTimer::get("XIOS").suspend(); 29 34 } 30 35 … … 32 37 void cxios_set_fieldgroup_default_value(fieldgroup_Ptr fieldgroup_hdl, double default_value) 33 38 { 39 CTimer::get("XIOS").resume(); 34 40 fieldgroup_hdl->default_value.setValue(default_value); 35 41 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->default_value); 42 CTimer::get("XIOS").suspend(); 36 43 } 37 44 … … 46 53 std::string domain_ref_str; 47 54 if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; 55 CTimer::get("XIOS").resume(); 48 56 fieldgroup_hdl->domain_ref.setValue(domain_ref_str); 49 57 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->domain_ref); 58 CTimer::get("XIOS").suspend(); 50 59 } 51 60 52 61 void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size) 53 62 { 63 CTimer::get("XIOS").resume(); 54 64 if(!string_copy(fieldgroup_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) 55 65 ERROR("void cxios_get_fieldgroup_domain_ref(fieldgroup_Ptr fieldgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); 66 CTimer::get("XIOS").suspend(); 56 67 } 57 68 … … 59 70 void cxios_set_fieldgroup_enabled(fieldgroup_Ptr fieldgroup_hdl, bool enabled) 60 71 { 72 CTimer::get("XIOS").resume(); 61 73 fieldgroup_hdl->enabled.setValue(enabled); 62 74 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->enabled); 75 CTimer::get("XIOS").suspend(); 63 76 } 64 77 … … 73 86 std::string field_ref_str; 74 87 if(!cstr2string(field_ref, field_ref_size, field_ref_str)) return; 88 CTimer::get("XIOS").resume(); 75 89 fieldgroup_hdl->field_ref.setValue(field_ref_str); 76 90 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->field_ref); 91 CTimer::get("XIOS").suspend(); 77 92 } 78 93 79 94 void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size) 80 95 { 96 CTimer::get("XIOS").resume(); 81 97 if(!string_copy(fieldgroup_hdl->field_ref.getValue(),field_ref , field_ref_size)) 82 98 ERROR("void cxios_get_fieldgroup_field_ref(fieldgroup_Ptr fieldgroup_hdl, char * field_ref, int field_ref_size)", <<"Input string is to short"); 99 CTimer::get("XIOS").suspend(); 83 100 } 84 101 … … 88 105 std::string freq_offset_str; 89 106 if(!cstr2string(freq_offset, freq_offset_size, freq_offset_str)) return; 107 CTimer::get("XIOS").resume(); 90 108 fieldgroup_hdl->freq_offset.setValue(freq_offset_str); 91 109 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->freq_offset); 110 CTimer::get("XIOS").suspend(); 92 111 } 93 112 94 113 void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, char * freq_offset, int freq_offset_size) 95 114 { 115 CTimer::get("XIOS").resume(); 96 116 if(!string_copy(fieldgroup_hdl->freq_offset.getValue(),freq_offset , freq_offset_size)) 97 117 ERROR("void cxios_get_fieldgroup_freq_offset(fieldgroup_Ptr fieldgroup_hdl, char * freq_offset, int freq_offset_size)", <<"Input string is to short"); 118 CTimer::get("XIOS").suspend(); 98 119 } 99 120 … … 103 124 std::string freq_op_str; 104 125 if(!cstr2string(freq_op, freq_op_size, freq_op_str)) return; 126 CTimer::get("XIOS").resume(); 105 127 fieldgroup_hdl->freq_op.setValue(freq_op_str); 106 128 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->freq_op); 129 CTimer::get("XIOS").suspend(); 107 130 } 108 131 109 132 void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, char * freq_op, int freq_op_size) 110 133 { 134 CTimer::get("XIOS").resume(); 111 135 if(!string_copy(fieldgroup_hdl->freq_op.getValue(),freq_op , freq_op_size)) 112 136 ERROR("void cxios_get_fieldgroup_freq_op(fieldgroup_Ptr fieldgroup_hdl, char * freq_op, int freq_op_size)", <<"Input string is to short"); 137 CTimer::get("XIOS").suspend(); 113 138 } 114 139 … … 118 143 std::string grid_ref_str; 119 144 if(!cstr2string(grid_ref, grid_ref_size, grid_ref_str)) return; 145 CTimer::get("XIOS").resume(); 120 146 fieldgroup_hdl->grid_ref.setValue(grid_ref_str); 121 147 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->grid_ref); 148 CTimer::get("XIOS").suspend(); 122 149 } 123 150 124 151 void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size) 125 152 { 153 CTimer::get("XIOS").resume(); 126 154 if(!string_copy(fieldgroup_hdl->grid_ref.getValue(),grid_ref , grid_ref_size)) 127 155 ERROR("void cxios_get_fieldgroup_grid_ref(fieldgroup_Ptr fieldgroup_hdl, char * grid_ref, int grid_ref_size)", <<"Input string is to short"); 156 CTimer::get("XIOS").suspend(); 128 157 } 129 158 … … 133 162 std::string group_ref_str; 134 163 if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return; 164 CTimer::get("XIOS").resume(); 135 165 fieldgroup_hdl->group_ref.setValue(group_ref_str); 136 166 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->group_ref); 167 CTimer::get("XIOS").suspend(); 137 168 } 138 169 139 170 void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size) 140 171 { 172 CTimer::get("XIOS").resume(); 141 173 if(!string_copy(fieldgroup_hdl->group_ref.getValue(),group_ref , group_ref_size)) 142 174 ERROR("void cxios_get_fieldgroup_group_ref(fieldgroup_Ptr fieldgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); 175 CTimer::get("XIOS").suspend(); 143 176 } 144 177 … … 146 179 void cxios_set_fieldgroup_level(fieldgroup_Ptr fieldgroup_hdl, int level) 147 180 { 181 CTimer::get("XIOS").resume(); 148 182 fieldgroup_hdl->level.setValue(level); 149 183 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->level); 184 CTimer::get("XIOS").suspend(); 150 185 } 151 186 … … 160 195 std::string long_name_str; 161 196 if(!cstr2string(long_name, long_name_size, long_name_str)) return; 197 CTimer::get("XIOS").resume(); 162 198 fieldgroup_hdl->long_name.setValue(long_name_str); 163 199 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->long_name); 200 CTimer::get("XIOS").suspend(); 164 201 } 165 202 166 203 void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size) 167 204 { 205 CTimer::get("XIOS").resume(); 168 206 if(!string_copy(fieldgroup_hdl->long_name.getValue(),long_name , long_name_size)) 169 207 ERROR("void cxios_get_fieldgroup_long_name(fieldgroup_Ptr fieldgroup_hdl, char * long_name, int long_name_size)", <<"Input string is to short"); 208 CTimer::get("XIOS").suspend(); 170 209 } 171 210 … … 175 214 std::string name_str; 176 215 if(!cstr2string(name, name_size, name_str)) return; 216 CTimer::get("XIOS").resume(); 177 217 fieldgroup_hdl->name.setValue(name_str); 178 218 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->name); 219 CTimer::get("XIOS").suspend(); 179 220 } 180 221 181 222 void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size) 182 223 { 224 CTimer::get("XIOS").resume(); 183 225 if(!string_copy(fieldgroup_hdl->name.getValue(),name , name_size)) 184 226 ERROR("void cxios_get_fieldgroup_name(fieldgroup_Ptr fieldgroup_hdl, char * name, int name_size)", <<"Input string is to short"); 227 CTimer::get("XIOS").suspend(); 185 228 } 186 229 … … 190 233 std::string operation_str; 191 234 if(!cstr2string(operation, operation_size, operation_str)) return; 235 CTimer::get("XIOS").resume(); 192 236 fieldgroup_hdl->operation.setValue(operation_str); 193 237 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->operation); 238 CTimer::get("XIOS").suspend(); 194 239 } 195 240 196 241 void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size) 197 242 { 243 CTimer::get("XIOS").resume(); 198 244 if(!string_copy(fieldgroup_hdl->operation.getValue(),operation , operation_size)) 199 245 ERROR("void cxios_get_fieldgroup_operation(fieldgroup_Ptr fieldgroup_hdl, char * operation, int operation_size)", <<"Input string is to short"); 246 CTimer::get("XIOS").suspend(); 200 247 } 201 248 … … 203 250 void cxios_set_fieldgroup_prec(fieldgroup_Ptr fieldgroup_hdl, int prec) 204 251 { 252 CTimer::get("XIOS").resume(); 205 253 fieldgroup_hdl->prec.setValue(prec); 206 254 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->prec); 255 CTimer::get("XIOS").suspend(); 207 256 } 208 257 … … 217 266 std::string standard_name_str; 218 267 if(!cstr2string(standard_name, standard_name_size, standard_name_str)) return; 268 CTimer::get("XIOS").resume(); 219 269 fieldgroup_hdl->standard_name.setValue(standard_name_str); 220 270 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->standard_name); 271 CTimer::get("XIOS").suspend(); 221 272 } 222 273 223 274 void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size) 224 275 { 276 CTimer::get("XIOS").resume(); 225 277 if(!string_copy(fieldgroup_hdl->standard_name.getValue(),standard_name , standard_name_size)) 226 278 ERROR("void cxios_get_fieldgroup_standard_name(fieldgroup_Ptr fieldgroup_hdl, char * standard_name, int standard_name_size)", <<"Input string is to short"); 279 CTimer::get("XIOS").suspend(); 227 280 } 228 281 … … 232 285 std::string unit_str; 233 286 if(!cstr2string(unit, unit_size, unit_str)) return; 287 CTimer::get("XIOS").resume(); 234 288 fieldgroup_hdl->unit.setValue(unit_str); 235 289 fieldgroup_hdl->sendAttributToServer(fieldgroup_hdl->unit); 290 CTimer::get("XIOS").suspend(); 236 291 } 237 292 238 293 void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size) 239 294 { 295 CTimer::get("XIOS").resume(); 240 296 if(!string_copy(fieldgroup_hdl->unit.getValue(),unit , unit_size)) 241 297 ERROR("void cxios_get_fieldgroup_unit(fieldgroup_Ptr fieldgroup_hdl, char * unit, int unit_size)", <<"Input string is to short"); 298 CTimer::get("XIOS").suspend(); 242 299 } 243 300 -
XIOS/trunk/src/interface/c_attr/icfile_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 file_hdl->description.setValue(description_str); 22 24 file_hdl->sendAttributToServer(file_hdl->description); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_file_description(file_Ptr file_hdl, char * description, int description_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(file_hdl->description.getValue(),description , description_size)) 28 32 ERROR("void cxios_get_file_description(file_Ptr file_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_file_enabled(file_Ptr file_hdl, bool enabled) 33 38 { 39 CTimer::get("XIOS").resume(); 34 40 file_hdl->enabled.setValue(enabled); 35 41 file_hdl->sendAttributToServer(file_hdl->enabled); 42 CTimer::get("XIOS").suspend(); 36 43 } 37 44 … … 46 53 std::string name_str; 47 54 if(!cstr2string(name, name_size, name_str)) return; 55 CTimer::get("XIOS").resume(); 48 56 file_hdl->name.setValue(name_str); 49 57 file_hdl->sendAttributToServer(file_hdl->name); 58 CTimer::get("XIOS").suspend(); 50 59 } 51 60 52 61 void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size) 53 62 { 63 CTimer::get("XIOS").resume(); 54 64 if(!string_copy(file_hdl->name.getValue(),name , name_size)) 55 65 ERROR("void cxios_get_file_name(file_Ptr file_hdl, char * name, int name_size)", <<"Input string is to short"); 66 CTimer::get("XIOS").suspend(); 56 67 } 57 68 … … 61 72 std::string name_suffix_str; 62 73 if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return; 74 CTimer::get("XIOS").resume(); 63 75 file_hdl->name_suffix.setValue(name_suffix_str); 64 76 file_hdl->sendAttributToServer(file_hdl->name_suffix); 77 CTimer::get("XIOS").suspend(); 65 78 } 66 79 67 80 void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size) 68 81 { 82 CTimer::get("XIOS").resume(); 69 83 if(!string_copy(file_hdl->name_suffix.getValue(),name_suffix , name_suffix_size)) 70 84 ERROR("void cxios_get_file_name_suffix(file_Ptr file_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short"); 85 CTimer::get("XIOS").suspend(); 71 86 } 72 87 … … 76 91 std::string output_freq_str; 77 92 if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return; 93 CTimer::get("XIOS").resume(); 78 94 file_hdl->output_freq.setValue(output_freq_str); 79 95 file_hdl->sendAttributToServer(file_hdl->output_freq); 96 CTimer::get("XIOS").suspend(); 80 97 } 81 98 82 99 void cxios_get_file_output_freq(file_Ptr file_hdl, char * output_freq, int output_freq_size) 83 100 { 101 CTimer::get("XIOS").resume(); 84 102 if(!string_copy(file_hdl->output_freq.getValue(),output_freq , output_freq_size)) 85 103 ERROR("void cxios_get_file_output_freq(file_Ptr file_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short"); 104 CTimer::get("XIOS").suspend(); 86 105 } 87 106 … … 89 108 void cxios_set_file_output_level(file_Ptr file_hdl, int output_level) 90 109 { 110 CTimer::get("XIOS").resume(); 91 111 file_hdl->output_level.setValue(output_level); 92 112 file_hdl->sendAttributToServer(file_hdl->output_level); 113 CTimer::get("XIOS").suspend(); 93 114 } 94 115 … … 103 124 std::string par_access_str; 104 125 if(!cstr2string(par_access, par_access_size, par_access_str)) return; 126 CTimer::get("XIOS").resume(); 105 127 file_hdl->par_access.setValue(par_access_str); 106 128 file_hdl->sendAttributToServer(file_hdl->par_access); 129 CTimer::get("XIOS").suspend(); 107 130 } 108 131 109 132 void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size) 110 133 { 134 CTimer::get("XIOS").resume(); 111 135 if(!string_copy(file_hdl->par_access.getValue(),par_access , par_access_size)) 112 136 ERROR("void cxios_get_file_par_access(file_Ptr file_hdl, char * par_access, int par_access_size)", <<"Input string is to short"); 137 CTimer::get("XIOS").suspend(); 113 138 } 114 139 … … 118 143 std::string split_freq_str; 119 144 if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return; 145 CTimer::get("XIOS").resume(); 120 146 file_hdl->split_freq.setValue(split_freq_str); 121 147 file_hdl->sendAttributToServer(file_hdl->split_freq); 148 CTimer::get("XIOS").suspend(); 122 149 } 123 150 124 151 void cxios_get_file_split_freq(file_Ptr file_hdl, char * split_freq, int split_freq_size) 125 152 { 153 CTimer::get("XIOS").resume(); 126 154 if(!string_copy(file_hdl->split_freq.getValue(),split_freq , split_freq_size)) 127 155 ERROR("void cxios_get_file_split_freq(file_Ptr file_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short"); 156 CTimer::get("XIOS").suspend(); 128 157 } 129 158 … … 133 162 std::string sync_freq_str; 134 163 if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return; 164 CTimer::get("XIOS").resume(); 135 165 file_hdl->sync_freq.setValue(sync_freq_str); 136 166 file_hdl->sendAttributToServer(file_hdl->sync_freq); 167 CTimer::get("XIOS").suspend(); 137 168 } 138 169 139 170 void cxios_get_file_sync_freq(file_Ptr file_hdl, char * sync_freq, int sync_freq_size) 140 171 { 172 CTimer::get("XIOS").resume(); 141 173 if(!string_copy(file_hdl->sync_freq.getValue(),sync_freq , sync_freq_size)) 142 174 ERROR("void cxios_get_file_sync_freq(file_Ptr file_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short"); 175 CTimer::get("XIOS").suspend(); 143 176 } 144 177 … … 148 181 std::string type_str; 149 182 if(!cstr2string(type, type_size, type_str)) return; 183 CTimer::get("XIOS").resume(); 150 184 file_hdl->type.setValue(type_str); 151 185 file_hdl->sendAttributToServer(file_hdl->type); 186 CTimer::get("XIOS").suspend(); 152 187 } 153 188 154 189 void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size) 155 190 { 191 CTimer::get("XIOS").resume(); 156 192 if(!string_copy(file_hdl->type.getValue(),type , type_size)) 157 193 ERROR("void cxios_get_file_type(file_Ptr file_hdl, char * type, int type_size)", <<"Input string is to short"); 194 CTimer::get("XIOS").suspend(); 158 195 } 159 196 -
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 -
XIOS/trunk/src/interface/c_attr/icgrid_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 grid_hdl->axis_ref.setValue(axis_ref_str); 22 24 grid_hdl->sendAttributToServer(grid_hdl->axis_ref); 25 CTimer::get("XIOS").suspend(); 23 26 } 24 27 25 28 void cxios_get_grid_axis_ref(grid_Ptr grid_hdl, char * axis_ref, int axis_ref_size) 26 29 { 30 CTimer::get("XIOS").resume(); 27 31 if(!string_copy(grid_hdl->axis_ref.getValue(),axis_ref , axis_ref_size)) 28 32 ERROR("void cxios_get_grid_axis_ref(grid_Ptr grid_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 grid_hdl->description.setValue(description_str); 37 43 grid_hdl->sendAttributToServer(grid_hdl->description); 44 CTimer::get("XIOS").suspend(); 38 45 } 39 46 40 47 void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size) 41 48 { 49 CTimer::get("XIOS").resume(); 42 50 if(!string_copy(grid_hdl->description.getValue(),description , description_size)) 43 51 ERROR("void cxios_get_grid_description(grid_Ptr grid_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 grid_hdl->domain_ref.setValue(domain_ref_str); 52 62 grid_hdl->sendAttributToServer(grid_hdl->domain_ref); 63 CTimer::get("XIOS").suspend(); 53 64 } 54 65 55 66 void cxios_get_grid_domain_ref(grid_Ptr grid_hdl, char * domain_ref, int domain_ref_size) 56 67 { 68 CTimer::get("XIOS").resume(); 57 69 if(!string_copy(grid_hdl->domain_ref.getValue(),domain_ref , domain_ref_size)) 58 70 ERROR("void cxios_get_grid_domain_ref(grid_Ptr grid_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 name_str; 65 78 if(!cstr2string(name, name_size, name_str)) return; 79 CTimer::get("XIOS").resume(); 66 80 grid_hdl->name.setValue(name_str); 67 81 grid_hdl->sendAttributToServer(grid_hdl->name); 82 CTimer::get("XIOS").suspend(); 68 83 } 69 84 70 85 void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size) 71 86 { 87 CTimer::get("XIOS").resume(); 72 88 if(!string_copy(grid_hdl->name.getValue(),name , name_size)) 73 89 ERROR("void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size)", <<"Input string is to short"); 90 CTimer::get("XIOS").suspend(); 74 91 } 75 92 -
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.