/* ************************************************************************** * * Interface auto generated - do not modify * * ************************************************************************** */ #include #include #include "xios.hpp" #include "attribute_template.hpp" #include "object_template.hpp" #include "group_template.hpp" #include "icutil.hpp" #include "icdate.hpp" #include "timer.hpp" #include "node_type.hpp" extern "C" { typedef xios::CVariable* variable_Ptr; void cxios_set_variable_name(variable_Ptr variable_hdl, const char * name, int name_size) { std::string name_str; if (!cstr2string(name, name_size, name_str)) return; CTimer::get("XIOS").resume(); variable_hdl->name.setValue(name_str); CTimer::get("XIOS").suspend(); } void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size) { CTimer::get("XIOS").resume(); if (!string_copy(variable_hdl->name.getInheritedValue(), name, name_size)) ERROR("void cxios_get_variable_name(variable_Ptr variable_hdl, char * name, int name_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_variable_name(variable_Ptr variable_hdl) { CTimer::get("XIOS").resume(); bool isDefined = variable_hdl->name.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_variable_ts_target(variable_Ptr variable_hdl, const char * ts_target, int ts_target_size) { std::string ts_target_str; if (!cstr2string(ts_target, ts_target_size, ts_target_str)) return; CTimer::get("XIOS").resume(); variable_hdl->ts_target.fromString(ts_target_str); CTimer::get("XIOS").suspend(); } void cxios_get_variable_ts_target(variable_Ptr variable_hdl, char * ts_target, int ts_target_size) { CTimer::get("XIOS").resume(); if (!string_copy(variable_hdl->ts_target.getInheritedStringValue(), ts_target, ts_target_size)) ERROR("void cxios_get_variable_ts_target(variable_Ptr variable_hdl, char * ts_target, int ts_target_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_variable_ts_target(variable_Ptr variable_hdl) { CTimer::get("XIOS").resume(); bool isDefined = variable_hdl->ts_target.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_variable_type(variable_Ptr variable_hdl, const char * type, int type_size) { std::string type_str; if (!cstr2string(type, type_size, type_str)) return; CTimer::get("XIOS").resume(); variable_hdl->type.fromString(type_str); CTimer::get("XIOS").suspend(); } void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size) { CTimer::get("XIOS").resume(); if (!string_copy(variable_hdl->type.getInheritedStringValue(), type, type_size)) ERROR("void cxios_get_variable_type(variable_Ptr variable_hdl, char * type, int type_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_variable_type(variable_Ptr variable_hdl) { CTimer::get("XIOS").resume(); bool isDefined = variable_hdl->type.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } }