F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
ComPacket.hpp
Go to the documentation of this file.
1 /*
2  * ComPacket.hpp
3  *
4  * Created on: May 24, 2014
5  * Author: Timothy Canham
6  */
7 
8 #ifndef COMPACKET_HPP_
9 #define COMPACKET_HPP_
10 
12 #include "config/APIDEnumAc.hpp"
13 
14 // Packet format:
15 // |32-bit packet type|packet type-specific data|
16 
17 namespace Fw {
18 
19 // This type is defined in config/ComCfg.fpp
21 
22 class ComPacket : public Serializable {
23  public:
24  ComPacket();
25  virtual ~ComPacket();
26 
27  protected:
30  SerializeBufferBase& buffer) const; // called by derived classes to serialize common fields
32  SerializeBufferBase& buffer); // called by derived classes to deserialize common fields
33 };
34 
35 } /* namespace Fw */
36 
37 #endif /* COMPACKET_HPP_ */
ComPacketType m_type
Definition: ComPacket.hpp:28
SerializeStatus
forward declaration for string
T
The raw enum type.
Definition: APIDEnumAc.hpp:31
SerializeStatus serializeBase(SerializeBufferBase &buffer) const
Definition: ComPacket.cpp:16
virtual ~ComPacket()
Definition: ComPacket.cpp:14
SerializeStatus deserializeBase(SerializeBufferBase &buffer)
Definition: ComPacket.cpp:20
forward declaration