Last change
on this file since 308 was
308,
checked in by ymipsl, 12 years ago
|
arborescence oubliée... pas d'explication
YM
|
File size:
828 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 | |
---|
11 | namespace xmlioserver |
---|
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.