source: XIOS/trunk/src/cxios.hpp @ 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
File size: 1.8 KB
Line 
1#ifndef __XIOS_HPP__
2#define __XIOS_HPP__
3
4#include "xios_spl.hpp"
5#include "mpi.hpp"
6
7namespace xios
8{
9  /*!
10  \class CXios
11  */
12  class CXios
13  {
14    public:
15     static void initialize(void) ;
16     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ;
17     static void initServerSide(void) ;
18     static void clientFinalize(void) ;
19     static void parseFile(const string& filename) ;
20
21     template <typename T>
22     static T getin(const string& id,const T& defaultValue) ;
23
24     template <typename T>
25     static T getin(const string& id) ;
26
27    public:
28     static string rootFile ; //!< Configuration filename
29     static string xiosCodeId ; //!< Identity for XIOS
30     static string clientFile; //!< Filename template for client
31     static string serverFile; //!< Filename template for server
32
33     static bool isClient ; //!< Check if xios is client
34     static bool isServer ; //!< Check if xios is server
35
36     static MPI_Comm globalComm ; //!< Global communicator
37
38     static bool printLogs2Files; //!< Printing out logs into files
39     static bool usingOasis ; //!< Using Oasis
40     static bool usingServer ; //!< Using server (server mode)
41     static double bufferServerFactorSize ; //!< Factor helps tune buffer size
42     static double defaultBufferServerFactorSize ; //!< Default factor value
43     static bool isOptPerformance; //!< Check if buffer size is for performance (as large as possible)
44
45    public:
46     //! Setting xios to use server mode
47     static void setUsingServer();
48
49     //! Setting xios NOT to use server mode
50     static void setNotUsingServer();
51
52     //! Initialize server (if any)
53     static  void initServer();
54
55    private:
56      //! Parse only Xios part of configuration file
57      static void parseXiosConfig();
58  } ;
59}
60
61//#include "cxios_impl.hpp"
62#endif // __XIOS_HPP__
Note: See TracBrowser for help on using the repository browser.