source: XIOS3/trunk/src/xml_parser.hpp

Last change on this file was 2614, checked in by ymipsl, 4 months ago
  • Permit now usage of contex_group into xml file for more modularity
  • Src path is now relative to parent file, except if path is an absolute path

YM

  • 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
File size: 1.2 KB
RevLine 
[591]1#ifndef __XIOS_CXMLParser__
2#define __XIOS_CXMLParser__
[219]3
[591]4/// XIOS headers ///
5#include "xios_spl.hpp"
[278]6#include "exception.hpp"
[1622]7#include "cxios.hpp"
[219]8#include "xml_node.hpp"
9
[278]10
[335]11namespace xios
[219]12{
13   namespace xml
14   {
15      /// ////////////////////// Déclarations ////////////////////// ///
16      class CXMLParser
17      {
18         public :
19
[509]20            static void ParseFile(const StdString & filename, const std::set<StdString>& parseList = std::set<StdString>());
[219]21            static void ParseString(const StdString & xmlContent);
[509]22            static void ParseStream(StdIStream & stream, const string& fluxId, const std::set<StdString>& parseList);
[2614]23           
24            template <class T> 
25            static void ParseInclude(const string& fluxId, T & object);
26 
[278]27            template <class T>
[2614]28            static void ParseInclude(const string& fluxId, T & object, const std::set<StdString>& parseContextList);
[219]29
[2614]30            static string updateIncludePath(const string& filePath) ;
31
32         private:
33            static string currentIncludePath_ ; // current include path for XML file
[219]34      }; //class CXMLParser
[2614]35
[219]36   }// namespace xml
[335]37} // namespace xios
[219]38
[591]39#endif // __XIOS_CXMLParser__
Note: See TracBrowser for help on using the repository browser.