source:
vendors/XIOS/current/src/type/base_type.cpp
@
3408
Last change on this file since 3408 was 3408, checked in by rblod, 12 years ago | |
---|---|
|
|
File size: 1.5 KB |
Line | |
---|---|
1 | #include "xmlioserver_spl.hpp" |
2 | #include "exception.hpp" |
3 | #include "base_type.hpp" |
4 | #include "buffer_in.hpp" |
5 | #include "buffer_out.hpp" |
6 | |
7 | namespace xios |
8 | { |
9 | CBaseType::CBaseType(void) {} |
10 | |
11 | void CBaseType::fromString(const string& str) |
12 | { |
13 | |
14 | ERROR("void CBaseType::fromString(const string& str)", |
15 | <<"Non implemented method in derived class"); |
16 | } |
17 | |
18 | string CBaseType::toString(void) const |
19 | { |
20 | ERROR("string CBaseType::toString(void) const", |
21 | <<"Non implemented method in derived class"); |
22 | return string("") ; |
23 | } |
24 | |
25 | bool CBaseType::fromBuffer(CBufferIn& buffer) |
26 | { |
27 | |
28 | ERROR("bool CBaseType::fromBuffer(CBufferIn& buffer) const", |
29 | <<"Non implemented method in derived class"); |
30 | return false ; |
31 | } |
32 | |
33 | bool CBaseType::toBuffer(CBufferOut& buffer) const |
34 | { |
35 | ERROR("bool CBaseType::fromBuffer(CBufferIn& buffer) const", |
36 | <<"Non implemented method in derived class"); |
37 | return false ; |
38 | } |
39 | |
40 | CBaseType* CBaseType::duplicate(void) |
41 | { |
42 | return this ; |
43 | } |
44 | |
45 | CBaseType* CBaseType::duplicate(void) const |
46 | { |
47 | ERROR(" CBaseType* CBaseType::duplicate(void) const ", |
48 | <<"Non implemented method in derived class"); |
49 | return 0 ; |
50 | } |
51 | |
52 | void CBaseType::destroy(void) |
53 | { |
54 | |
55 | } |
56 | |
57 | size_t CBaseType::size(void) const |
58 | { |
59 | ERROR("size_t CBaseType::size(void) const) const", |
60 | <<"Non implemented method in derived class"); |
61 | return 0 ; |
62 | } |
63 | |
64 | } |
Note: See TracBrowser
for help on using the repository browser.