Last change
on this file since 275 was
275,
checked in by cxsong, 19 years ago
|
added functions and modified prototype of some
|
File size:
493 bytes
|
Line | |
---|
1 | #ifndef __SERIALIZABLE_H__ |
---|
2 | #define __SERIALIZABLE_H__ |
---|
3 | |
---|
4 | // |
---|
5 | // base class for serializable rappture objects |
---|
6 | // |
---|
7 | class RpSerializable { |
---|
8 | public: |
---|
9 | // return object name (e.g., output.field(f1d)) |
---|
10 | virtual const char* objectName() = 0; |
---|
11 | |
---|
12 | // return object type (e.g., FIELD, MESH3D) |
---|
13 | virtual const char* objectType() = 0; |
---|
14 | |
---|
15 | // object marshalling |
---|
16 | virtual void serialize() = 0; |
---|
17 | |
---|
18 | // object unmarshalling |
---|
19 | virtual void deserialize() = 0; |
---|
20 | |
---|
21 | virtual int size() = 0; |
---|
22 | virtual int numBytes() = 0; |
---|
23 | }; |
---|
24 | |
---|
25 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.