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