blob: 5ddc9ee362514d9a8ef01e704b407db9b78db674 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
|