/* ************************************************************************** * * 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::CScalarGroup* scalargroup_Ptr; void cxios_set_scalargroup_group_ref(scalargroup_Ptr scalargroup_hdl, const char * group_ref, int group_ref_size) { std::string group_ref_str; if (!cstr2string(group_ref, group_ref_size, group_ref_str)) return; CTimer::get("XIOS").resume(); scalargroup_hdl->group_ref.setValue(group_ref_str); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_group_ref(scalargroup_Ptr scalargroup_hdl, char * group_ref, int group_ref_size) { CTimer::get("XIOS").resume(); if (!string_copy(scalargroup_hdl->group_ref.getInheritedValue(), group_ref, group_ref_size)) ERROR("void cxios_get_scalargroup_group_ref(scalargroup_Ptr scalargroup_hdl, char * group_ref, int group_ref_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_group_ref(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->group_ref.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_scalargroup_long_name(scalargroup_Ptr scalargroup_hdl, const char * long_name, int long_name_size) { std::string long_name_str; if (!cstr2string(long_name, long_name_size, long_name_str)) return; CTimer::get("XIOS").resume(); scalargroup_hdl->long_name.setValue(long_name_str); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_long_name(scalargroup_Ptr scalargroup_hdl, char * long_name, int long_name_size) { CTimer::get("XIOS").resume(); if (!string_copy(scalargroup_hdl->long_name.getInheritedValue(), long_name, long_name_size)) ERROR("void cxios_get_scalargroup_long_name(scalargroup_Ptr scalargroup_hdl, char * long_name, int long_name_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_long_name(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->long_name.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_scalargroup_name(scalargroup_Ptr scalargroup_hdl, const char * name, int name_size) { std::string name_str; if (!cstr2string(name, name_size, name_str)) return; CTimer::get("XIOS").resume(); scalargroup_hdl->name.setValue(name_str); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_name(scalargroup_Ptr scalargroup_hdl, char * name, int name_size) { CTimer::get("XIOS").resume(); if (!string_copy(scalargroup_hdl->name.getInheritedValue(), name, name_size)) ERROR("void cxios_get_scalargroup_name(scalargroup_Ptr scalargroup_hdl, char * name, int name_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_name(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->name.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_scalargroup_scalar_ref(scalargroup_Ptr scalargroup_hdl, const char * scalar_ref, int scalar_ref_size) { std::string scalar_ref_str; if (!cstr2string(scalar_ref, scalar_ref_size, scalar_ref_str)) return; CTimer::get("XIOS").resume(); scalargroup_hdl->scalar_ref.setValue(scalar_ref_str); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_scalar_ref(scalargroup_Ptr scalargroup_hdl, char * scalar_ref, int scalar_ref_size) { CTimer::get("XIOS").resume(); if (!string_copy(scalargroup_hdl->scalar_ref.getInheritedValue(), scalar_ref, scalar_ref_size)) ERROR("void cxios_get_scalargroup_scalar_ref(scalargroup_Ptr scalargroup_hdl, char * scalar_ref, int scalar_ref_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_scalar_ref(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->scalar_ref.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_scalargroup_standard_name(scalargroup_Ptr scalargroup_hdl, const char * standard_name, int standard_name_size) { std::string standard_name_str; if (!cstr2string(standard_name, standard_name_size, standard_name_str)) return; CTimer::get("XIOS").resume(); scalargroup_hdl->standard_name.setValue(standard_name_str); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_standard_name(scalargroup_Ptr scalargroup_hdl, char * standard_name, int standard_name_size) { CTimer::get("XIOS").resume(); if (!string_copy(scalargroup_hdl->standard_name.getInheritedValue(), standard_name, standard_name_size)) ERROR("void cxios_get_scalargroup_standard_name(scalargroup_Ptr scalargroup_hdl, char * standard_name, int standard_name_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_standard_name(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->standard_name.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_scalargroup_unit(scalargroup_Ptr scalargroup_hdl, const char * unit, int unit_size) { std::string unit_str; if (!cstr2string(unit, unit_size, unit_str)) return; CTimer::get("XIOS").resume(); scalargroup_hdl->unit.setValue(unit_str); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_unit(scalargroup_Ptr scalargroup_hdl, char * unit, int unit_size) { CTimer::get("XIOS").resume(); if (!string_copy(scalargroup_hdl->unit.getInheritedValue(), unit, unit_size)) ERROR("void cxios_get_scalargroup_unit(scalargroup_Ptr scalargroup_hdl, char * unit, int unit_size)", << "Input string is too short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_unit(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->unit.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } void cxios_set_scalargroup_value(scalargroup_Ptr scalargroup_hdl, double value) { CTimer::get("XIOS").resume(); scalargroup_hdl->value.setValue(value); CTimer::get("XIOS").suspend(); } void cxios_get_scalargroup_value(scalargroup_Ptr scalargroup_hdl, double* value) { CTimer::get("XIOS").resume(); *value = scalargroup_hdl->value.getInheritedValue(); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_scalargroup_value(scalargroup_Ptr scalargroup_hdl) { CTimer::get("XIOS").resume(); bool isDefined = scalargroup_hdl->value.hasInheritedValue(); CTimer::get("XIOS").suspend(); return isDefined; } }