source: XIOS/trunk/src/cxios.hpp @ 497

Last change on this file since 497 was 497, checked in by mhnguyen, 10 years ago

Making a minor change of info output

+) Use a more beautiful format for name of info output file
+) Do a same thing to error file

Test
+) On curie
+) Passed

File size: 1.2 KB
Line 
1#ifndef __XIOS_HPP__
2#define __XIOS_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "mpi.hpp"
6
7namespace xios
8{
9  class CXios
10  {
11     public:
12
13     static string rootFile ;
14     static string xiosCodeId ;
15     static string infoFile;
16     static string errorFile;
17
18     static void initialize(void) ;
19
20
21     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ;
22     static void initServerSide(void) ;
23     static void clientFinalize(void) ;
24     static void parseFile(const string& filename) ;
25
26     template <typename T>
27     static T getin(const string& id,const T& defaultValue) ;
28
29     template <typename T>
30     static T getin(const string& id) ;
31
32     static bool isClient ;
33     static bool isServer ;
34
35     static MPI_Comm globalComm ;
36
37     static bool printInfo2File;
38     static bool usingOasis ;
39     static bool usingServer ;
40     static size_t bufferSize ;
41     static size_t defaultBufferSize ;
42     static double bufferServerFactorSize ;
43     static double defaultBufferServerFactorSize ;
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  } ;
53
54}
55
56//#include "cxios_impl.hpp"
57
58
59
60
61
62
63
64
65
66#endif
Note: See TracBrowser for help on using the repository browser.