Changeset 275 for trunk


Ignore:
Timestamp:
Mar 6, 2006, 2:07:23 PM (19 years ago)
Author:
cxsong
Message:

added functions and modified prototype of some

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/mesh/serializable.h

    r181 r275  
    33
    44//
    5 // class implementing the serialization of various types
     5// base class for serializable rappture objects
    66//
    7 
    87class RpSerializable {
    98public:
    10         // constructors
    11         RpSerializable();
     9        // return object name (e.g., output.field(f1d))
     10        virtual const char* objectName() = 0;
    1211
    13         static void serialize(char& buf, int d);
    14         static void serialize(char& buf, double d);
    15         static void serialize(char& buf, double& buf, int nitems);
    16         static void serialize(char& buf, const char* str, int len);
     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;
    1723};
    1824
Note: See TracChangeset for help on using the changeset viewer.