anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | |
| 2 | /* |
| 3 | * Copyright 2019-present Infosys Limited |
| 4 | * |
| 5 | * SPDX-License-Identifier: Apache-2.0 |
| 6 | */ |
| 7 | |
| 8 | /************************************** |
| 9 | * detachWfDelSessionResp.cpp |
| 10 | * This is an auto generated file. |
| 11 | * Please do not edit this file. |
| 12 | * All edits to be made through template source file |
| 13 | * <TOP-DIR/scripts/SMCodeGen/templates/stateMachineTmpls/state.cpp.tt> |
| 14 | **************************************/ |
| 15 | |
| 16 | #include "smEnumTypes.h" |
| 17 | #include "actionTable.h" |
| 18 | #include "actionHandlers/actionHandlers.h" |
| 19 | |
| 20 | #include "mmeStates/detachWfDelSessionResp.h" |
| 21 | |
| 22 | using namespace mme; |
| 23 | using namespace SM; |
| 24 | |
| 25 | /****************************************************************************** |
| 26 | * Constructor |
| 27 | ******************************************************************************/ |
| 28 | DetachWfDelSessionResp::DetachWfDelSessionResp():State(State_e::detach_wf_del_session_resp) |
| 29 | { |
| 30 | } |
| 31 | |
| 32 | /****************************************************************************** |
| 33 | * Destructor |
| 34 | ******************************************************************************/ |
| 35 | DetachWfDelSessionResp::~DetachWfDelSessionResp() |
| 36 | { |
| 37 | } |
| 38 | |
| 39 | /****************************************************************************** |
| 40 | * creates and returns static instance |
| 41 | ******************************************************************************/ |
| 42 | DetachWfDelSessionResp* DetachWfDelSessionResp::Instance() |
| 43 | { |
| 44 | static DetachWfDelSessionResp state; |
| 45 | return &state; |
| 46 | } |
| 47 | |
| 48 | /****************************************************************************** |
| 49 | * initializes eventToActionsMap |
| 50 | ******************************************************************************/ |
| 51 | void DetachWfDelSessionResp::initialize() |
| 52 | { |
| 53 | { |
| 54 | ActionTable actionTable; |
| 55 | actionTable.addAction(&ActionHandlers::process_del_session_resp); |
| 56 | actionTable.addAction(&ActionHandlers::detach_accept_to_ue); |
| 57 | eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::DEL_SESSION_RESP_FROM_SGW, actionTable)); |
| 58 | } |
| 59 | } |