blob: 2aa31cd5cda2b32402dbcbf2159c2835b5f7ecfa [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301
2/*
3 * Copyright 2019-present Infosys Limited  
4 *   
5 * SPDX-License-Identifier: Apache-2.0    
6 */
7
8/**************************************
9 * attachWfAuthRespValidate.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/attachWfAuthRespValidate.h"
21#include "mmeStates/attachWfSecCmp.h"
22#include "mmeStates/attachWfAia.h"
23
24using namespace mme;
25using namespace SM;
26
27/******************************************************************************
28* Constructor
29******************************************************************************/
30AttachWfAuthRespValidate::AttachWfAuthRespValidate():State(State_e::attach_wf_auth_resp_validate)
31{
32}
33
34/******************************************************************************
35* Destructor
36******************************************************************************/
37AttachWfAuthRespValidate::~AttachWfAuthRespValidate()
38{
39}
40
41/******************************************************************************
42* creates and returns static instance
43******************************************************************************/
44AttachWfAuthRespValidate* AttachWfAuthRespValidate::Instance()
45{
46 static AttachWfAuthRespValidate state;
47 return &state;
48}
49
50/******************************************************************************
51* initializes eventToActionsMap
52******************************************************************************/
53void AttachWfAuthRespValidate::initialize()
54{
55 {
56 ActionTable actionTable;
57 actionTable.addAction(&ActionHandlers::sec_mode_cmd_to_ue);
58 actionTable.setNextState(AttachWfSecCmp::Instance());
59 eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::AUTH_RESP_SUCCESS, actionTable));
60 }
61 {
62 ActionTable actionTable;
63 actionTable.addAction(&ActionHandlers::send_air_to_hss);
64 actionTable.setNextState(AttachWfAia::Instance());
65 eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::AUTH_RESP_SYNC_FAILURE, actionTable));
66 }
67 {
68 ActionTable actionTable;
69 actionTable.addAction(&ActionHandlers::send_auth_reject);
70 eventToActionsMap.insert(pair<Event_e, ActionTable>(Event_e::AUTH_RESP_FAILURE, actionTable));
71 }
72}