Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

Packable.h

Go to the documentation of this file.
00001 #ifndef _PACKABLE_H_
00002 #define _PACKABLE_H_
00003 
00004 // Define this so we can be like Java
00005 // it also makes derived classes more readable
00006 #define impliments public
00007 
00008 
00009 #ifdef WIN32
00010 #include <windows.h>
00011 #ifdef PEXPR_EXPORTS
00012 #define PEXPR_API __declspec(dllexport)
00013 #else
00014 #define PEXPR_API __declspec(dllimport)
00015 #endif /* PEXPR_EXPORTS */
00016 #else
00017 #define PEXPR_API
00018 #endif /* WIN32 */
00019 
00023 class PEXPR_API Packable
00024 {
00025     public:
00026         virtual int packsize()const = 0;
00027         virtual int pack( char* buf )const = 0;
00028         virtual int unpack( char* buf ) = 0;
00029 };
00030 
00031 #endif
00032 

Generated on Tue Jun 15 12:49:28 2004 for pexpr by doxygen 1.3.4