source: XIOS/trunk/src/buffer_out.hpp @ 539

Last change on this file since 539 was 501, checked in by ymipsl, 10 years ago

Add licence copyright to all file ond directory src using the command :
svn propset -R copyright -F header_licence src

XIOS is now officialy under CeCILL licence

YM

  • 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.1 KB
Line 
1#ifndef __BUFFER_OUT_HPP__
2#define __BUFFER_OUT_HPP__
3
4
5#include "xmlioserver_spl.hpp"
6
7namespace xios
8{
9 
10    class CBufferOut
11    {
12   
13      public:
14     
15      CBufferOut(size_t size) ;
16      CBufferOut(void) ;
17      CBufferOut(void* buffer,size_t size) ;
18
19      void realloc(size_t size) ;
20      void realloc(void* buffer,size_t size) ;
21     
22      template<class T>
23      bool put(const T& data) ;
24
25      template<class T>
26      bool put(const T* data, size_t n) ;
27
28   
29      template<class T>
30      bool advance(size_t n) ;
31
32      bool advance(size_t n) ;
33     
34       
35 
36      template<class T>
37      bool put_template(const T& data) ;
38
39      template<class T>
40      bool put_template(const T* data, size_t n) ;
41
42      template<class T>
43      bool advance_template(size_t n) ;
44     
45      void* ptr(void) ;
46           
47      size_t remain(void) ;
48      size_t count(void) ;
49      size_t size(void) ;
50                           
51      ~CBufferOut() ;
52       char* begin ;
53       char* current ;
54       char* end;
55       size_t count_ ;
56       size_t size_ ;
57       bool own ; 
58    } ;
59   
60
61}
62
63//#include "buffer_out_impl.hpp"
64
65
66#endif
Note: See TracBrowser for help on using the repository browser.