source: XIOS/trunk/src/interface/c_attr/icfilegroup_attr.cpp @ 415

Last change on this file since 415 was 415, checked in by ymipsl, 11 years ago

Add grid mask attribute

YM

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