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

Last change on this file since 347 was 347, checked in by ymipsl, 12 years ago
  • Supress lot of shared_ptr
  • instrument code for vampir-trace and timer diagnostic

YM

  • Property svn:eol-style set to native
File size: 8.7 KB
RevLine 
[325]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"
[347]12#include "timer.hpp"
[325]13
14extern "C"
15{
[345]16  typedef xios::CFileGroup*  filegroup_Ptr;
[325]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;
[347]22     CTimer::get("XIOS").resume();
[325]23    filegroup_hdl->description.setValue(description_str);
24    filegroup_hdl->sendAttributToServer(filegroup_hdl->description);
[347]25     CTimer::get("XIOS").suspend();
[325]26  }
27 
28  void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)
29  {
[347]30     CTimer::get("XIOS").resume();
[325]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");
[347]33     CTimer::get("XIOS").suspend();
[325]34  }
35 
36 
37  void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled)
38  {
[347]39     CTimer::get("XIOS").resume();
[325]40    filegroup_hdl->enabled.setValue(enabled);
41    filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled);
[347]42     CTimer::get("XIOS").suspend();
[325]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;
[347]55     CTimer::get("XIOS").resume();
[325]56    filegroup_hdl->group_ref.setValue(group_ref_str);
57    filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref);
[347]58     CTimer::get("XIOS").suspend();
[325]59  }
60 
61  void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)
62  {
[347]63     CTimer::get("XIOS").resume();
[325]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");
[347]66     CTimer::get("XIOS").suspend();
[325]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;
[347]74     CTimer::get("XIOS").resume();
[325]75    filegroup_hdl->name.setValue(name_str);
76    filegroup_hdl->sendAttributToServer(filegroup_hdl->name);
[347]77     CTimer::get("XIOS").suspend();
[325]78  }
79 
80  void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)
81  {
[347]82     CTimer::get("XIOS").resume();
[325]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");
[347]85     CTimer::get("XIOS").suspend();
[325]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;
[347]93     CTimer::get("XIOS").resume();
[325]94    filegroup_hdl->name_suffix.setValue(name_suffix_str);
95    filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix);
[347]96     CTimer::get("XIOS").suspend();
[325]97  }
98 
99  void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)
100  {
[347]101     CTimer::get("XIOS").resume();
[325]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");
[347]104     CTimer::get("XIOS").suspend();
[325]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;
[347]112     CTimer::get("XIOS").resume();
[325]113    filegroup_hdl->output_freq.setValue(output_freq_str);
114    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq);
[347]115     CTimer::get("XIOS").suspend();
[325]116  }
117 
118  void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)
119  {
[347]120     CTimer::get("XIOS").resume();
[325]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");
[347]123     CTimer::get("XIOS").suspend();
[325]124  }
125 
126 
127  void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level)
128  {
[347]129     CTimer::get("XIOS").resume();
[325]130    filegroup_hdl->output_level.setValue(output_level);
131    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level);
[347]132     CTimer::get("XIOS").suspend();
[325]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 
[336]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;
[347]145     CTimer::get("XIOS").resume();
[336]146    filegroup_hdl->par_access.setValue(par_access_str);
147    filegroup_hdl->sendAttributToServer(filegroup_hdl->par_access);
[347]148     CTimer::get("XIOS").suspend();
[336]149  }
150 
151  void cxios_get_filegroup_par_access(filegroup_Ptr filegroup_hdl, char * par_access, int par_access_size)
152  {
[347]153     CTimer::get("XIOS").resume();
[336]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");
[347]156     CTimer::get("XIOS").suspend();
[336]157  }
158 
159 
[325]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;
[347]164     CTimer::get("XIOS").resume();
[325]165    filegroup_hdl->split_freq.setValue(split_freq_str);
166    filegroup_hdl->sendAttributToServer(filegroup_hdl->split_freq);
[347]167     CTimer::get("XIOS").suspend();
[325]168  }
169 
170  void cxios_get_filegroup_split_freq(filegroup_Ptr filegroup_hdl, char * split_freq, int split_freq_size)
171  {
[347]172     CTimer::get("XIOS").resume();
[325]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");
[347]175     CTimer::get("XIOS").suspend();
[325]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;
[347]183     CTimer::get("XIOS").resume();
[325]184    filegroup_hdl->sync_freq.setValue(sync_freq_str);
185    filegroup_hdl->sendAttributToServer(filegroup_hdl->sync_freq);
[347]186     CTimer::get("XIOS").suspend();
[325]187  }
188 
189  void cxios_get_filegroup_sync_freq(filegroup_Ptr filegroup_hdl, char * sync_freq, int sync_freq_size)
190  {
[347]191     CTimer::get("XIOS").resume();
[325]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");
[347]194     CTimer::get("XIOS").suspend();
[325]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;
[347]202     CTimer::get("XIOS").resume();
[325]203    filegroup_hdl->type.setValue(type_str);
204    filegroup_hdl->sendAttributToServer(filegroup_hdl->type);
[347]205     CTimer::get("XIOS").suspend();
[325]206  }
207 
208  void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)
209  {
[347]210     CTimer::get("XIOS").resume();
[325]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");
[347]213     CTimer::get("XIOS").suspend();
[325]214  }
215 
216 
217 
218}
Note: See TracBrowser for help on using the repository browser.