source: XIOS/trunk/src/buffer_server.hpp @ 509

Last change on this file since 509 was 509, checked in by mhnguyen, 7 years ago

Implementing buffer size auto-detection for mode client -server

+) Process xml tree in client side then send all the information to server
+) Only information enabled fields in enabled files are sent to server
+) Some important change in structure of code which must be refactored

Test
+) On Curie
+) Only mode client-server
+) Passed for all tests

  • 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: 599 bytes
Line 
1#ifndef __BUFFER_SERVER_HPP__
2#define __BUFFER_SERVER_HPP__
3
4#include "xmlioserver_spl.hpp"
5#include "buffer.hpp"
6#include "mpi.hpp"
7#include "cxios.hpp"
8
9namespace xios
10{
11
12  class CServerBuffer
13  {
14
15    public:
16
17    CServerBuffer(StdSize bufSize = CXios::bufferSize) ;
18    ~CServerBuffer() ;
19    char* buffer ;
20
21    bool isBufferFree(size_t count) ;
22    void* getBuffer(size_t count) ;
23    void freeBuffer(size_t count) ;
24
25    size_t first ;   // first occupied element
26    size_t current ; // first free element
27    size_t end ;
28    size_t size ;
29    size_t bufferSizeByClient ;
30  } ;
31
32
33}
34
35#endif
Note: See TracBrowser for help on using the repository browser.