Changeset 415 for XIOS/trunk/src/interface/c_attr
- Timestamp:
- 01/20/13 23:14:35 (11 years ago)
- Location:
- XIOS/trunk/src/interface/c_attr
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
XIOS/trunk/src/interface/c_attr/icaxis_attr.cpp
r369 r415 51 51 if(!string_copy(axis_hdl->name.getValue(),name , name_size)) 52 52 ERROR("void cxios_get_axis_name(axis_Ptr axis_hdl, char * name, int name_size)", <<"Input string is to short"); 53 CTimer::get("XIOS").suspend(); 54 } 55 56 57 void cxios_set_axis_positive(axis_Ptr axis_hdl, const char * positive, int positive_size) 58 { 59 std::string positive_str; 60 if(!cstr2string(positive, positive_size, positive_str)) return; 61 CTimer::get("XIOS").resume(); 62 axis_hdl->positive.fromString(positive_str); 63 axis_hdl->sendAttributToServer(axis_hdl->positive); 64 CTimer::get("XIOS").suspend(); 65 } 66 67 void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size) 68 { 69 CTimer::get("XIOS").resume(); 70 if(!string_copy(axis_hdl->positive.getStringValue(),positive , positive_size)) 71 ERROR("void cxios_get_axis_positive(axis_Ptr axis_hdl, char * positive, int positive_size)", <<"Input string is to short"); 53 72 CTimer::get("XIOS").suspend(); 54 73 } -
XIOS/trunk/src/interface/c_attr/icaxisgroup_attr.cpp
r369 r415 74 74 75 75 76 void cxios_set_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, const char * positive, int positive_size) 77 { 78 std::string positive_str; 79 if(!cstr2string(positive, positive_size, positive_str)) return; 80 CTimer::get("XIOS").resume(); 81 axisgroup_hdl->positive.fromString(positive_str); 82 axisgroup_hdl->sendAttributToServer(axisgroup_hdl->positive); 83 CTimer::get("XIOS").suspend(); 84 } 85 86 void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size) 87 { 88 CTimer::get("XIOS").resume(); 89 if(!string_copy(axisgroup_hdl->positive.getStringValue(),positive , positive_size)) 90 ERROR("void cxios_get_axisgroup_positive(axisgroup_Ptr axisgroup_hdl, char * positive, int positive_size)", <<"Input string is to short"); 91 CTimer::get("XIOS").suspend(); 92 } 93 94 76 95 void cxios_set_axisgroup_size(axisgroup_Ptr axisgroup_hdl, int size) 77 96 { -
XIOS/trunk/src/interface/c_attr/icfile_attr.cpp
r369 r415 50 50 51 51 52 void cxios_set_file_min_digits(file_Ptr file_hdl, int min_digits) 53 { 54 CTimer::get("XIOS").resume(); 55 file_hdl->min_digits.setValue(min_digits); 56 file_hdl->sendAttributToServer(file_hdl->min_digits); 57 CTimer::get("XIOS").suspend(); 58 } 59 60 void cxios_get_file_min_digits(file_Ptr file_hdl, int* min_digits) 61 { 62 *min_digits = file_hdl->min_digits.getValue(); 63 } 64 65 52 66 void cxios_set_file_name(file_Ptr file_hdl, const char * name, int name_size) 53 67 { -
XIOS/trunk/src/interface/c_attr/icfilegroup_attr.cpp
r369 r415 69 69 70 70 71 void cxios_set_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int min_digits) 72 { 73 CTimer::get("XIOS").resume(); 74 filegroup_hdl->min_digits.setValue(min_digits); 75 filegroup_hdl->sendAttributToServer(filegroup_hdl->min_digits); 76 CTimer::get("XIOS").suspend(); 77 } 78 79 void cxios_get_filegroup_min_digits(filegroup_Ptr filegroup_hdl, int* min_digits) 80 { 81 *min_digits = filegroup_hdl->min_digits.getValue(); 82 } 83 84 71 85 void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size) 72 86 { -
XIOS/trunk/src/interface/c_attr/icgrid_attr.cpp
r369 r415 74 74 75 75 76 void cxios_set_grid_mask(grid_Ptr grid_hdl, bool* mask, int extent1, int extent2, int extent3) 77 { 78 CTimer::get("XIOS").resume(); 79 CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; 80 grid_hdl->mask.reference(tmp.copy()); 81 grid_hdl->sendAttributToServer(grid_hdl->mask); 82 } 83 84 void cxios_get_grid_mask(grid_Ptr grid_hdl, bool* mask, int extent1, int extent2, int extent3) 85 { 86 CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; 87 tmp=grid_hdl->mask ; 88 CTimer::get("XIOS").suspend(); 89 } 90 91 76 92 void cxios_set_grid_name(grid_Ptr grid_hdl, const char * name, int name_size) 77 93 { -
XIOS/trunk/src/interface/c_attr/icgridgroup_attr.cpp
r369 r415 93 93 94 94 95 void cxios_set_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) 96 { 97 CTimer::get("XIOS").resume(); 98 CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; 99 gridgroup_hdl->mask.reference(tmp.copy()); 100 gridgroup_hdl->sendAttributToServer(gridgroup_hdl->mask); 101 } 102 103 void cxios_get_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) 104 { 105 CArray<bool,3> tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; 106 tmp=gridgroup_hdl->mask ; 107 CTimer::get("XIOS").suspend(); 108 } 109 110 95 111 void cxios_set_gridgroup_name(gridgroup_Ptr gridgroup_hdl, const char * name, int name_size) 96 112 {
Note: See TracChangeset
for help on using the changeset viewer.