PageRenderTime 29ms CodeModel.GetById 19ms app.highlight 4ms RepoModel.GetById 2ms app.codeStats 0ms

/ggb_v1.0_src/ggb/commandpacket.h

http://ghostcb.googlecode.com/
C++ Header | 42 lines | 16 code | 6 blank | 20 comment | 0 complexity | 7d8dc24dfb00dd7eefa40b2bbfa4f167 MD5 | raw file
 1/*
 2
 3   Copyright 2010 Trevor Hogan
 4
 5   Licensed under the Apache License, Version 2.0 (the "License");
 6   you may not use this file except in compliance with the License.
 7   You may obtain a copy of the License at
 8
 9       http://www.apache.org/licenses/LICENSE-2.0
10
11   Unless required by applicable law or agreed to in writing, software
12   distributed under the License is distributed on an "AS IS" BASIS,
13   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14   See the License for the specific language governing permissions and
15   limitations under the License.
16
17*/
18
19#ifndef COMMANDPACKET_H
20#define COMMANDPACKET_H
21
22//
23// CCommandPacket
24//
25
26class CCommandPacket
27{
28private:
29	unsigned char m_PacketType;
30	int m_ID;
31	BYTEARRAY m_Data;
32
33public:
34	CCommandPacket( unsigned char nPacketType, int nID, BYTEARRAY nData );
35	~CCommandPacket( );
36
37	unsigned char GetPacketType( )	{ return m_PacketType; }
38	int GetID( )					{ return m_ID; }
39	BYTEARRAY GetData( )			{ return m_Data; }
40};
41
42#endif