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
icreduce_domain_to_scalar_attr.cpp
Aller à la documentation de ce fichier.
1 /* ************************************************************************** *
2  * Interface auto generated - do not modify *
3  * ************************************************************************** */
4 
5 #include <boost/multi_array.hpp>
6 #include "xios.hpp"
7 #include "attribute_template.hpp"
8 #include "object_template.hpp"
9 #include "group_template.hpp"
10 #include "icutil.hpp"
11 #include "icdate.hpp"
12 #include "timer.hpp"
13 #include "node_type.hpp"
14 
15 extern "C"
16 {
18 
19  void cxios_set_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool local)
20  {
21  CTimer::get("XIOS").resume();
22  reduce_domain_to_scalar_hdl->local.setValue(local);
23  CTimer::get("XIOS").suspend();
24  }
25 
26  void cxios_get_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool* local)
27  {
28  CTimer::get("XIOS").resume();
29  *local = reduce_domain_to_scalar_hdl->local.getInheritedValue();
30  CTimer::get("XIOS").suspend();
31  }
32 
33  bool cxios_is_defined_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
34  {
35  CTimer::get("XIOS").resume();
36  bool isDefined = reduce_domain_to_scalar_hdl->local.hasInheritedValue();
37  CTimer::get("XIOS").suspend();
38  return isDefined;
39  }
40 
41 
42  void cxios_set_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, const char * operation, int operation_size)
43  {
44  std::string operation_str;
45  if (!cstr2string(operation, operation_size, operation_str)) return;
46  CTimer::get("XIOS").resume();
47  reduce_domain_to_scalar_hdl->operation.fromString(operation_str);
48  CTimer::get("XIOS").suspend();
49  }
50 
51  void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char * operation, int operation_size)
52  {
53  CTimer::get("XIOS").resume();
54  if (!string_copy(reduce_domain_to_scalar_hdl->operation.getInheritedStringValue(), operation, operation_size))
55  ERROR("void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char * operation, int operation_size)", << "Input string is too short");
56  CTimer::get("XIOS").suspend();
57  }
58 
59  bool cxios_is_defined_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
60  {
61  CTimer::get("XIOS").resume();
62  bool isDefined = reduce_domain_to_scalar_hdl->operation.hasInheritedValue();
63  CTimer::get("XIOS").suspend();
64  return isDefined;
65  }
66 }
void cxios_set_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, const char *operation, int operation_size)
virtual void fromString(const StdString &str)
bool cxios_is_defined_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
xios::CReduceDomainToScalar * reduce_domain_to_scalar_Ptr
bool string_copy(const std::string &str, char *cstr, int cstr_size)
Definition: icutil.hpp:32
void cxios_get_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool *local)
bool cxios_is_defined_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl)
void cxios_set_reduce_domain_to_scalar_local(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, bool local)
void cxios_get_reduce_domain_to_scalar_operation(reduce_domain_to_scalar_Ptr reduce_domain_to_scalar_hdl, char *operation, int operation_size)
#define ERROR(id, x)
Definition: exception.hpp:73
bool cstr2string(const char *cstr, int cstr_size, std::string &str)
Definition: icutil.hpp:14