From 3e17453993265fc545e261221f8d3a784e72b9e8 Mon Sep 17 00:00:00 2001 From: Christofer Dutz Date: Thu, 3 Dec 2020 22:08:54 +0100 Subject: [PATCH] - Added a check for the installation of `go` - Updated the dotnet check to check for at least version 4.5.2 - Added code generation for C# enums --- .../plc4x/language/cs/CsLanguageOutput.java | 3 +- .../resources/templates/cs/enum-template.ftlh | 85 + .../readwrite/model/KnxDatapointTests.cs | 20 +- .../src/knxnetip/readwrite/model/APCI.cs | 46 + .../knxnetip/readwrite/model/CEMIPriority.cs | 34 + .../readwrite/model/HostProtocolCode.cs | 32 + .../readwrite/model/KnxDatapointType.cs | 3634 +++++++++++++++++ .../src/knxnetip/readwrite/model/KnxLayer.cs | 33 + .../src/knxnetip/readwrite/model/KnxMedium.cs | 36 + .../src/knxnetip/readwrite/model/Status.cs | 42 + .../readwrite/model/SupportedPhysicalMedia.cs | 201 + .../src/knxnetip/readwrite/model/TPCI.cs | 34 + src/main/script/prerequisiteCheck.groovy | 29 +- 13 files changed, 4226 insertions(+), 3 deletions(-) create mode 100644 build-utils/language-cs/src/main/resources/templates/cs/enum-template.ftlh create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/APCI.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/CEMIPriority.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/HostProtocolCode.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/KnxDatapointType.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/KnxLayer.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/KnxMedium.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/Status.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/SupportedPhysicalMedia.cs create mode 100644 sandbox/plc4net/drivers/knxnetip/src/knxnetip/readwrite/model/TPCI.cs diff --git a/build-utils/language-cs/src/main/java/org/apache/plc4x/language/cs/CsLanguageOutput.java b/build-utils/language-cs/src/main/java/org/apache/plc4x/language/cs/CsLanguageOutput.java index fc5a4892c14..a71b4dd046c 100644 --- a/build-utils/language-cs/src/main/java/org/apache/plc4x/language/cs/CsLanguageOutput.java +++ b/build-utils/language-cs/src/main/java/org/apache/plc4x/language/cs/CsLanguageOutput.java @@ -55,7 +55,8 @@ protected List