[472] | 1 | /* ************************************************************************** * |
---|
| 2 | * Interface auto generated - do not modify * |
---|
| 3 | * ************************************************************************** */ |
---|
| 4 | |
---|
| 5 | #include <boost/multi_array.hpp> |
---|
| 6 | #include <boost/shared_ptr.hpp> |
---|
| 7 | #include "xmlioserver.hpp" |
---|
| 8 | #include "attribute_template.hpp" |
---|
| 9 | #include "object_template.hpp" |
---|
| 10 | #include "group_template.hpp" |
---|
| 11 | #include "icutil.hpp" |
---|
[532] | 12 | #include "icdate.hpp" |
---|
[472] | 13 | #include "timer.hpp" |
---|
| 14 | #include "node_type.hpp" |
---|
| 15 | |
---|
| 16 | extern "C" |
---|
| 17 | { |
---|
| 18 | typedef xios::CVariable* variable_Ptr; |
---|
| 19 | |
---|
| 20 | void cxios_set_variable_name(variable_Ptr variable_hdl, const char * name, int name_size) |
---|
| 21 | { |
---|
| 22 | std::string name_str; |
---|
| 23 | if(!cstr2string(name, name_size, name_str)) return; |
---|
| 24 | CTimer::get("XIOS").resume(); |
---|
| 25 | variable_hdl->name.setValue(name_str); |
---|
| 26 | CTimer::get("XIOS").suspend(); |
---|
| 27 | } |
---|
| 28 | |
---|
| 29 | void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size) |
---|
| 30 | { |
---|
| 31 | CTimer::get("XIOS").resume(); |
---|
| 32 | if(!string_copy(variable_hdl->name.getInheritedValue(),name , name_size)) |
---|
| 33 | ERROR("void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size)", <<"Input string is to short"); |
---|
| 34 | CTimer::get("XIOS").suspend(); |
---|
| 35 | } |
---|
| 36 | |
---|
| 37 | bool cxios_is_defined_variable_name(variable_Ptr variable_hdl ) |
---|
| 38 | { |
---|
| 39 | CTimer::get("XIOS").resume(); |
---|
| 40 | return variable_hdl->name.hasInheritedValue(); |
---|
| 41 | CTimer::get("XIOS").suspend(); |
---|
| 42 | } |
---|
| 43 | |
---|
| 44 | |
---|
| 45 | |
---|
| 46 | void cxios_set_variable_type(variable_Ptr variable_hdl, const char * type, int type_size) |
---|
| 47 | { |
---|
| 48 | std::string type_str; |
---|
| 49 | if(!cstr2string(type, type_size, type_str)) return; |
---|
| 50 | CTimer::get("XIOS").resume(); |
---|
[527] | 51 | variable_hdl->type.fromString(type_str); |
---|
[472] | 52 | CTimer::get("XIOS").suspend(); |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size) |
---|
| 56 | { |
---|
| 57 | CTimer::get("XIOS").resume(); |
---|
[527] | 58 | if(!string_copy(variable_hdl->type.getInheritedStringValue(),type , type_size)) |
---|
[472] | 59 | ERROR("void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size)", <<"Input string is to short"); |
---|
| 60 | CTimer::get("XIOS").suspend(); |
---|
| 61 | } |
---|
| 62 | |
---|
| 63 | bool cxios_is_defined_variable_type(variable_Ptr variable_hdl ) |
---|
| 64 | { |
---|
| 65 | CTimer::get("XIOS").resume(); |
---|
| 66 | return variable_hdl->type.hasInheritedValue(); |
---|
| 67 | CTimer::get("XIOS").suspend(); |
---|
| 68 | } |
---|
| 69 | |
---|
| 70 | |
---|
| 71 | |
---|
| 72 | |
---|
| 73 | } |
---|