#ifndef GATS_PACKET_H #define GATS_PACKET_H namespace Gats { class Object; /** * A D-encoded packet is a header and metadata related to encoding as well * as a single object. The advantage of this method is that the packet * contains all information related to encoding and is highly portable, it * also lets the reader know how much data to expect, which makes this * efficient for use in protocols and embedding in other data streams. */ class Packet { public: Packet(); Packet( Object *pObject ); virtual ~Packet(); Object *getObject() { return pRoot; } private: Object *pRoot; }; }; #endif