New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
icfilegroup_attr.cpp in vendors/XIOS/current/src/interface/c_attr – NEMO

source: vendors/XIOS/current/src/interface/c_attr/icfilegroup_attr.cpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 8.7 KB
Line 
1/* ************************************************************************** *
2 *               Interface auto generated - do not modify                   *
3 * ************************************************************************** */
4
5#include <boost/multi_array.hpp>
6#include <boost/shared_ptr.hpp>
7#include "xmlioserver.hpp"
8#include "attribute_template_impl.hpp"
9#include "object_template_impl.hpp"
10#include "group_template_impl.hpp"
11#include "icutil.hpp"
12#include "timer.hpp"
13
14extern "C"
15{
16  typedef xios::CFileGroup*  filegroup_Ptr;
17 
18  void cxios_set_filegroup_description(filegroup_Ptr filegroup_hdl, const char * description, int description_size)
19  {
20    std::string description_str;
21    if(!cstr2string(description, description_size, description_str)) return;
22     CTimer::get("XIOS").resume();
23    filegroup_hdl->description.setValue(description_str);
24    filegroup_hdl->sendAttributToServer(filegroup_hdl->description);
25     CTimer::get("XIOS").suspend();
26  }
27 
28  void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)
29  {
30     CTimer::get("XIOS").resume();
31    if(!string_copy(filegroup_hdl->description.getValue(),description , description_size))
32      ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", <<"Input string is to short");
33     CTimer::get("XIOS").suspend();
34  }
35 
36 
37  void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled)
38  {
39     CTimer::get("XIOS").resume();
40    filegroup_hdl->enabled.setValue(enabled);
41    filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled);
42     CTimer::get("XIOS").suspend();
43  }
44 
45  void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled)
46  {
47    *enabled = filegroup_hdl->enabled.getValue();
48  }
49 
50 
51  void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size)
52  {
53    std::string group_ref_str;
54    if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return;
55     CTimer::get("XIOS").resume();
56    filegroup_hdl->group_ref.setValue(group_ref_str);
57    filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref);
58     CTimer::get("XIOS").suspend();
59  }
60 
61  void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)
62  {
63     CTimer::get("XIOS").resume();
64    if(!string_copy(filegroup_hdl->group_ref.getValue(),group_ref , group_ref_size))
65      ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short");
66     CTimer::get("XIOS").suspend();
67  }
68 
69 
70  void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size)
71  {
72    std::string name_str;
73    if(!cstr2string(name, name_size, name_str)) return;
74     CTimer::get("XIOS").resume();
75    filegroup_hdl->name.setValue(name_str);
76    filegroup_hdl->sendAttributToServer(filegroup_hdl->name);
77     CTimer::get("XIOS").suspend();
78  }
79 
80  void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)
81  {
82     CTimer::get("XIOS").resume();
83    if(!string_copy(filegroup_hdl->name.getValue(),name , name_size))
84      ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short");
85     CTimer::get("XIOS").suspend();
86  }
87 
88 
89  void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size)
90  {
91    std::string name_suffix_str;
92    if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return;
93     CTimer::get("XIOS").resume();
94    filegroup_hdl->name_suffix.setValue(name_suffix_str);
95    filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix);
96     CTimer::get("XIOS").suspend();
97  }
98 
99  void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)
100  {
101     CTimer::get("XIOS").resume();
102    if(!string_copy(filegroup_hdl->name_suffix.getValue(),name_suffix , name_suffix_size))
103      ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short");
104     CTimer::get("XIOS").suspend();
105  }
106 
107 
108  void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, const char * output_freq, int output_freq_size)
109  {
110    std::string output_freq_str;
111    if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return;
112     CTimer::get("XIOS").resume();
113    filegroup_hdl->output_freq.setValue(output_freq_str);
114    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq);
115     CTimer::get("XIOS").suspend();
116  }
117 
118  void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)
119  {
120     CTimer::get("XIOS").resume();
121    if(!string_copy(filegroup_hdl->output_freq.getValue(),output_freq , output_freq_size))
122      ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short");
123     CTimer::get("XIOS").suspend();
124  }
125 
126 
127  void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level)
128  {
129     CTimer::get("XIOS").resume();
130    filegroup_hdl->output_level.setValue(output_level);
131    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level);
132     CTimer::get("XIOS").suspend();
133  }
134 
135  void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level)
136  {
137    *output_level = filegroup_hdl->output_level.getValue();
138  }
139 
140 
141  void cxios_set_filegroup_par_access(filegroup_Ptr filegroup_hdl, const char * par_access, int par_access_size)
142  {
143    std::string par_access_str;
144    if(!cstr2string(par_access, par_access_size, par_access_str)) return;
145     CTimer::get("XIOS").resume();
146    filegroup_hdl->par_access.setValue(par_access_str);
147    filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access);
148     CTimer::get("XIOS").suspend();
149  }
150 
151  void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)
152  {
153     CTimer::get("XIOS").resume();
154    if(!string_copy(filegroup_hdl->par_access.getValue(),par_access , par_access_size))
155      ERROR("void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)", <<"Input string is to short");
156     CTimer::get("XIOS").suspend();
157  }
158 
159 
160  void cxios_set_filegroup_split_freq(filegroup_Ptr filegroup_hdl, const char * split_freq, int split_freq_size)
161  {
162    std::string split_freq_str;
163    if(!cstr2string(split_freq, split_freq_size, split_freq_str)) return;
164     CTimer::get("XIOS").resume();
165    filegroup_hdl->split_freq.setValue(split_freq_str);
166    filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq);
167     CTimer::get("XIOS").suspend();
168  }
169 
170  void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)
171  {
172     CTimer::get("XIOS").resume();
173    if(!string_copy(filegroup_hdl->split_freq.getValue(),split_freq , split_freq_size))
174      ERROR("void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)", <<"Input string is to short");
175     CTimer::get("XIOS").suspend();
176  }
177 
178 
179  void cxios_set_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, const char * sync_freq, int sync_freq_size)
180  {
181    std::string sync_freq_str;
182    if(!cstr2string(sync_freq, sync_freq_size, sync_freq_str)) return;
183     CTimer::get("XIOS").resume();
184    filegroup_hdl->sync_freq.setValue(sync_freq_str);
185    filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq);
186     CTimer::get("XIOS").suspend();
187  }
188 
189  void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)
190  {
191     CTimer::get("XIOS").resume();
192    if(!string_copy(filegroup_hdl->sync_freq.getValue(),sync_freq , sync_freq_size))
193      ERROR("void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)", <<"Input string is to short");
194     CTimer::get("XIOS").suspend();
195  }
196 
197 
198  void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size)
199  {
200    std::string type_str;
201    if(!cstr2string(type, type_size, type_str)) return;
202     CTimer::get("XIOS").resume();
203    filegroup_hdl->type.setValue(type_str);
204    filegroup_hdl->sendAttributToServer(filegroup_hdl->type);
205     CTimer::get("XIOS").suspend();
206  }
207 
208  void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)
209  {
210     CTimer::get("XIOS").resume();
211    if(!string_copy(filegroup_hdl->type.getValue(),type , type_size))
212      ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short");
213     CTimer::get("XIOS").suspend();
214  }
215 
216 
217 
218}
Note: See TracBrowser for help on using the repository browser.