XIOS  1.0
Xml I/O Server
 Tout Classes Espaces de nommage Fichiers Fonctions Variables Définitions de type Énumérations Valeurs énumérées Amis Macros
iccompute_connectivity_domain.cpp
Aller à la documentation de ce fichier.
1 /* ************************************************************************** *
2  * Copyright © IPSL/LSCE, xios, Avril 2010 - Octobre 2011 *
3  * ************************************************************************** */
4 
5 #include <boost/multi_array.hpp>
6 
7 #include "xios.hpp"
8 
9 #include "object_template.hpp"
10 #include "group_template.hpp"
11 #include "attribute_template.hpp"
12 
13 #include "icutil.hpp"
14 #include "timer.hpp"
16 
17 extern "C"
18 {
19 // /////////////////////////////// Définitions ////////////////////////////// //
20 
21  // ----------------------- Redéfinition de types ----------------------------
22 
24 
25  // ------------------------ Création des handle -----------------------------
26  void cxios_compute_connectivity_domain_handle_create(XComConDomainPtr * _ret, const char * _id, int _id_len)
27  TRY
28  {
29  std::string id;
30  if (!cstr2string(_id, _id_len, id)) return;
31  CTimer::get("XIOS").resume() ;
33  CTimer::get("XIOS").suspend() ;
34  }
36 
37  // -------------------- Vérification des identifiants -----------------------
38  void cxios_compute_connectivity_domain_valid_id(bool * _ret, const char * _id, int _id_len)
39  TRY
40  {
41  std::string id;
42  if (!cstr2string(_id, _id_len, id)) return;
43 
44  CTimer::get("XIOS").resume() ;
46  CTimer::get("XIOS").suspend() ;
47  }
49 } // extern "C"
#define TRY
Definition: exception.hpp:154
#define CATCH_DUMP_STACK
Definition: exception.hpp:157
xios::CComputeConnectivityDomain * XComConDomainPtr
CComputeConnectivityDomain * get(void)
CATCH_DUMP_STACK void cxios_compute_connectivity_domain_valid_id(bool *_ret, const char *_id, int _id_len) TRY
bool cstr2string(const char *cstr, int cstr_size, std::string &str)
Definition: icutil.hpp:14
void cxios_compute_connectivity_domain_handle_create(XComConDomainPtr *_ret, const char *_id, int _id_len) TRY