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