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

Last change on this file since 490 was 490, checked in by mhnguyen, 8 years ago

Implementing print output in seperate files

+) Add an option to write information into standard output or into files,
each of which is created by a process
+) Add a new file for global data (constant, value macro, etc)
+) Do a minor change in how to generate doxygen

Test
+) On Curie, with two modes: only client (connected) and client-server
+) All tests passed, each client prints out its info in a seperate file

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
17     static void initialize(void) ;
18
19
20     static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ;
21     static void initServerSide(void) ;
22     static void clientFinalize(void) ;
23     static void parseFile(const string& filename) ;
24
25     template <typename T>
26     static T getin(const string& id,const T& defaultValue) ;
27
28     template <typename T>
29     static T getin(const string& id) ;
30
31//     static void openFileInfo(const StdString& fileName);
32//     static void closeFileInfo();
33
34     static bool isClient ;
35     static bool isServer ;
36
37     static MPI_Comm globalComm ;
38
39     static bool printInfo2File;
40     static bool usingOasis ;
41     static bool usingServer ;
42     static size_t bufferSize ;
43     static size_t defaultBufferSize ;
44     static double bufferServerFactorSize ;
45     static double defaultBufferServerFactorSize ;
46
47     private:
48//     static StdOFStream infoFileStream_;
49
50  } ;
51
52}
53
54//#include "cxios_impl.hpp"
55
56
57
58
59
60
61
62
63
64#endif
Note: See TracBrowser for help on using the repository browser.