blob: 044c57a73d1fdf67b7d0d6b2519705fcd383ac9f [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301/*
2 * Copyright 2019-present, Infosys Limited.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15/******************************************************************************
16 *
17 * This is an auto generated file.
18 * Please do not edit this file.
19 * All edits to be made through template source file
20 * <TOP-DIR/scripts/GtpV2StackCodeGen/tts/stacktemplate.h.tt>
21 ******************************************************************************/
22#ifndef GTPV2STACK_H_
23#define GTPV2STACK_H_
24
25#include <sstream>
26#include <basicTypes.h>
27#include <msgBuffer.h>
28#include "msgClasses/gtpV2MsgDataTypes.h"
29
30class GtpV2Stack {
31public:
32 GtpV2Stack();
33 virtual ~GtpV2Stack();
34
35 // Public datastructures that hold decoded data or data to be encoded
36[% FOREACH msg IN tempdata.msgList -%]
37 [% msg.className %]Data [% msg.dataMember %];
38[% END -%]
39
40 bool encodeMessage(GtpV2MessageHeader& msgHeader, MsgBuffer& buffer,
41 void* data_p = NULL);
42 bool decodeGtpMessageHeader(GtpV2MessageHeader& msgHeader, MsgBuffer& buffer);
43 bool decodeMessage(GtpV2MessageHeader& msgHeader, MsgBuffer& buffer,
44 void* data_p = NULL);
45 void display_v(Uint8 msgType, Debug& stream, void* data_p = NULL);
46};
47
48#endif /* GTPV2STACK_H_ */