/* ************************************************************************** * * Interface auto generated - do not modify * * ************************************************************************** */ #include #include #include "xmlioserver.hpp" #include "attribute_template.hpp" #include "object_template.hpp" #include "group_template.hpp" #include "icutil.hpp" #include "timer.hpp" #include "node_type.hpp" extern "C" { typedef xios::CGridGroup* gridgroup_Ptr; void cxios_set_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, const char * axis_ref, int axis_ref_size) { std::string axis_ref_str; if(!cstr2string(axis_ref, axis_ref_size, axis_ref_str)) return; CTimer::get("XIOS").resume(); gridgroup_hdl->axis_ref.setValue(axis_ref_str); gridgroup_hdl->sendAttributToServer(gridgroup_hdl->axis_ref); CTimer::get("XIOS").suspend(); } void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size) { CTimer::get("XIOS").resume(); if(!string_copy(gridgroup_hdl->axis_ref.getInheritedValue(),axis_ref , axis_ref_size)) ERROR("void cxios_get_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl, char * axis_ref, int axis_ref_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_gridgroup_axis_ref(gridgroup_Ptr gridgroup_hdl ) { CTimer::get("XIOS").resume(); return gridgroup_hdl->axis_ref.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_gridgroup_description(gridgroup_Ptr gridgroup_hdl, const char * description, int description_size) { std::string description_str; if(!cstr2string(description, description_size, description_str)) return; CTimer::get("XIOS").resume(); gridgroup_hdl->description.setValue(description_str); gridgroup_hdl->sendAttributToServer(gridgroup_hdl->description); CTimer::get("XIOS").suspend(); } void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size) { CTimer::get("XIOS").resume(); if(!string_copy(gridgroup_hdl->description.getInheritedValue(),description , description_size)) ERROR("void cxios_get_gridgroup_description(gridgroup_Ptr gridgroup_hdl, char * description, int description_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_gridgroup_description(gridgroup_Ptr gridgroup_hdl ) { CTimer::get("XIOS").resume(); return gridgroup_hdl->description.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, const char * domain_ref, int domain_ref_size) { std::string domain_ref_str; if(!cstr2string(domain_ref, domain_ref_size, domain_ref_str)) return; CTimer::get("XIOS").resume(); gridgroup_hdl->domain_ref.setValue(domain_ref_str); gridgroup_hdl->sendAttributToServer(gridgroup_hdl->domain_ref); CTimer::get("XIOS").suspend(); } void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size) { CTimer::get("XIOS").resume(); if(!string_copy(gridgroup_hdl->domain_ref.getInheritedValue(),domain_ref , domain_ref_size)) ERROR("void cxios_get_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl, char * domain_ref, int domain_ref_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_gridgroup_domain_ref(gridgroup_Ptr gridgroup_hdl ) { CTimer::get("XIOS").resume(); return gridgroup_hdl->domain_ref.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_gridgroup_group_ref(gridgroup_Ptr gridgroup_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(); gridgroup_hdl->group_ref.setValue(group_ref_str); gridgroup_hdl->sendAttributToServer(gridgroup_hdl->group_ref); CTimer::get("XIOS").suspend(); } void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size) { CTimer::get("XIOS").resume(); if(!string_copy(gridgroup_hdl->group_ref.getInheritedValue(),group_ref , group_ref_size)) ERROR("void cxios_get_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_gridgroup_group_ref(gridgroup_Ptr gridgroup_hdl ) { CTimer::get("XIOS").resume(); return gridgroup_hdl->group_ref.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) { CTimer::get("XIOS").resume(); CArray tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; gridgroup_hdl->mask.reference(tmp.copy()); gridgroup_hdl->sendAttributToServer(gridgroup_hdl->mask); CTimer::get("XIOS").suspend(); } void cxios_get_gridgroup_mask(gridgroup_Ptr gridgroup_hdl, bool* mask, int extent1, int extent2, int extent3) { CTimer::get("XIOS").resume(); CArray tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; tmp=gridgroup_hdl->mask.getInheritedValue() ; CTimer::get("XIOS").suspend(); } bool cxios_is_defined_gridgroup_mask(gridgroup_Ptr gridgroup_hdl ) { CTimer::get("XIOS").resume(); return gridgroup_hdl->mask.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_gridgroup_name(gridgroup_Ptr gridgroup_hdl, const char * name, int name_size) { std::string name_str; if(!cstr2string(name, name_size, name_str)) return; CTimer::get("XIOS").resume(); gridgroup_hdl->name.setValue(name_str); gridgroup_hdl->sendAttributToServer(gridgroup_hdl->name); CTimer::get("XIOS").suspend(); } void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size) { CTimer::get("XIOS").resume(); if(!string_copy(gridgroup_hdl->name.getInheritedValue(),name , name_size)) ERROR("void cxios_get_gridgroup_name(gridgroup_Ptr gridgroup_hdl, char * name, int name_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_gridgroup_name(gridgroup_Ptr gridgroup_hdl ) { CTimer::get("XIOS").resume(); return gridgroup_hdl->name.hasInheritedValue(); CTimer::get("XIOS").suspend(); } }