Garmin Fleet Management Controller  2.19.0
Packet.h
Go to the documentation of this file.
1 /*********************************************************************
2 *
3 * HEADER NAME:
4 * Packet.h
5 *
6 * Copyright 2009 by Garmin Ltd. or its subsidiaries.
7 *---------------------------------------------------------------------
8 * $NoKeywords$
9 *********************************************************************/
10 #ifndef Packet_H
11 #define Packet_H
12 
13 #include "garmin_types.h"
14 
15 //----------------------------------------------------------------------
17 //----------------------------------------------------------------------
18 class Packet
19 {
20 public:
21  Packet();
22  virtual ~Packet();
23 
26  virtual uint32 getRawSize() = 0;
27 
30  virtual const uint8 * getRawBytes() = 0;
31 };
32 
33 #endif
virtual const uint8 * getRawBytes()=0
Get pointer to the raw frame.
Abstract base class for a packet of data.
Definition: Packet.h:18
virtual ~Packet()
Destructor.
Definition: Packet.cpp:24
virtual uint32 getRawSize()=0
Get the size of the raw frame.
Packet()
Constructor.
Definition: Packet.cpp:17
unsigned char uint8
8-bit unsigned integer
Definition: garmin_types.h:62
unsigned long int uint32
32-bit unsigned integer
Definition: garmin_types.h:66