anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | /* |
| 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 "overloadControlInformationIe.h" |
| 15 | #include "gtpV2GrpIeDataTypes.h" |
| 16 | #include "manual/gtpV2GroupedIe.h" |
| 17 | |
| 18 | #include "sgwsOverloadControlInformationInCreateSessionRequest.h" |
| 19 | #include "twanEpdgsOverloadControlInformationInCreateSessionRequest.h" |
| 20 | #include "mmeS4SgsnsOverloadControlInformationInCreateSessionRequest.h" |
| 21 | #include "pgwsOverloadControlInformationInCreateSessionResponse.h" |
| 22 | #include "sgwsOverloadControlInformationInCreateSessionResponse.h" |
| 23 | #include "mmeS4SgsnsOverloadControlInformationInModifyBearerRequest.h" |
| 24 | #include "sgwsOverloadControlInformationInModifyBearerRequest.h" |
| 25 | #include "epdgsOverloadControlInformationInModifyBearerRequest.h" |
| 26 | #include "sgwsOverloadControlInformationInModifyBearerResponse.h" |
| 27 | #include "pgwsOverloadControlInformationInModifyBearerResponse.h" |
| 28 | #include "mmeS4SgsnsOverloadControlInformationInDeleteSessionRequest.h" |
| 29 | #include "sgwsOverloadControlInformationInDeleteSessionRequest.h" |
| 30 | #include "twanEpdgsOverloadControlInformationInDeleteSessionRequest.h" |
| 31 | #include "sgwsOverloadControlInformationInDeleteSessionResponse.h" |
| 32 | #include "pgwsOverloadControlInformationInDeleteSessionResponse.h" |
| 33 | #include "sgwsOverloadControlInformationInReleaseAccessBearersResponse.h" |
| 34 | #include "pgwsOverloadControlInformationInCreateBearerRequest.h" |
| 35 | #include "sgwsOverloadControlInformationInCreateBearerRequest.h" |
| 36 | #include "mmeS4SgsnsOverloadControlInformationInCreateBearerResponse.h" |
| 37 | #include "sgwsOverloadControlInformationInCreateBearerResponse.h" |
| 38 | #include "twanEpdgsOverloadControlInformationInCreateBearerResponse.h" |
| 39 | #include "pgwsOverloadControlInformationInDeleteBearerRequest.h" |
| 40 | #include "sgwsOverloadControlInformationInDeleteBearerRequest.h" |
| 41 | #include "mmeS4SgsnsOverloadControlInformationInDeleteBearerResponse.h" |
| 42 | #include "sgwsOverloadControlInformationInDeleteBearerResponse.h" |
| 43 | #include "twanEpdgsOverloadControlInformationInDeleteBearerResponse.h" |
| 44 | #include "sgwsOverloadControlInformationInDownlinkDataNotification.h" |
| 45 | |
| 46 | OverloadControlInformationIe::OverloadControlInformationIe() |
| 47 | { |
| 48 | ieType = OverloadControlInformationIeType; |
| 49 | |
| 50 | SgwsOverloadControlInformationInCreateSessionRequest* sgwsOverloadControlInformationInCreateSessionRequest_p = new (SgwsOverloadControlInformationInCreateSessionRequest); |
| 51 | insertGroupedIeObject(CreateSessionRequestMsgType, 1, sgwsOverloadControlInformationInCreateSessionRequest_p); |
| 52 | TwanEpdgsOverloadControlInformationInCreateSessionRequest* twanEpdgsOverloadControlInformationInCreateSessionRequest_p = new (TwanEpdgsOverloadControlInformationInCreateSessionRequest); |
| 53 | insertGroupedIeObject(CreateSessionRequestMsgType, 2, twanEpdgsOverloadControlInformationInCreateSessionRequest_p); |
| 54 | MmeS4SgsnsOverloadControlInformationInCreateSessionRequest* mmeS4SgsnsOverloadControlInformationInCreateSessionRequest_p = new (MmeS4SgsnsOverloadControlInformationInCreateSessionRequest); |
| 55 | insertGroupedIeObject(CreateSessionRequestMsgType, 0, mmeS4SgsnsOverloadControlInformationInCreateSessionRequest_p); |
| 56 | PgwsOverloadControlInformationInCreateSessionResponse* pgwsOverloadControlInformationInCreateSessionResponse_p = new (PgwsOverloadControlInformationInCreateSessionResponse); |
| 57 | insertGroupedIeObject(CreateSessionResponseMsgType, 0, pgwsOverloadControlInformationInCreateSessionResponse_p); |
| 58 | SgwsOverloadControlInformationInCreateSessionResponse* sgwsOverloadControlInformationInCreateSessionResponse_p = new (SgwsOverloadControlInformationInCreateSessionResponse); |
| 59 | insertGroupedIeObject(CreateSessionResponseMsgType, 1, sgwsOverloadControlInformationInCreateSessionResponse_p); |
| 60 | MmeS4SgsnsOverloadControlInformationInModifyBearerRequest* mmeS4SgsnsOverloadControlInformationInModifyBearerRequest_p = new (MmeS4SgsnsOverloadControlInformationInModifyBearerRequest); |
| 61 | insertGroupedIeObject(ModifyBearerRequestMsgType, 0, mmeS4SgsnsOverloadControlInformationInModifyBearerRequest_p); |
| 62 | SgwsOverloadControlInformationInModifyBearerRequest* sgwsOverloadControlInformationInModifyBearerRequest_p = new (SgwsOverloadControlInformationInModifyBearerRequest); |
| 63 | insertGroupedIeObject(ModifyBearerRequestMsgType, 1, sgwsOverloadControlInformationInModifyBearerRequest_p); |
| 64 | EpdgsOverloadControlInformationInModifyBearerRequest* epdgsOverloadControlInformationInModifyBearerRequest_p = new (EpdgsOverloadControlInformationInModifyBearerRequest); |
| 65 | insertGroupedIeObject(ModifyBearerRequestMsgType, 2, epdgsOverloadControlInformationInModifyBearerRequest_p); |
| 66 | SgwsOverloadControlInformationInModifyBearerResponse* sgwsOverloadControlInformationInModifyBearerResponse_p = new (SgwsOverloadControlInformationInModifyBearerResponse); |
| 67 | insertGroupedIeObject(ModifyBearerResponseMsgType, 1, sgwsOverloadControlInformationInModifyBearerResponse_p); |
| 68 | PgwsOverloadControlInformationInModifyBearerResponse* pgwsOverloadControlInformationInModifyBearerResponse_p = new (PgwsOverloadControlInformationInModifyBearerResponse); |
| 69 | insertGroupedIeObject(ModifyBearerResponseMsgType, 0, pgwsOverloadControlInformationInModifyBearerResponse_p); |
| 70 | MmeS4SgsnsOverloadControlInformationInDeleteSessionRequest* mmeS4SgsnsOverloadControlInformationInDeleteSessionRequest_p = new (MmeS4SgsnsOverloadControlInformationInDeleteSessionRequest); |
| 71 | insertGroupedIeObject(DeleteSessionRequestMsgType, 0, mmeS4SgsnsOverloadControlInformationInDeleteSessionRequest_p); |
| 72 | SgwsOverloadControlInformationInDeleteSessionRequest* sgwsOverloadControlInformationInDeleteSessionRequest_p = new (SgwsOverloadControlInformationInDeleteSessionRequest); |
| 73 | insertGroupedIeObject(DeleteSessionRequestMsgType, 1, sgwsOverloadControlInformationInDeleteSessionRequest_p); |
| 74 | TwanEpdgsOverloadControlInformationInDeleteSessionRequest* twanEpdgsOverloadControlInformationInDeleteSessionRequest_p = new (TwanEpdgsOverloadControlInformationInDeleteSessionRequest); |
| 75 | insertGroupedIeObject(DeleteSessionRequestMsgType, 2, twanEpdgsOverloadControlInformationInDeleteSessionRequest_p); |
| 76 | SgwsOverloadControlInformationInDeleteSessionResponse* sgwsOverloadControlInformationInDeleteSessionResponse_p = new (SgwsOverloadControlInformationInDeleteSessionResponse); |
| 77 | insertGroupedIeObject(DeleteSessionResponseMsgType, 1, sgwsOverloadControlInformationInDeleteSessionResponse_p); |
| 78 | PgwsOverloadControlInformationInDeleteSessionResponse* pgwsOverloadControlInformationInDeleteSessionResponse_p = new (PgwsOverloadControlInformationInDeleteSessionResponse); |
| 79 | insertGroupedIeObject(DeleteSessionResponseMsgType, 0, pgwsOverloadControlInformationInDeleteSessionResponse_p); |
| 80 | SgwsOverloadControlInformationInReleaseAccessBearersResponse* sgwsOverloadControlInformationInReleaseAccessBearersResponse_p = new (SgwsOverloadControlInformationInReleaseAccessBearersResponse); |
| 81 | insertGroupedIeObject(ReleaseAccessBearersResponseMsgType, 0, sgwsOverloadControlInformationInReleaseAccessBearersResponse_p); |
| 82 | PgwsOverloadControlInformationInCreateBearerRequest* pgwsOverloadControlInformationInCreateBearerRequest_p = new (PgwsOverloadControlInformationInCreateBearerRequest); |
| 83 | insertGroupedIeObject(CreateBearerRequestMsgType, 0, pgwsOverloadControlInformationInCreateBearerRequest_p); |
| 84 | SgwsOverloadControlInformationInCreateBearerRequest* sgwsOverloadControlInformationInCreateBearerRequest_p = new (SgwsOverloadControlInformationInCreateBearerRequest); |
| 85 | insertGroupedIeObject(CreateBearerRequestMsgType, 1, sgwsOverloadControlInformationInCreateBearerRequest_p); |
| 86 | MmeS4SgsnsOverloadControlInformationInCreateBearerResponse* mmeS4SgsnsOverloadControlInformationInCreateBearerResponse_p = new (MmeS4SgsnsOverloadControlInformationInCreateBearerResponse); |
| 87 | insertGroupedIeObject(CreateBearerResponseMsgType, 0, mmeS4SgsnsOverloadControlInformationInCreateBearerResponse_p); |
| 88 | SgwsOverloadControlInformationInCreateBearerResponse* sgwsOverloadControlInformationInCreateBearerResponse_p = new (SgwsOverloadControlInformationInCreateBearerResponse); |
| 89 | insertGroupedIeObject(CreateBearerResponseMsgType, 1, sgwsOverloadControlInformationInCreateBearerResponse_p); |
| 90 | TwanEpdgsOverloadControlInformationInCreateBearerResponse* twanEpdgsOverloadControlInformationInCreateBearerResponse_p = new (TwanEpdgsOverloadControlInformationInCreateBearerResponse); |
| 91 | insertGroupedIeObject(CreateBearerResponseMsgType, 2, twanEpdgsOverloadControlInformationInCreateBearerResponse_p); |
| 92 | PgwsOverloadControlInformationInDeleteBearerRequest* pgwsOverloadControlInformationInDeleteBearerRequest_p = new (PgwsOverloadControlInformationInDeleteBearerRequest); |
| 93 | insertGroupedIeObject(DeleteBearerRequestMsgType, 0, pgwsOverloadControlInformationInDeleteBearerRequest_p); |
| 94 | SgwsOverloadControlInformationInDeleteBearerRequest* sgwsOverloadControlInformationInDeleteBearerRequest_p = new (SgwsOverloadControlInformationInDeleteBearerRequest); |
| 95 | insertGroupedIeObject(DeleteBearerRequestMsgType, 1, sgwsOverloadControlInformationInDeleteBearerRequest_p); |
| 96 | MmeS4SgsnsOverloadControlInformationInDeleteBearerResponse* mmeS4SgsnsOverloadControlInformationInDeleteBearerResponse_p = new (MmeS4SgsnsOverloadControlInformationInDeleteBearerResponse); |
| 97 | insertGroupedIeObject(DeleteBearerResponseMsgType, 0, mmeS4SgsnsOverloadControlInformationInDeleteBearerResponse_p); |
| 98 | SgwsOverloadControlInformationInDeleteBearerResponse* sgwsOverloadControlInformationInDeleteBearerResponse_p = new (SgwsOverloadControlInformationInDeleteBearerResponse); |
| 99 | insertGroupedIeObject(DeleteBearerResponseMsgType, 1, sgwsOverloadControlInformationInDeleteBearerResponse_p); |
| 100 | TwanEpdgsOverloadControlInformationInDeleteBearerResponse* twanEpdgsOverloadControlInformationInDeleteBearerResponse_p = new (TwanEpdgsOverloadControlInformationInDeleteBearerResponse); |
| 101 | insertGroupedIeObject(DeleteBearerResponseMsgType, 2, twanEpdgsOverloadControlInformationInDeleteBearerResponse_p); |
| 102 | SgwsOverloadControlInformationInDownlinkDataNotification* sgwsOverloadControlInformationInDownlinkDataNotification_p = new (SgwsOverloadControlInformationInDownlinkDataNotification); |
| 103 | insertGroupedIeObject(DownlinkDataNotificationMsgType, 0, sgwsOverloadControlInformationInDownlinkDataNotification_p); |
| 104 | } |
| 105 | |
| 106 | OverloadControlInformationIe::~OverloadControlInformationIe() { |
| 107 | // TODO Auto-generated destructor stub |
| 108 | } |
| 109 | |
| 110 | GtpV2GroupedIe& OverloadControlInformationIe::getGroupedIe(Uint8 msgType, Uint8 instance) |
| 111 | { |
| 112 | std::map<Uint16, GtpV2GroupedIe*>::iterator it; |
| 113 | Uint16 key = msgType; |
| 114 | key = (key << 8) + instance; |
| 115 | it = groupedIeObjectContainer.find(key); |
| 116 | return *(it->second); |
| 117 | } |
| 118 | |
| 119 | void OverloadControlInformationIe::insertGroupedIeObject(Uint8 msgType, Uint8 instance, GtpV2GroupedIe* grpIe_p) |
| 120 | { |
| 121 | |
| 122 | Uint16 key = msgType; |
| 123 | key = (key << 8) + instance; |
| 124 | |
| 125 | groupedIeObjectContainer.insert(std::pair<Uint16, GtpV2GroupedIe*>(key, grpIe_p)); |
| 126 | |
| 127 | } |