source: XIOS/trunk/src/buffer_client.hpp @ 591

Last change on this file since 591 was 591, checked in by rlacroix, 9 years ago

Remove leftovers from the XMLIO age.

  • 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: 751 bytes
RevLine 
[300]1#ifndef __BUFFER_CLIENT_HPP__
2#define __BUFFER_CLIENT_HPP__
3
[591]4#include "xios_spl.hpp"
[300]5#include "buffer_out.hpp"
[382]6#include "mpi.hpp"
[509]7#include "cxios.hpp"
[300]8
[335]9namespace xios
[300]10{
[400]11  extern size_t maxRequestSize ;
[509]12
[300]13  class CClientBuffer
14  {
[509]15
[300]16    public:
[509]17
[512]18    CClientBuffer(MPI_Comm intercomm,int serverRank, StdSize bfSize = 0) ;
[300]19    ~CClientBuffer() ;
20    bool isBufferFree(int size) ;
[509]21    CBufferOut*  getBuffer(int size) ;
[300]22    bool checkBuffer(void) ;
23    bool hasPendingRequest(void) ;
[509]24
[300]25    char* buffer[2] ;
26    int remain(void) ;
27
28    int current ;
29    int count ;
30    int bufferSize ;
31    int serverRank ;
32    bool pending ;
[509]33
[317]34    size_t bufferSizeByServer ;
[509]35
[300]36    MPI_Request request ;
[509]37
38    CBufferOut* retBuffer;
[300]39    MPI_Comm interComm ;
40  } ;
41
42}
43
44#endif
45
Note: See TracBrowser for help on using the repository browser.