Last change
on this file since 1454 was
300,
checked in by ymipsl, 13 years ago
|
nouvelle version de developpement de xios
- nouvelle interface fortran
- recodage complet de la couche de communication
- et bien d'autres choses...
YM
|
File size:
578 bytes
|
Line | |
---|
1 | #ifndef __BUFFER_SERVER_HPP__ |
---|
2 | #define __BUFFER_SERVER_HPP__ |
---|
3 | |
---|
4 | #include "xmlioserver_spl.hpp" |
---|
5 | #include "buffer_ym.hpp" |
---|
6 | #include <mpi.h> |
---|
7 | |
---|
8 | namespace xmlioserver |
---|
9 | { |
---|
10 | |
---|
11 | class CServerBuffer |
---|
12 | { |
---|
13 | |
---|
14 | public: |
---|
15 | |
---|
16 | CServerBuffer(void) ; |
---|
17 | ~CServerBuffer() ; |
---|
18 | char* buffer ; |
---|
19 | |
---|
20 | bool isBufferFree(size_t count) ; |
---|
21 | void* getBuffer(size_t count) ; |
---|
22 | void freeBuffer(size_t count) ; |
---|
23 | |
---|
24 | size_t first ; // first occupied element |
---|
25 | size_t current ; // first free element |
---|
26 | size_t end ; |
---|
27 | size_t size ; |
---|
28 | static size_t bufferSizeByClient ; |
---|
29 | } ; |
---|
30 | |
---|
31 | |
---|
32 | } |
---|
33 | |
---|
34 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.