New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
type.hpp in vendors/XIOS/current/src/type – NEMO

source: vendors/XIOS/current/src/type/type.hpp @ 3408

Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago

importing initial XIOS vendor drop

  • Property svn:keywords set to Id
File size: 821 bytes
Line 
1#ifndef __XIOS_TYPE__
2#define __XIOS_TYPE__
3
4#include "xmlioserver_spl.hpp"
5#include "exception.hpp"
6#include "buffer_in.hpp"
7#include "buffer_out.hpp"
8#include "base_type.hpp"
9
10
11namespace xios
12{
13
14  template <typename T> 
15  class CType : public CBaseType
16  {
17    public:
18 
19    CType(void) ;
20    CType(const T& val) ;
21    CType(T& val) ;
22    CType(const CType& type) ;
23
24    ~CType() {} ;
25
26    void fromString(const string& str) ;
27    string toString(void) const;
28   
29    bool fromBuffer(CBufferIn& buffer) ;
30    bool toBuffer(CBufferOut& buffer) const;
31    void destroy(void) ;
32   
33    size_t size(void) const;
34    CBaseType* duplicate(void) const; 
35
36    void checkAccess(void) const;
37    T* ptrValue ;
38   
39    bool clone ;
40    T value ; 
41  } ;
42
43}
44
45#include "type_impl.hpp"
46#include "type_specialisation.hpp"
47
48#endif
Note: See TracBrowser for help on using the repository browser.