From 1b797548dff7e2475826ba29a71c3f496008988f Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 14 Aug 2010 07:12:29 +0000 Subject: libgats gets it's own repo. The rest of the history is in my misc repo. --- src/packet.h | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/packet.h (limited to 'src/packet.h') diff --git a/src/packet.h b/src/packet.h new file mode 100644 index 0000000..5ddc9ee --- /dev/null +++ b/src/packet.h @@ -0,0 +1,29 @@ +#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 -- cgit v1.2.3