F´ Flight Software - C/C++ Documentation
devel
A framework for building embedded system applications to NASA flight quality standards.
CmdPacket.hpp
Go to the documentation of this file.
1
/*
2
* CmdPacket.hpp
3
*
4
* Created on: May 24, 2014
5
* Author: Timothy Canham
6
*/
7
8
#ifndef CMDPACKET_HPP_
9
#define CMDPACKET_HPP_
10
11
#include <
Fw/Com/ComPacket.hpp
>
12
#include <
Fw/Cmd/CmdArgBuffer.hpp
>
13
14
namespace
Fw
{
15
16
class
CmdPacket
:
public
ComPacket
{
17
public
:
18
19
CmdPacket
();
20
virtual
~CmdPacket
();
21
22
SerializeStatus
serialize
(
SerializeBufferBase
& buffer)
const
;
23
SerializeStatus
deserialize
(
SerializeBufferBase
& buffer);
24
FwOpcodeType
getOpCode
()
const
;
25
CmdArgBuffer
&
getArgBuffer
();
26
27
protected
:
28
FwOpcodeType
m_opcode
;
29
CmdArgBuffer
m_argBuffer
;
30
};
31
32
}
/* namespace Fw */
33
34
#endif
/* CMDPACKET_HPP_ */
CmdArgBuffer.hpp
ComPacket.hpp
FwOpcodeType
U32 FwOpcodeType
Definition:
FpConfig.h:91
Fw::CmdArgBuffer
Definition:
CmdArgBuffer.hpp:21
Fw::CmdPacket
Definition:
CmdPacket.hpp:16
Fw::CmdPacket::~CmdPacket
virtual ~CmdPacket()
Definition:
CmdPacket.cpp:18
Fw::CmdPacket::getOpCode
FwOpcodeType getOpCode() const
Definition:
CmdPacket.cpp:55
Fw::CmdPacket::deserialize
SerializeStatus deserialize(SerializeBufferBase &buffer)
deserialize to contents
Definition:
CmdPacket.cpp:29
Fw::CmdPacket::serialize
SerializeStatus serialize(SerializeBufferBase &buffer) const
serialize contents
Definition:
CmdPacket.cpp:21
Fw::CmdPacket::m_argBuffer
CmdArgBuffer m_argBuffer
Definition:
CmdPacket.hpp:29
Fw::CmdPacket::CmdPacket
CmdPacket()
Definition:
CmdPacket.cpp:14
Fw::CmdPacket::getArgBuffer
CmdArgBuffer & getArgBuffer()
Definition:
CmdPacket.cpp:59
Fw::CmdPacket::m_opcode
FwOpcodeType m_opcode
Definition:
CmdPacket.hpp:28
Fw::ComPacket
Definition:
ComPacket.hpp:18
Fw::SerializeBufferBase
Definition:
Serializable.hpp:54
Fw
Definition:
FppConstantsAc.hpp:121
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
Fw
Cmd
CmdPacket.hpp
Generated by
1.9.1