source: XIOS/dev/dev_ym/XIOS_COUPLING/src/type/message.hpp @ 1918

Last change on this file since 1918 was 1918, checked in by ymipsl, 4 years ago

Big update on on going work related to data distribution and transfer between clients and servers.

  • move all related file into distribution directorie
  • implement the concept of data "View"
  • implement the concept of "connector" which make the data transfer between 2 differents "Views"

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: 871 bytes
Line 
1#ifndef __MESSAGE_HPP__
2#define __MESSAGE_HPP__
3
4#include "xios_spl.hpp"
5#include "exception.hpp"
6#include "base_type.hpp"
7#include "buffer_in.hpp"
8#include "buffer_out.hpp"
9
10
11namespace xios
12{
13
14  class CMessage
15  {
16    public:
17   
18    CMessage(void) ;
19    CMessage(const CMessage& Msg)  ;
20   
21    list<CBaseType*> typeList ;
22    virtual bool fromBuffer(CBufferIn& buffer) const;
23    virtual bool toBuffer(CBufferOut& buffer) const;
24    virtual size_t size(void) const;
25 
26    CMessage& push(const CBaseType& type) ; 
27//    CMessage& push(CBaseType& type) ;
28    void clear(void) ; 
29    ~CMessage() ;   
30  } ;
31 
32  CBufferOut& operator<<(CBufferOut& buffer, CMessage& msg) ;
33  CBufferIn& operator>>(CBufferIn& buffer, CMessage& msg) ;
34
35//  CMessage& operator<<(CMessage& msg,CBaseType& type) ;
36  CMessage& operator<<(CMessage& msg,const CBaseType& type) ;
37 
38}
39
40#endif
41
Note: See TracBrowser for help on using the repository browser.