source: XIOS/trunk/src/fortran_attr_interface/icfilegroup_attr.cpp @ 314

Last change on this file since 314 was 314, checked in by ymipsl, 12 years ago

Removing obsolete files and some cleaning...

YM

  • Property svn:eol-style set to native
File size: 5.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_impl.hpp"
9#include "object_template_impl.hpp"
10#include "group_template_impl.hpp"
11#include "icutil.hpp"
12
13extern "C"
14{
15  typedef xmlioserver::tree::CFileGroup*  filegroup_Ptr;
16 
17  void cxios_set_filegroup_description(filegroup_Ptr filegroup_hdl, const char * description, int description_size)
18  {
19    std::string description_str;
20    if(!cstr2string(description, description_size, description_str)) return;
21    filegroup_hdl->description.setValue(description_str);
22    filegroup_hdl->sendAttributToServer(filegroup_hdl->description);
23  }
24 
25  void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)
26  {
27    if(!string_copy(filegroup_hdl->description.getValue(),description , description_size))
28      ERROR("void cxios_get_filegroup_description(filegroup_Ptr filegroup_hdl, char * description, int description_size)", <<"Input string is to short");
29  }
30 
31 
32  void cxios_set_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool enabled)
33  {
34    filegroup_hdl->enabled.setValue(enabled);
35    filegroup_hdl->sendAttributToServer(filegroup_hdl->enabled);
36  }
37 
38  void cxios_get_filegroup_enabled(filegroup_Ptr filegroup_hdl, bool* enabled)
39  {
40    *enabled = filegroup_hdl->enabled.getValue();
41  }
42 
43 
44  void cxios_set_filegroup_group_ref(filegroup_Ptr filegroup_hdl, const char * group_ref, int group_ref_size)
45  {
46    std::string group_ref_str;
47    if(!cstr2string(group_ref, group_ref_size, group_ref_str)) return;
48    filegroup_hdl->group_ref.setValue(group_ref_str);
49    filegroup_hdl->sendAttributToServer(filegroup_hdl->group_ref);
50  }
51 
52  void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)
53  {
54    if(!string_copy(filegroup_hdl->group_ref.getValue(),group_ref , group_ref_size))
55      ERROR("void cxios_get_filegroup_group_ref(filegroup_Ptr filegroup_hdl, char * group_ref, int group_ref_size)", <<"Input string is to short");
56  }
57 
58 
59  void cxios_set_filegroup_name(filegroup_Ptr filegroup_hdl, const char * name, int name_size)
60  {
61    std::string name_str;
62    if(!cstr2string(name, name_size, name_str)) return;
63    filegroup_hdl->name.setValue(name_str);
64    filegroup_hdl->sendAttributToServer(filegroup_hdl->name);
65  }
66 
67  void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)
68  {
69    if(!string_copy(filegroup_hdl->name.getValue(),name , name_size))
70      ERROR("void cxios_get_filegroup_name(filegroup_Ptr filegroup_hdl, char * name, int name_size)", <<"Input string is to short");
71  }
72 
73 
74  void cxios_set_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, const char * name_suffix, int name_suffix_size)
75  {
76    std::string name_suffix_str;
77    if(!cstr2string(name_suffix, name_suffix_size, name_suffix_str)) return;
78    filegroup_hdl->name_suffix.setValue(name_suffix_str);
79    filegroup_hdl->sendAttributToServer(filegroup_hdl->name_suffix);
80  }
81 
82  void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)
83  {
84    if(!string_copy(filegroup_hdl->name_suffix.getValue(),name_suffix , name_suffix_size))
85      ERROR("void cxios_get_filegroup_name_suffix(filegroup_Ptr filegroup_hdl, char * name_suffix, int name_suffix_size)", <<"Input string is to short");
86  }
87 
88 
89  void cxios_set_filegroup_output_freq(filegroup_Ptr filegroup_hdl, const char * output_freq, int output_freq_size)
90  {
91    std::string output_freq_str;
92    if(!cstr2string(output_freq, output_freq_size, output_freq_str)) return;
93    filegroup_hdl->output_freq.setValue(output_freq_str);
94    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_freq);
95  }
96 
97  void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)
98  {
99    if(!string_copy(filegroup_hdl->output_freq.getValue(),output_freq , output_freq_size))
100      ERROR("void cxios_get_filegroup_output_freq(filegroup_Ptr filegroup_hdl, char * output_freq, int output_freq_size)", <<"Input string is to short");
101  }
102 
103 
104  void cxios_set_filegroup_output_level(filegroup_Ptr filegroup_hdl, int output_level)
105  {
106    filegroup_hdl->output_level.setValue(output_level);
107    filegroup_hdl->sendAttributToServer(filegroup_hdl->output_level);
108  }
109 
110  void cxios_get_filegroup_output_level(filegroup_Ptr filegroup_hdl, int* output_level)
111  {
112    *output_level = filegroup_hdl->output_level.getValue();
113  }
114 
115 
116  void cxios_set_filegroup_type(filegroup_Ptr filegroup_hdl, const char * type, int type_size)
117  {
118    std::string type_str;
119    if(!cstr2string(type, type_size, type_str)) return;
120    filegroup_hdl->type.setValue(type_str);
121    filegroup_hdl->sendAttributToServer(filegroup_hdl->type);
122  }
123 
124  void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)
125  {
126    if(!string_copy(filegroup_hdl->type.getValue(),type , type_size))
127      ERROR("void cxios_get_filegroup_type(filegroup_Ptr filegroup_hdl, char * type, int type_size)", <<"Input string is to short");
128  }
129 
130 
131 
132}
Note: See TracBrowser for help on using the repository browser.