source: XIOS/branchs/xios-1.0/src/cxios.hpp @ 799

Last change on this file since 799 was 799, checked in by rlacroix, 7 years ago

Add registry

  • 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.4 KB
Line 
1#ifndef __XIOS_HPP__
2#define __XIOS_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "mpi.hpp"
6#include "registry.hpp"
7
8namespace xios
9{
10  class CXios
11  {
12     public:
13
14     static string rootFile ;
15     static string xiosCodeId ;
16     static string clientFile;
17     static string serverFile;
18
19     static void initialize(void) ;
20
21
22     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ;
23     static void initServerSide(void) ;
24     static void clientFinalize(void) ;
25     static void parseFile(const string& filename) ;
26
27     template <typename T>
28     static T getin(const string& id,const T& defaultValue) ;
29
30     template <typename T>
31     static T getin(const string& id) ;
32
33     static bool isClient ;
34     static bool isServer ;
35
36     static MPI_Comm globalComm ;
37
38     static bool printLogs2Files; //!< Printing out logs into files
39     static bool usingOasis ;
40     static bool usingServer ;
41     static size_t bufferSize ;
42     static size_t defaultBufferSize ;
43     static double bufferServerFactorSize ;
44     static double defaultBufferServerFactorSize ;
45     static CRegistry* globalRegistry ; //!< global registry which is written by the root process of the servers
46
47     public:
48     //! Setting xios to use server mode
49     static void setUsingServer();
50
51     //! Setting xios NOT to use server mode
52     static void setNotUsingServer();
53
54  } ;
55
56}
57
58//#include "cxios_impl.hpp"
59
60
61
62
63
64
65
66
67
68#endif
Note: See TracBrowser for help on using the repository browser.