blob: c21d8c93d610675e7b26443096da1af300b0ced1 [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * Copyright 2019-present Infosys Limited  
3 *   
4 * SPDX-License-Identifier: Apache-2.0    
5 */
6
7/******************************************************************************
8 *
9 * This is an auto generated file.
10 * Please do not edit this file.
11 * All edits to be made through template source file
12 * <TOP-DIR/scripts/GtpV2StackCodeGen/tts/grpietemplate.cpp.tt>
13 ******************************************************************************/
14#include "remoteUeContextIe.h"
15#include "gtpV2GrpIeDataTypes.h"
16#include "manual/gtpV2GroupedIe.h"
17
18#include "remoteUeContextConnectedInCreateSessionRequest.h"
19
20RemoteUeContextIe::RemoteUeContextIe()
21{
22 ieType = RemoteUeContextIeType;
23
24 RemoteUeContextConnectedInCreateSessionRequest* remoteUeContextConnectedInCreateSessionRequest_p = new (RemoteUeContextConnectedInCreateSessionRequest);
25 insertGroupedIeObject(CreateSessionRequestMsgType, 0, remoteUeContextConnectedInCreateSessionRequest_p);
26}
27
28RemoteUeContextIe::~RemoteUeContextIe() {
29// TODO Auto-generated destructor stub
30}
31
32GtpV2GroupedIe& RemoteUeContextIe::getGroupedIe(Uint8 msgType, Uint8 instance)
33{
34 std::map<Uint16, GtpV2GroupedIe*>::iterator it;
35 Uint16 key = msgType;
36 key = (key << 8) + instance;
37 it = groupedIeObjectContainer.find(key);
38 return *(it->second);
39}
40
41void RemoteUeContextIe::insertGroupedIeObject(Uint8 msgType, Uint8 instance, GtpV2GroupedIe* grpIe_p)
42{
43
44 Uint16 key = msgType;
45 key = (key << 8) + instance;
46
47 groupedIeObjectContainer.insert(std::pair<Uint16, GtpV2GroupedIe*>(key, grpIe_p));
48
49}