blob: 7958516a485d873de642bc4b9da26037d2deaa2a [file] [log] [blame]
anjana_sreekumar@infosys.com991c2062020-01-08 11:42:57 +05301Requirements:
21.Python3.6.
32.Install the template-toolkit package.
4 a. pip3 install Template-Toolkit-Python or
5 b. git clone https://github.com/lmr/Template-Toolkit-Python, and set the path of the package in the datatypeCodeGen.py,groupedIECodeGen.py,iECodeGen.py,msgCodeGen.py,xlUtils.py script [as argument in sys.path.append]
6
7Inputs:
8 1 Excel file with 4 spreadsheets:
9 Message Modeling ,IE Modeling,Grouped IE Modeling and DataType Modeling: Defines the message structure,IEs,Grouped IEs and Datatype of IEs for the GTP classes to be generated .
10Output:
11 1. IE Classes .cpp and header files.
12 2. Message Classes .cpp and header files.
13 3. gtpV2stack .cpp and header files
14 4. MakeFile
15
16
17Remove all existing generated Files:
18-Use below commands:
19 rm ../../src/gtpV2Codec/ieClasses/*.cpp ../../src/gtpV2Codec/ieClasses/*.h;
20 rm ../../src/gtpV2Codec/msgClasses/*.cpp ../../src/gtpV2Codec/msgClasses/*.h;
21 rm ../../src/gtpV2Codec/Makefile;
22Execution:
23-Run the below command:
24 python3 startCodeGen.py
25
26
27
28