MccMount is now inheritor of MccFiniteStateMachine
This commit is contained in:
29
cxx/mcc_mount_events_states.h
Normal file
29
cxx/mcc_mount_events_states.h
Normal file
@@ -0,0 +1,29 @@
|
||||
#pragma once
|
||||
|
||||
/* MOUNT CONTROL COMPONENTS LIBRARY */
|
||||
|
||||
/*
|
||||
* BASIC EVENTS AND MOUNT STATES DEFINITIONS
|
||||
*/
|
||||
|
||||
|
||||
#include "mount.h"
|
||||
|
||||
namespace mcc
|
||||
{
|
||||
|
||||
template <MccMountType MOUNT_TYPE,
|
||||
std::derived_from<MccMountConfig> CONFIG_TYPE,
|
||||
std::derived_from<MccMount<MOUNT_TYPE, CONFIG_TYPE>> MountT>
|
||||
struct MccMountInitEvent {
|
||||
static constexpr std::string_view ID = "MCC-MOUNT-INIT-EVENT";
|
||||
|
||||
MccMountInitEvent(MountT& mount) : _mount(mount) {}
|
||||
|
||||
MountT mount() const { return _mount; }
|
||||
|
||||
private:
|
||||
MountT& _mount;
|
||||
};
|
||||
|
||||
} // namespace mcc
|
||||
Reference in New Issue
Block a user