source: XIOS/dev/branch_yushan/src/cxios.hpp @ 1060

Last change on this file since 1060 was 1053, checked in by yushan, 7 years ago

ep_lib namespace specified when netcdf involved

  • 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: 2.1 KB
RevLine 
[300]1#ifndef __XIOS_HPP__
2#define __XIOS_HPP__
3
[591]4#include "xios_spl.hpp"
[382]5#include "mpi.hpp"
[697]6#include "registry.hpp"
[1037]7#ifdef _usingEP
8//#include "ep_declaration.hpp"
9#endif
[300]10
[1037]11
[335]12namespace xios
[300]13{
[512]14  /*!
15  \class CXios
16  */
[300]17  class CXios
18  {
[512]19    public:
[300]20     static void initialize(void) ;
[1053]21     static void initClientSide(const string & codeId, ep_lib::MPI_Comm& localComm, ep_lib::MPI_Comm& returnComm) ;
[300]22     static void initServerSide(void) ;
23     static void clientFinalize(void) ;
[346]24     static void parseFile(const string& filename) ;
[490]25
[300]26     template <typename T>
[311]27     static T getin(const string& id,const T& defaultValue) ;
[490]28
[311]29     template <typename T>
[300]30     static T getin(const string& id) ;
31
[512]32    public:
33     static string rootFile ; //!< Configuration filename
34     static string xiosCodeId ; //!< Identity for XIOS
35     static string clientFile; //!< Filename template for client
36     static string serverFile; //!< Filename template for server
[300]37
[512]38     static bool isClient ; //!< Check if xios is client
39     static bool isServer ; //!< Check if xios is server
[490]40
[512]41     static MPI_Comm globalComm ; //!< Global communicator
[490]42
[523]43     static bool printLogs2Files; //!< Printing out logs into files
[512]44     static bool usingOasis ; //!< Using Oasis
45     static bool usingServer ; //!< Using server (server mode)
[718]46     static double bufferSizeFactor; //!< Factor used to tune the buffer size
47     static const double defaultBufferSizeFactor; //!< Default factor value
[719]48     static StdSize minBufferSize; //!< Minimum buffer size
[512]49     static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible)
[697]50     static CRegistry* globalRegistry ; //!< global registry which is wrote by the root process of the servers
[512]51
52    public:
[499]53     //! Setting xios to use server mode
54     static void setUsingServer();
[490]55
[499]56     //! Setting xios NOT to use server mode
57     static void setNotUsingServer();
[491]58
[512]59     //! Initialize server (if any)
[509]60     static  void initServer();
61
[512]62    private:
63      //! Parse only Xios part of configuration file
[511]64      static void parseXiosConfig();
[300]65  } ;
66}
67
[352]68//#include "cxios_impl.hpp"
[512]69#endif // __XIOS_HPP__
Note: See TracBrowser for help on using the repository browser.