From 687910bc052e1430c8132a5eefe63e20ba6937e0 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 27 Feb 2018 19:04:50 +0200 Subject: Implemented PMR Generator for hardware objects ! --- .../Tango.CodeGeneration/ProtoEnumFile.cs | 19 +++++++++++++++++ .../Tango.CodeGeneration/ProtoMessageFile.cs | 19 +++++++++++++++++ .../Tango.CodeGeneration.csproj | 4 ++++ .../Templates/ProtoEnumFile.cshtml | 23 +++++++++++++++++++++ .../Templates/ProtoMessageFile.cshtml | 24 ++++++++++++++++++++++ 5 files changed, 89 insertions(+) create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/ProtoEnumFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/ProtoMessageFile.cs create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/ProtoEnumFile.cshtml create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/ProtoMessageFile.cshtml (limited to 'Software/Visual_Studio/Tango.CodeGeneration') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/ProtoEnumFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/ProtoEnumFile.cs new file mode 100644 index 000000000..2a4ad5d35 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/ProtoEnumFile.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + public class ProtoEnumFile : EnumerationFile + { + public String Package { get; set; } + public List Imports { get; set; } + + public ProtoEnumFile() + { + Imports = new List(); + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/ProtoMessageFile.cs b/Software/Visual_Studio/Tango.CodeGeneration/ProtoMessageFile.cs new file mode 100644 index 000000000..6d771099a --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/ProtoMessageFile.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Tango.CodeGeneration +{ + public class ProtoMessageFile : Class + { + public String Package { get; set; } + public List Imports { get; set; } + + public ProtoMessageFile() + { + Imports = new List(); + } + } +} diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj index ff9072a1a..d622bd6a0 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj +++ b/Software/Visual_Studio/Tango.CodeGeneration/Tango.CodeGeneration.csproj @@ -68,6 +68,8 @@ + + @@ -106,6 +108,8 @@ + +