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 | * attachWfAuthResp.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/attachWfAuthResp.h" |
| 21 | #include "mmeStates/attachWfAuthRespValidate.h" |
| 22 | |
| 23 | using namespace mme; |
| 24 | using namespace SM; |
| 25 | |
| 26 | /****************************************************************************** |
| 27 | * Constructor |
| 28 | ******************************************************************************/ |
| 29 | AttachWfAuthResp::AttachWfAuthResp():State(State_e::attach_wf_auth_resp) |
| 30 | { |
| 31 | } |
| 32 | |
| 33 | /****************************************************************************** |
| 34 | * Destructor |
| 35 | ******************************************************************************/ |
| 36 | AttachWfAuthResp::~AttachWfAuthResp() |
| 37 | { |
| 38 | } |
| 39 | |
| 40 | /****************************************************************************** |
| 41 | * creates and returns static instance |
| 42 | ******************************************************************************/ |
| 43 | AttachWfAuthResp* AttachWfAuthResp::Instance() |
| 44 | { |
| 45 | static AttachWfAuthResp state; |
| 46 | return &state; |
| 47 | } |
| 48 | |
| 49 | /****************************************************************************** |
| 50 | * initializes eventToActionsMap |
| 51 | ******************************************************************************/ |
| 52 | void AttachWfAuthResp::initialize() |
| 53 | { |
| 54 | { |
| 55 | ActionTable actionTable; |
| 56 | actionTable.addAction(&ActionHandlers::auth_response_validate); |
| 57 | actionTable.setNextState(AttachWfAuthRespValidate::Instance()); |
| 58 | eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::AUTH_RESP_FROM_UE, actionTable)); |
| 59 | } |
| 60 | } |