action
container
contrib
controller
coordinates
datalinklayer
datapool
datapoolglob
datapoollocal
devicehandlers
events
fdir
globalfunctions
health
housekeeping
internalError
ipc
CommandMessage.cpp
CommandMessage.h
CommandMessageCleaner.cpp
CommandMessageCleaner.h
CommandMessageIF.h
FwMessageTypes.h
MessageQueueIF.h
MessageQueueMessage.cpp
MessageQueueMessage.h
MessageQueueMessageIF.h
MessageQueueSenderIF.h
MutexFactory.h
MutexHelper.h
MutexIF.h
QueueFactory.h
messageQueueDefinitions.h
memory
modes
monitoring
objectmanager
osal
parameters
power
pus
returnvalues
rmap
serialize
serviceinterface
storagemanager
subsystem
tasks
tcdistribution
thermal
timemanager
tmstorage
tmtcpacket
tmtcservices
.gitignore
LICENSE
NOTICE
fsfw.mk
50 lines
1.4 KiB
C++
50 lines
1.4 KiB
C++
#include "CommandMessageCleaner.h"
|
|
|
|
#include "../devicehandlers/DeviceHandlerMessage.h"
|
|
#include "../health/HealthMessage.h"
|
|
#include "../memory/MemoryMessage.h"
|
|
#include "../modes/ModeMessage.h"
|
|
#include "../monitoring/MonitoringMessage.h"
|
|
#include "../subsystem/modes/ModeSequenceMessage.h"
|
|
#include "../tmstorage/TmStoreMessage.h"
|
|
#include "../housekeeping/HousekeepingMessage.h"
|
|
#include "../parameters/ParameterMessage.h"
|
|
|
|
void CommandMessageCleaner::clearCommandMessage(CommandMessage* message) {
|
|
switch(message->getMessageType()){
|
|
case messagetypes::MODE_COMMAND:
|
|
ModeMessage::clear(message);
|
|
break;
|
|
case messagetypes::HEALTH_COMMAND:
|
|
HealthMessage::clear(message);
|
|
break;
|
|
case messagetypes::MODE_SEQUENCE:
|
|
ModeSequenceMessage::clear(message);
|
|
break;
|
|
case messagetypes::ACTION:
|
|
ActionMessage::clear(message);
|
|
break;
|
|
case messagetypes::DEVICE_HANDLER_COMMAND:
|
|
DeviceHandlerMessage::clear(message);
|
|
break;
|
|
case messagetypes::MEMORY:
|
|
MemoryMessage::clear(message);
|
|
break;
|
|
case messagetypes::MONITORING:
|
|
MonitoringMessage::clear(message);
|
|
break;
|
|
case messagetypes::TM_STORE:
|
|
TmStoreMessage::clear(message);
|
|
break;
|
|
case messagetypes::PARAMETER:
|
|
ParameterMessage::clear(message);
|
|
break;
|
|
case messagetypes::HOUSEKEEPING:
|
|
HousekeepingMessage::clear(message);
|
|
break;
|
|
default:
|
|
messagetypes::clearMissionMessage(message);
|
|
break;
|
|
}
|
|
}
|