| 397 | } |
| 398 | |
| 399 | bool AFCKernelModule::AddEventCallBack(const AFGUID& self, const int nEventID, EVENT_PROCESS_FUNCTOR&& cb) |
| 400 | { |
| 401 | std::shared_ptr<AFIEntity> pEntity = GetEntity(self); |
| 402 | ARK_ASSERT_RET_VAL(pEntity != nullptr, false); |
| 403 | |
| 404 | auto pEventManager = GetEventManager(pEntity); |
| 405 | ARK_ASSERT_RET_VAL(pEventManager != nullptr, false); |
| 406 | |
| 407 | return pEventManager->AddEventCallBack(nEventID, std::forward<EVENT_PROCESS_FUNCTOR>(cb)); |
| 408 | } |
| 409 | |
| 410 | bool AFCKernelModule::AddClassCallBack(const std::string& class_name, CLASS_EVENT_FUNCTOR&& cb, const int32_t prio) |
| 411 | { |
nothing calls this directly
no outgoing calls
no test coverage detected