source: XMLIO_V2/dev/dev_rv/src4/xmlio/fortran/icxml_tree.cpp @ 269

Last change on this file since 269 was 269, checked in by hozdoba, 13 years ago
File size: 3.2 KB
Line 
1/* ************************************************************************** *
2 *      Copyright © IPSL/LSCE, XMLIOServer, Avril 2010 - Octobre 2011         *
3 * ************************************************************************** */
4
5#include "icutil.hpp"
6
7extern "C"
8{
9// /////////////////////////////// Définitions ////////////////////////////// //
10
11   // ----------------------- Redéfinition de types ----------------------------
12   
13   typedef void * XAxisPtr  , * XAxisGroupPtr;
14   typedef void * XDomainPtr, * XDomainGroupPtr;
15   typedef void * XGridPtr  , * XGridGroupPtr;
16   typedef void * XFieldPtr , * XFieldGroupPtr;
17   typedef void * XFilePtr  , * XFileGroupPtr;
18   
19   // ----------------------- Ajout d'enfant à un parent -----------------------
20   
21   void xios_xml_tree_add_field(XFieldGroupPtr  parent_, XFieldPtr * child_, const char * child_id, int child_id_size)
22   {
23      std::string child_id_str; 
24      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
25   }
26   
27   void xios_xml_tree_add_grid(XGridGroupPtr   parent_, XGridPtr * child_, const char * child_id, int child_id_size)
28   {
29      std::string child_id_str; 
30      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
31   }
32   
33   void xios_xml_tree_add_file(XFileGroupPtr   parent_, XFilePtr * child_, const char * child_id, int child_id_size)
34   {
35      std::string child_id_str; 
36      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
37   }
38   
39   void xios_xml_tree_add_axis(XAxisGroupPtr   parent_, XAxisPtr * child_, const char * child_id, int child_id_size)
40   {
41      std::string child_id_str; 
42      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
43   }
44   
45   void xios_xml_tree_add_domain(XDomainGroupPtr parent_, XDomainPtr * child_, const char * child_id, int child_id_size) 
46   {
47      std::string child_id_str; 
48      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
49   }
50   
51   
52   void xios_xml_tree_add_fieldtofile(XFilePtr parent_, XFieldPtr * child_, const char * child_id, int child_id_size)
53   {
54      std::string child_id_str; 
55      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
56   }
57   
58   void xios_xml_tree_add_fieldgrouptofile(XFilePtr parent_, XFieldGroupPtr * child_, const char * child_id, int child_id_size)
59   {
60      std::string child_id_str; 
61      if (!cstr2string(child_id, child_id_size, child_id_str)) return; 
62   }
63   
64   
65   // ----------------------- Affichage de l'arborescence ----------------------
66   
67   void xios_xml_tree_show   (const char * filename, int filename_size) 
68   {
69      std::string filename_str; 
70      if (!cstr2string(filename, filename_size, filename_str)) return; 
71   }
72     
73   
74   // ----------------------- Parsing de document xml --------------------------
75   
76   void xios_xml_parse_file  (const char * filename  , int filename_size)
77   {
78      std::string filename_str; 
79      if (!cstr2string(filename, filename_size, filename_str)) return; 
80   }
81   
82   void xios_xml_parse_string(const char * xmlcontent, int xmlcontent_size)
83   {
84      std::string xmlcontent_str; 
85      if (!cstr2string(xmlcontent, xmlcontent_size, xmlcontent_str)) return; 
86   }
87   
88
89
90} // extern "C"
Note: See TracBrowser for help on using the repository browser.