/* ************************************************************************** * * Copyright © IPSL/LSCE, xios, Avril 2010 - Octobre 2011 * * ************************************************************************** */ #include #include #include "xios.hpp" #include "object_template.hpp" #include "group_template.hpp" #include "attribute_template.hpp" #include "icutil.hpp" #include "timer.hpp" #include "zoom_axis.hpp" #include "zoom_domain.hpp" extern "C" { // /////////////////////////////// Définitions ////////////////////////////// // // ----------------------- Redéfinition de types ---------------------------- typedef xios::CZoomAxis * XZoomAxisPtr; typedef xios::CZoomDomain * XZoomDomainPtr; // ------------------------ Création des handle ----------------------------- void cxios_zoom_axis_handle_create (XZoomAxisPtr * _ret, const char * _id, int _id_len) { std::string id; if (!cstr2string(_id, _id_len, id)) return; CTimer::get("XIOS").resume() ; *_ret = xios::CZoomAxis::get(id); CTimer::get("XIOS").suspend() ; } // -------------------- Vérification des identifiants ----------------------- void cxios_zoom_axis_valid_id (bool * _ret, const char * _id, int _id_len) { std::string id; if (!cstr2string(_id, _id_len, id)) return; CTimer::get("XIOS").resume() ; *_ret = xios::CZoomAxis::has(id); CTimer::get("XIOS").suspend() ; } // ------------------------ Création des handle ----------------------------- void cxios_zoom_domain_handle_create(XZoomDomainPtr * _ret, const char * _id, int _id_len) { std::string id; if (!cstr2string(_id, _id_len, id)) return; CTimer::get("XIOS").resume() ; *_ret = xios::CZoomDomain::get(id); CTimer::get("XIOS").suspend() ; } // -------------------- Vérification des identifiants ----------------------- void cxios_zoom_domain_valid_id(bool * _ret, const char * _id, int _id_len) { std::string id; if (!cstr2string(_id, _id_len, id)) return; CTimer::get("XIOS").resume() ; *_ret = xios::CZoomDomain::has(id); CTimer::get("XIOS").suspend() ; } } // extern "C"