source:
XIOS/trunk/src/cxios.hpp
@
490
Last change on this file since 490 was 490, checked in by mhnguyen, 10 years ago | |
---|---|
File size: 1.2 KB |
Rev | Line | |
---|---|---|
[300] | 1 | #ifndef __XIOS_HPP__ |
2 | #define __XIOS_HPP__ | |
3 | ||
4 | #include "xmlioserver_spl.hpp" | |
[382] | 5 | #include "mpi.hpp" |
[300] | 6 | |
[335] | 7 | namespace xios |
[300] | 8 | { |
9 | class CXios | |
10 | { | |
11 | public: | |
[490] | 12 | |
[300] | 13 | static string rootFile ; |
14 | static string xiosCodeId ; | |
[490] | 15 | static string infoFile; |
16 | ||
[300] | 17 | static void initialize(void) ; |
[490] | 18 | |
19 | ||
[300] | 20 | static void initClientSide(const string & codeId, MPI_Comm& localComm, MPI_Comm& returnComm) ; |
21 | static void initServerSide(void) ; | |
22 | static void clientFinalize(void) ; | |
[346] | 23 | static void parseFile(const string& filename) ; |
[490] | 24 | |
[300] | 25 | template <typename T> |
[311] | 26 | static T getin(const string& id,const T& defaultValue) ; |
[490] | 27 | |
[311] | 28 | template <typename T> |
[300] | 29 | static T getin(const string& id) ; |
30 | ||
[490] | 31 | // static void openFileInfo(const StdString& fileName); |
32 | // static void closeFileInfo(); | |
33 | ||
[300] | 34 | static bool isClient ; |
35 | static bool isServer ; | |
36 | ||
[490] | 37 | static MPI_Comm globalComm ; |
38 | ||
39 | static bool printInfo2File; | |
[300] | 40 | static bool usingOasis ; |
[490] | 41 | static bool usingServer ; |
[317] | 42 | static size_t bufferSize ; |
43 | static size_t defaultBufferSize ; | |
44 | static double bufferServerFactorSize ; | |
45 | static double defaultBufferServerFactorSize ; | |
[490] | 46 | |
47 | private: | |
48 | // static StdOFStream infoFileStream_; | |
49 | ||
[300] | 50 | } ; |
[352] | 51 | |
[300] | 52 | } |
53 | ||
[352] | 54 | //#include "cxios_impl.hpp" |
[300] | 55 | |
56 | ||
57 | ||
58 | ||
59 | ||
60 | ||
61 | ||
62 | ||
63 | ||
64 | #endif |
Note: See TracBrowser
for help on using the repository browser.