source: XIOS/trunk/src/generate_fortran_interface.cpp @ 631

Last change on this file since 631 was 591, checked in by rlacroix, 9 years ago

Remove leftovers from the XMLIO age.

  • Property copyright set to
    Software name : XIOS (Xml I/O Server)
    http://forge.ipsl.jussieu.fr/ioserver
    Creation date : January 2009
    Licence : CeCCIL version2
    see license file in root directory : Licence_CeCILL_V2-en.txt
    or http://www.cecill.info/licences/Licence_CeCILL_V2-en.html
    Holder : CEA/LSCE (Laboratoire des Sciences du CLimat et de l'Environnement)
    CNRS/IPSL (Institut Pierre Simon Laplace)
    Project Manager : Yann Meurdesoif
    yann.meurdesoif@cea.fr
  • Property svn:eol-style set to native
File size: 5.4 KB
RevLine 
[591]1#include "xios.hpp"
[352]2#include "generate_interface.hpp"
[313]3#include "indent.hpp"
[352]4#include "attribute_template.hpp"
5#include "object_template.hpp"
6#include "group_template.hpp"
[369]7#include "context.hpp"
8#include "file.hpp"
[313]9
10int main (int argc, char ** argv, char ** UNUSED (env))
11{
[549]12//  string path="./src/attr_interface/";
13  string path="./interface/";
14
15  CContext* context=CContext::create("interface");
16  CCalendarWrapper calendarWrapper;
17  CAxis axis;
18  CAxisGroup axisgroup;
[313]19  CField field;
[549]20  CFieldGroup fieldgroup;
[472]21  CVariable variable;
[549]22  CVariableGroup variablegroup;
23  CDomain domain;
24  CDomainGroup domaingroup;
25  CGrid grid;
26  CGridGroup gridgroup;
27
[313]28  CFile afile;
29  CFileGroup filegroup;
[549]30
31  ostringstream oss;
[313]32  ofstream file;
[549]33
34  file.open((path+"axis_interface_attr.F90").c_str());
35  axis.generateFortran2003Interface(file);
[313]36  file.close();
[549]37
38  file.open((path+"icaxis_attr.cpp").c_str());
39  axis.generateCInterface(file);
[313]40  file.close();
[549]41
42  file.open((path+"iaxis_attr.F90").c_str());
43  axis.generateFortranInterface(file);
[313]44  file.close();
[549]45
46  file.open((path+"axisgroup_interface_attr.F90").c_str());
47  axisgroup.generateFortran2003Interface(file);
[313]48  file.close();
[549]49
50  file.open((path+"icaxisgroup_attr.cpp").c_str());
51  axisgroup.generateCInterface(file);
[313]52  file.close();
[549]53
54  file.open((path+"iaxisgroup_attr.F90").c_str());
55  axisgroup.generateFortranInterface(file);
[313]56  file.close();
[549]57
58  file.open((path+"domain_interface_attr.F90").c_str());
59  domain.generateFortran2003Interface(file);
[313]60  file.close();
[549]61
62  file.open((path+"icdomain_attr.cpp").c_str());
63  domain.generateCInterface(file);
[313]64  file.close();
[549]65
66  file.open((path+"idomain_attr.F90").c_str());
67  domain.generateFortranInterface(file);
[313]68  file.close();
[549]69
70  file.open((path+"domaingroup_interface_attr.F90").c_str());
71  domaingroup.generateFortran2003Interface(file);
[313]72  file.close();
[549]73
74  file.open((path+"icdomaingroup_attr.cpp").c_str());
75  domaingroup.generateCInterface(file);
[313]76  file.close();
[549]77
78  file.open((path+"idomaingroup_attr.F90").c_str());
79  domaingroup.generateFortranInterface(file);
[313]80  file.close();
[549]81
82
83  file.open((path+"grid_interface_attr.F90").c_str());
84  grid.generateFortran2003Interface(file);
[313]85  file.close();
[549]86
87  file.open((path+"icgrid_attr.cpp").c_str());
88  grid.generateCInterface(file);
[313]89  file.close();
[549]90
91  file.open((path+"igrid_attr.F90").c_str());
92  grid.generateFortranInterface(file);
[313]93  file.close();
[549]94
95  file.open((path+"gridgroup_interface_attr.F90").c_str());
96  gridgroup.generateFortran2003Interface(file);
[313]97  file.close();
[549]98
99  file.open((path+"icgridgroup_attr.cpp").c_str());
100  gridgroup.generateCInterface(file);
[313]101  file.close();
[549]102
103  file.open((path+"igridgroup_attr.F90").c_str());
104  gridgroup.generateFortranInterface(file);
[313]105  file.close();
[549]106
107
108  file.open((path+"field_interface_attr.F90").c_str());
109  field.generateFortran2003Interface(file);
[313]110  file.close();
[549]111
112  file.open((path+"icfield_attr.cpp").c_str());
113  field.generateCInterface(file);
[313]114  file.close();
[549]115
116  file.open((path+"ifield_attr.F90").c_str());
117  field.generateFortranInterface(file);
[313]118  file.close();
[549]119
120  file.open((path+"fieldgroup_interface_attr.F90").c_str());
121  fieldgroup.generateFortran2003Interface(file);
[313]122  file.close();
[549]123
124  file.open((path+"icfieldgroup_attr.cpp").c_str());
125  fieldgroup.generateCInterface(file);
[313]126  file.close();
[549]127
128  file.open((path+"ifieldgroup_attr.F90").c_str());
129  fieldgroup.generateFortranInterface(file);
[313]130  file.close();
131
132
[549]133
134  file.open((path+"variable_interface_attr.F90").c_str());
135  variable.generateFortran2003Interface(file);
[472]136  file.close();
[549]137
138  file.open((path+"icvariable_attr.cpp").c_str());
139  variable.generateCInterface(file);
[472]140  file.close();
[549]141
142  file.open((path+"ivariable_attr.F90").c_str());
143  variable.generateFortranInterface(file);
[472]144  file.close();
[549]145
146  file.open((path+"variablegroup_interface_attr.F90").c_str());
147  variablegroup.generateFortran2003Interface(file);
[472]148  file.close();
[549]149
150  file.open((path+"icvariablegroup_attr.cpp").c_str());
151  variablegroup.generateCInterface(file);
[472]152  file.close();
[549]153
154  file.open((path+"ivariablegroup_attr.F90").c_str());
155  variablegroup.generateFortranInterface(file);
[472]156  file.close();
157
158
159
[549]160  file.open((path+"file_interface_attr.F90").c_str());
161  afile.generateFortran2003Interface(file);
[313]162  file.close();
[549]163
164  file.open((path+"icfile_attr.cpp").c_str());
165  afile.generateCInterface(file);
[313]166  file.close();
[549]167
168  file.open((path+"ifile_attr.F90").c_str());
169  afile.generateFortranInterface(file);
[313]170  file.close();
[549]171
172  file.open((path+"filegroup_interface_attr.F90").c_str());
173  filegroup.generateFortran2003Interface(file);
[313]174  file.close();
[549]175
176  file.open((path+"icfilegroup_attr.cpp").c_str());
177  filegroup.generateCInterface(file);
[313]178  file.close();
[549]179
180  file.open((path+"ifilegroup_attr.F90").c_str());
181  filegroup.generateFortranInterface(file);
[313]182  file.close();
[549]183
184
185  file.open((path+"calendar_wrapper_interface_attr.F90").c_str());
186  calendarWrapper.generateFortran2003Interface(file);
[313]187  file.close();
[549]188
189  file.open((path+"iccalendar_wrapper_attr.cpp").c_str());
190  calendarWrapper.generateCInterface(file);
[313]191  file.close();
[549]192
193  file.open((path+"icalendar_wrapper_attr.F90").c_str());
194  calendarWrapper.generateFortranInterface(file);
[313]195  file.close();
[549]196
197
198  file.open((path+"context_interface_attr.F90").c_str());
199  context->generateFortran2003Interface(file);
200  file.close();
201
202  file.open((path+"iccontext_attr.cpp").c_str());
203  context->generateCInterface(file);
204  file.close();
205
206  file.open((path+"icontext_attr.F90").c_str());
207  context->generateFortranInterface(file);
208  file.close();
209
[313]210}
Note: See TracBrowser for help on using the repository browser.