This commit is contained in:
2025-04-12 15:18:09 +03:00
parent 89d67fd95c
commit d5dd260007
5 changed files with 267 additions and 35 deletions

View File

@@ -16,7 +16,7 @@ namespace mcc
class MccMountAbstractState
{
std::function<void()> _getMountStateFunc{[]() {}};
std::function<void()> _getMountDataFunc{[]() {}};
public:
typedef std::error_code mount_state_error_t;
@@ -34,7 +34,7 @@ public:
std::convertible_to<exit_callback_t> auto&& exit_callback,
std::convertible_to<error_callback_t> auto&& error_callback)
{
_getMountStateFunc = [&mount_ptr, this]() { auto mstate = mount_ptr->getMountData(); };
_getMountDataFunc = [&mount_ptr, this]() { auto mstate = mount_ptr->getMountData(); };
}
@@ -43,7 +43,7 @@ public:
std::string_view ident() const
{
return "MCC-ABSTRACT-MOUNT-STATE";
return "MCC-MOUNT-ABSTRACT-STATE";
}
@@ -51,6 +51,12 @@ public:
void exit() {}
// #ifdef __cpp_explicit_this_parameter
// #if __cpp_explicit_this_parameter >= 202110L
// void aaa() {}
// #endif
// #endif
protected:
enter_callback_t _enterCallback{[](const mount_state_error_t&) {}};
exit_callback_t _exitCallback{[](const mount_state_error_t&) {}};