F´ Flight Software - C/C++ Documentation
A framework for building embedded system applications to NASA flight quality standards.
LogPacket.hpp
Go to the documentation of this file.
1
/*
2
* LogPacket.hpp
3
*
4
* Created on: May 24, 2014
5
* Author: Timothy Canham
6
*/
7
8
#ifndef LOGPACKET_HPP_
9
#define LOGPACKET_HPP_
10
11
#include <
Fw/Com/ComPacket.hpp
>
12
#include <
Fw/Log/LogBuffer.hpp
>
13
#include <
Fw/Time/Time.hpp
>
14
15
namespace
Fw
{
16
17
class
LogPacket
:
public
ComPacket
{
18
public
:
19
LogPacket
();
20
virtual
~LogPacket
();
21
22
SerializeStatus
serializeTo
(
SerializeBufferBase
& buffer)
const override
;
23
SerializeStatus
deserializeFrom
(
SerializeBufferBase
& buffer)
override
;
24
25
void
setId
(
FwEventIdType
id
);
26
void
setLogBuffer
(
const
LogBuffer
& buffer);
27
void
setTimeTag
(
const
Fw::Time
& timeTag);
28
29
FwEventIdType
getId
();
30
Fw::Time
&
getTimeTag
();
31
LogBuffer
&
getLogBuffer
();
32
33
protected
:
34
FwEventIdType
m_id
;
// !< Channel id
35
Fw::Time
m_timeTag
;
// !< time tag
36
LogBuffer
m_logBuffer
;
// !< serialized argument data
37
};
38
39
}
/* namespace Fw */
40
41
#endif
/* LOGPACKET_HPP_ */
Fw::LogPacket::serializeTo
SerializeStatus serializeTo(SerializeBufferBase &buffer) const override
serialize contents
Definition:
LogPacket.cpp:19
Fw::LogPacket::getLogBuffer
LogBuffer & getLogBuffer()
Definition:
LogPacket.cpp:87
Fw::Time
Definition:
Time.hpp:11
Fw::LogBuffer
Definition:
LogBuffer.hpp:21
Fw::LogPacket::setTimeTag
void setTimeTag(const Fw::Time &timeTag)
Definition:
LogPacket.cpp:75
ComPacket.hpp
Fw::LogPacket::m_timeTag
Fw::Time m_timeTag
Definition:
LogPacket.hpp:35
Fw::LogPacket::setId
void setId(FwEventIdType id)
Definition:
LogPacket.cpp:67
Fw::SerializeStatus
SerializeStatus
forward declaration for string
Definition:
Serializable.hpp:14
FwEventIdType
FwIdType FwEventIdType
The type of an event identifier.
Definition:
FwEventIdTypeAliasAc.h:14
Fw::SerializeBufferBase
Definition:
Serializable.hpp:64
Fw::LogPacket::LogPacket
LogPacket()
Definition:
LogPacket.cpp:13
Fw::ComPacket
Definition:
ComPacket.hpp:22
Fw::LogPacket::getTimeTag
Fw::Time & getTimeTag()
Definition:
LogPacket.cpp:83
Fw::LogPacket::m_id
FwEventIdType m_id
Definition:
LogPacket.hpp:34
Time.hpp
Fw::LogPacket::setLogBuffer
void setLogBuffer(const LogBuffer &buffer)
Definition:
LogPacket.cpp:71
Fw::LogPacket::m_logBuffer
LogBuffer m_logBuffer
Definition:
LogPacket.hpp:36
Fw::LogPacket::~LogPacket
virtual ~LogPacket()
Definition:
LogPacket.cpp:17
Fw
Definition:
FppConstantsAc.hpp:121
Fw::LogPacket::getId
FwEventIdType getId()
Definition:
LogPacket.cpp:79
Fw::LogPacket
Definition:
LogPacket.hpp:17
LogBuffer.hpp
Fw::LogPacket::deserializeFrom
SerializeStatus deserializeFrom(SerializeBufferBase &buffer) override
deserialize contents from buffer
Definition:
LogPacket.cpp:40
Fw
Log
LogPacket.hpp
Generated by
1.8.14