source: XIOS/trunk/src/fortran_attr_interface/iccontext_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: 3.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::CContext*  context_Ptr;
16 
17  void cxios_set_context_calendar_type(context_Ptr context_hdl, const char * calendar_type, int calendar_type_size)
18  {
19    std::string calendar_type_str;
20    if(!cstr2string(calendar_type, calendar_type_size, calendar_type_str)) return;
21    context_hdl->calendar_type.setValue(calendar_type_str);
22    context_hdl->sendAttributToServer(context_hdl->calendar_type);
23  }
24 
25  void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size)
26  {
27    if(!string_copy(context_hdl->calendar_type.getValue(),calendar_type , calendar_type_size))
28      ERROR("void cxios_get_context_calendar_type(context_Ptr context_hdl, char * calendar_type, int calendar_type_size)", <<"Input string is to short");
29  }
30 
31 
32  void cxios_set_context_output_dir(context_Ptr context_hdl, const char * output_dir, int output_dir_size)
33  {
34    std::string output_dir_str;
35    if(!cstr2string(output_dir, output_dir_size, output_dir_str)) return;
36    context_hdl->output_dir.setValue(output_dir_str);
37    context_hdl->sendAttributToServer(context_hdl->output_dir);
38  }
39 
40  void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)
41  {
42    if(!string_copy(context_hdl->output_dir.getValue(),output_dir , output_dir_size))
43      ERROR("void cxios_get_context_output_dir(context_Ptr context_hdl, char * output_dir, int output_dir_size)", <<"Input string is to short");
44  }
45 
46 
47  void cxios_set_context_start_date(context_Ptr context_hdl, const char * start_date, int start_date_size)
48  {
49    std::string start_date_str;
50    if(!cstr2string(start_date, start_date_size, start_date_str)) return;
51    context_hdl->start_date.setValue(start_date_str);
52    context_hdl->sendAttributToServer(context_hdl->start_date);
53  }
54 
55  void cxios_get_context_start_date(context_Ptr context_hdl, char * start_date, int start_date_size)
56  {
57    if(!string_copy(context_hdl->start_date.getValue(),start_date , start_date_size))
58      ERROR("void cxios_get_context_start_date(context_Ptr context_hdl, char * start_date, int start_date_size)", <<"Input string is to short");
59  }
60 
61 
62  void cxios_set_context_timestep(context_Ptr context_hdl, const char * timestep, int timestep_size)
63  {
64    std::string timestep_str;
65    if(!cstr2string(timestep, timestep_size, timestep_str)) return;
66    context_hdl->timestep.setValue(timestep_str);
67    context_hdl->sendAttributToServer(context_hdl->timestep);
68  }
69 
70  void cxios_get_context_timestep(context_Ptr context_hdl, char * timestep, int timestep_size)
71  {
72    if(!string_copy(context_hdl->timestep.getValue(),timestep , timestep_size))
73      ERROR("void cxios_get_context_timestep(context_Ptr context_hdl, char * timestep, int timestep_size)", <<"Input string is to short");
74  }
75 
76 
77 
78}
Note: See TracBrowser for help on using the repository browser.