anjana_sreekumar@infosys.com | 991c206 | 2020-01-08 11:42:57 +0530 | [diff] [blame^] | 1 | Requirements: |
| 2 | 1.Python3.6. |
| 3 | 2.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 | |
| 7 | Inputs: |
| 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 . |
| 10 | Output: |
| 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 | |
| 17 | Remove 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; |
| 22 | Execution: |
| 23 | -Run the below command: |
| 24 | python3 startCodeGen.py |
| 25 | |
| 26 | |
| 27 | |
| 28 | |