Program Listing for File state_guard.hpp
↰ Return to documentation for file (rcppsw/patterns/fsm/state_guard.hpp
)
#pragma once
/*******************************************************************************
* Includes
******************************************************************************/
#include "rcppsw/rcppsw.hpp"
/*******************************************************************************
* Namespaces/Decls
******************************************************************************/
namespace rcppsw::patterns::fsm {
class base_fsm;
class event_data;
/*******************************************************************************
* Class Definitions
******************************************************************************/
class state_guard {
public:
virtual ~state_guard(void) = default;
virtual bool invoke_guard_condition(base_fsm* sm, const event_data*) const = 0;
};
} /* namespace rcppsw::patterns::fsm */