/* ************************************************************************** * * 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 "icdate.hpp" #include "timer.hpp" #include "node_type.hpp" extern "C" { typedef xios::CGrid* grid_Ptr; void cxios_set_grid_axisDomOrder(grid_Ptr grid_hdl, bool* axisDomainOrder, int extent1) { CTimer::get("XIOS").resume(); CArray tmp(axisDomainOrder,shape(extent1),neverDeleteData) ; grid_hdl->axisDomainOrder.reference(tmp.copy()); CTimer::get("XIOS").suspend(); } void cxios_get_grid_axisDomOrder(grid_Ptr grid_hdl, bool* axisDomainOrder, int extent1) { CTimer::get("XIOS").resume(); CArray tmp(axisDomainOrder,shape(extent1),neverDeleteData) ; tmp=grid_hdl->axisDomainOrder.getInheritedValue() ; CTimer::get("XIOS").suspend(); } bool cxios_is_defined_grid_axisDomOrder(grid_Ptr grid_hdl ) { CTimer::get("XIOS").resume(); return grid_hdl->axisDomainOrder.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_grid_description(grid_Ptr grid_hdl, const char * description, int description_size) { std::string description_str; if(!cstr2string(description, description_size, description_str)) return; CTimer::get("XIOS").resume(); grid_hdl->description.setValue(description_str); CTimer::get("XIOS").suspend(); } void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size) { CTimer::get("XIOS").resume(); if(!string_copy(grid_hdl->description.getInheritedValue(),description , description_size)) ERROR("void cxios_get_grid_description(grid_Ptr grid_hdl, char * description, int description_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_grid_description(grid_Ptr grid_hdl ) { CTimer::get("XIOS").resume(); return grid_hdl->description.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_grid_mask(grid_Ptr grid_hdl, bool* mask, int extent1, int extent2, int extent3) { CTimer::get("XIOS").resume(); CArray tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; grid_hdl->mask.reference(tmp.copy()); CTimer::get("XIOS").suspend(); } void cxios_get_grid_mask(grid_Ptr grid_hdl, bool* mask, int extent1, int extent2, int extent3) { CTimer::get("XIOS").resume(); CArray tmp(mask,shape(extent1,extent2,extent3),neverDeleteData) ; tmp=grid_hdl->mask.getInheritedValue() ; CTimer::get("XIOS").suspend(); } bool cxios_is_defined_grid_mask(grid_Ptr grid_hdl ) { CTimer::get("XIOS").resume(); return grid_hdl->mask.hasInheritedValue(); CTimer::get("XIOS").suspend(); } void cxios_set_grid_name(grid_Ptr grid_hdl, const char * name, int name_size) { std::string name_str; if(!cstr2string(name, name_size, name_str)) return; CTimer::get("XIOS").resume(); grid_hdl->name.setValue(name_str); CTimer::get("XIOS").suspend(); } void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size) { CTimer::get("XIOS").resume(); if(!string_copy(grid_hdl->name.getInheritedValue(),name , name_size)) ERROR("void cxios_get_grid_name(grid_Ptr grid_hdl, char * name, int name_size)", <<"Input string is to short"); CTimer::get("XIOS").suspend(); } bool cxios_is_defined_grid_name(grid_Ptr grid_hdl ) { CTimer::get("XIOS").resume(); return grid_hdl->name.hasInheritedValue(); CTimer::get("XIOS").suspend(); } }