From ea2a8d1ec366f794cac2a2af9e41e23f8c6c9bad Mon Sep 17 00:00:00 2001 From: PTKu <61538034+PTKu@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:20:31 +0100 Subject: [PATCH 1/2] Create draft PR for #396 From 24e5745644b349fbd55cf2e066f8d71fd1fe4ca8 Mon Sep 17 00:00:00 2001 From: PTKu <61538034+PTKu@users.noreply.github.com> Date: Fri, 28 Mar 2025 15:30:48 +0100 Subject: [PATCH 2/2] Updates to stc v9 --- .../AXSharp.Compiler/Core/IxNodeVisitor.cs | 5 +++ .../src/ixd/Mapper/CodeToYamlMapper.cs | 2 +- .../src/ixd/Visitors/MyNodeVisitor.cs | 5 +++ src/apax/apax-lock.json | 34 +++++++++---------- src/apax/apax.yml | 2 +- .../ix/.g/POCO/geolocation.g.cs | 12 +++---- .../ix/.g/POCO/ixcomponent.g.cs | 18 +++++----- .../ix/.g/POCO/measurement.g.cs | 16 ++++----- .../ix/.g/POCO/test/border.g.cs | 24 ++++++------- .../ix/.g/POCO/test/groupbox.g.cs | 24 ++++++------- .../ix/.g/POCO/test/test_primitive.g.cs | 24 ++++++------- .../ix/.g/POCO/weatherBase.g.cs | 12 +++---- 12 files changed, 94 insertions(+), 84 deletions(-) diff --git a/src/AXSharp.compiler/src/AXSharp.Compiler/Core/IxNodeVisitor.cs b/src/AXSharp.compiler/src/AXSharp.Compiler/Core/IxNodeVisitor.cs index b49cadad1..0e2ea424a 100644 --- a/src/AXSharp.compiler/src/AXSharp.Compiler/Core/IxNodeVisitor.cs +++ b/src/AXSharp.compiler/src/AXSharp.Compiler/Core/IxNodeVisitor.cs @@ -122,6 +122,11 @@ void ISemanticNodeVisitor.Visit(IMethodDeclaration method throw new NotSupportedException(); } + public void Visit(IClassMethodDeclaration methodDeclaration, ICombinedThreeVisitor data) + { + throw new NotSupportedException(); + } + void ISemanticNodeVisitor.Visit(IMethodPrototypeDeclaration methodPrototypeDeclaration, ICombinedThreeVisitor data) { diff --git a/src/AXSharp.compiler/src/ixd/Mapper/CodeToYamlMapper.cs b/src/AXSharp.compiler/src/ixd/Mapper/CodeToYamlMapper.cs index e5e6cf974..0bbea3eb6 100644 --- a/src/AXSharp.compiler/src/ixd/Mapper/CodeToYamlMapper.cs +++ b/src/AXSharp.compiler/src/ixd/Mapper/CodeToYamlMapper.cs @@ -117,7 +117,7 @@ public Item PopulateItem(IMethodDeclaration methodDeclaration) var item = PopulateItem((IDeclaration)methodDeclaration); item.Uid = Helpers.Helpers.GetBaseUid(methodDeclaration); item.Id = Helpers.Helpers.GetBaseUid(methodDeclaration); - item.Parent = methodDeclaration.ContainingClass.FullyQualifiedName; + item.Parent = methodDeclaration.ContainingStructuredType.FullyQualifiedName; item.Type = "Method"; item.Syntax = new Syntax { diff --git a/src/AXSharp.compiler/src/ixd/Visitors/MyNodeVisitor.cs b/src/AXSharp.compiler/src/ixd/Visitors/MyNodeVisitor.cs index 4917a11e1..bfc86947c 100644 --- a/src/AXSharp.compiler/src/ixd/Visitors/MyNodeVisitor.cs +++ b/src/AXSharp.compiler/src/ixd/Visitors/MyNodeVisitor.cs @@ -112,6 +112,11 @@ public void Visit(IMethodDeclaration methodDeclaration, IYamlBuiderVisitor data) data.CreateMethodYaml(methodDeclaration, this); } + public void Visit(IClassMethodDeclaration methodDeclaration, IYamlBuiderVisitor data) + { + data.CreateMethodYaml(methodDeclaration, this); + } + public void Visit(IMethodPrototypeDeclaration methodPrototypeDeclaration, IYamlBuiderVisitor data) { data.CreateMethodPrototypeYaml(methodPrototypeDeclaration, this); diff --git a/src/apax/apax-lock.json b/src/apax/apax-lock.json index 4e8a19859..859005791 100644 --- a/src/apax/apax-lock.json +++ b/src/apax/apax-lock.json @@ -7,25 +7,25 @@ "name": "s", "version": "0.0.0", "devDependencies": { - "@ax/stc": "8.0.17" + "@ax/stc": "9.1.36" } }, "packages": { "@ax/stc": { "name": "@ax/stc", - "version": "8.0.17", - "integrity": "sha512-Ym2uWEmfrkhm2Z/ODujUwQOiAwQ2p0fv9hLTJGL+zwYMjAwja71JayMLSOO+cX0gv8VexrxISDa66jouT+XySA==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc/-/stc-8.0.17.tgz", + "version": "9.1.36", + "integrity": "sha512-v1crfIUg8rUVmrhtSTDoZZNub9At2iMiDgR4BK+3SA1VmhO7swGwnff0OkSoteE60kdxN+70AmKJJWlX+11WTA==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc/-/stc-9.1.36.tgz", "dependencies": { - "@ax/stc-win-x64": "8.0.17", - "@ax/stc-linux-x64": "8.0.17" + "@ax/stc-win-x64": "9.1.36", + "@ax/stc-linux-x64": "9.1.36" } }, "@ax/stc-win-x64": { "name": "@ax/stc-win-x64", - "version": "8.0.17", - "integrity": "sha512-vOnWIY+dLfASN2s7exuy7pQU/KKTp9ej3uMn86vLTXtjF5YUECInNYOM9kY6hQdnJFJH6RirxzbiRJftjvLHuw==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-win-x64/-/stc-win-x64-8.0.17.tgz", + "version": "9.1.36", + "integrity": "sha512-Ibmdf+eqfe4GzSxeZz3bxW3NStfscNDVtlmjI2enjpmSIybTak3xH4JHpQHJFkJEJqx9aMndue3GFKpPs16ovw==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-win-x64/-/stc-win-x64-9.1.36.tgz", "os": [ "win32" ], @@ -33,14 +33,14 @@ "x64" ], "dependencies": { - "@ax/st-docs": "8.0.17" + "@ax/st-docs": "9.1.36" } }, "@ax/stc-linux-x64": { "name": "@ax/stc-linux-x64", - "version": "8.0.17", - "integrity": "sha512-BnpkLdkExZ6n6wyKHprrCPfQOu4FK6FTTt8ieVbrjOwABSJxez3ls9GBEpUOJKxqJa05epbR2nIHYoOO1pFKtQ==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-linux-x64/-/stc-linux-x64-8.0.17.tgz", + "version": "9.1.36", + "integrity": "sha512-mlOpXtZ1V2VZNFRSb8PyqhQpPZ0a2Q3m0J/d0n/s4iIIEaneUON/JtywCTAQdvQJYer5PuKDoZf/dBLlgNRuRQ==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/stc-linux-x64/-/stc-linux-x64-9.1.36.tgz", "os": [ "linux" ], @@ -48,14 +48,14 @@ "x64" ], "dependencies": { - "@ax/st-docs": "8.0.17" + "@ax/st-docs": "9.1.36" } }, "@ax/st-docs": { "name": "@ax/st-docs", - "version": "8.0.17", - "integrity": "sha512-bvMaT+GcSwF9ahzqI+wHBlCDfASqnJTDHwuBgVuR68u3R9cLaoOLnosw4HBoJRlBxWyooKB9bn+u++jRaekRNg==", - "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-docs/-/st-docs-8.0.17.tgz", + "version": "9.1.36", + "integrity": "sha512-xxUUXzm9VSf7p0yaOKZ+kep2+JDq9eqD2ddGNhysvocLI3SZhDxF693axQpCoJA2PxhpJdut+lXSZkCgNOVIsA==", + "resolved": "https://registry.simatic-ax.siemens.io/@ax/st-docs/-/st-docs-9.1.36.tgz", "dependencies": {} } }, diff --git a/src/apax/apax.yml b/src/apax/apax.yml index 8dbc57e34..55ce3935c 100644 --- a/src/apax/apax.yml +++ b/src/apax/apax.yml @@ -5,6 +5,6 @@ targets: - "1500" - axunit-llvm devDependencies: - "@ax/stc": 8.0.17 + "@ax/stc": 9.1.36 installStrategy: strict apaxVersion: 3.1.1 diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/geolocation.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/geolocation.g.cs index c9e4405bb..6641acdca 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/geolocation.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/geolocation.g.cs @@ -4,30 +4,30 @@ namespace Pocos { - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Location")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Location")] public partial class GeoLocation : AXSharp.Connector.IPlain { public GeoLocation() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Latitude [°]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Latitude [°]")] [AXSharp.Connector.AddedPropertiesAttribute("AttributeMinimum", -90.0f)] [AXSharp.Connector.AddedPropertiesAttribute("AttributeMaximum", 90.0f)] public Single Latitude { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Logitude [°]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Logitude [°]")] [AXSharp.Connector.AddedPropertiesAttribute("AttributeMinimum", 0.0f)] [AXSharp.Connector.AddedPropertiesAttribute("AttributeMaximum", 180.0f)] public Single Longitude { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Altitude [m]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Altitude [m]")] public Single Altitude { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Short descriptor")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Short descriptor")] public string Description { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Long descriptor")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Long descriptor")] public string LongDescription { get; set; } = string.Empty; } } \ No newline at end of file diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/ixcomponent.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/ixcomponent.g.cs index b35ab6dfc..ef1d51b1c 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/ixcomponent.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/ixcomponent.g.cs @@ -10,13 +10,13 @@ public ixcomponent() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My integer")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My integer")] public Int16 my_int { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My string")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My string")] public string my_string { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My bool")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My bool")] public Boolean my_bool { get; set; } } @@ -28,13 +28,13 @@ public ixcomponent() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My integer")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My integer")] public Int16 my_int { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My string")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My string")] public string my_string { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My bool")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My bool")] public Boolean my_bool { get; set; } } } @@ -47,13 +47,13 @@ public ixcomponent() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My integer")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My integer")] public Int16 my_int { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My string")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My string")] public string my_string { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "My bool")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"My bool")] public Boolean my_bool { get; set; } } } diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs index 8aab488f2..a46b72503 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/measurement.g.cs @@ -12,16 +12,16 @@ public Measurement() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Minimum")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Minimum")] public Single Min { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Measured")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Measured")] public Single Acquired { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Maximum")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Maximum")] public Single Max { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Measurement Result")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Measurement Result")] public Int16 Result { get; set; } } @@ -31,16 +31,16 @@ public Measurements() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Stack panel")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Stack panel")] public MeasurementExample.Measurement measurement_stack { get; set; } = new MeasurementExample.Measurement(); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Wrap panel")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Wrap panel")] public MeasurementExample.Measurement measurement_wrap { get; set; } = new MeasurementExample.Measurement(); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Grid")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Grid")] public MeasurementExample.Measurement measurement_grid { get; set; } = new MeasurementExample.Measurement(); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "Tabs")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"Tabs")] public MeasurementExample.Measurement measurement_tabs { get; set; } = new MeasurementExample.Measurement(); } } diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/border.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/border.g.cs index 4bb66b5a0..8247f433c 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/border.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/border.g.cs @@ -10,40 +10,40 @@ public border() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#Integer From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#Integer From PLC#>")] public Int16 testInteger { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#UInteger From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#UInteger From PLC#>")] public Int16 testUInteger { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#STRING From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#STRING From PLC#>")] public string testString { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#WORD From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#WORD From PLC#>")] public UInt16 testWord { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#BYTE From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#BYTE From PLC#>")] public Byte testByte { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#REAL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#REAL From PLC#>")] public Single testReal { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#LREAL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#LREAL From PLC#>")] public Double testLReal { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#BOOL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#BOOL From PLC#>")] public Boolean testBool { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#DATE From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#DATE From PLC#>")] public DateOnly TestDate { get; set; } = new DateOnly(1970, 1, 1); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#DATE_AND_TIME From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#DATE_AND_TIME From PLC#>")] public DateTime TestDateTime { get; set; } = new DateTime(1970, 1, 1); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#TIME_OF_DAY From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#TIME_OF_DAY From PLC#>")] public TimeSpan TestTimeOfDay { get; set; } = default(TimeSpan); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#ENUM Station status#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#ENUM Station status#>")] public global::enumStationStatus Status { get; set; } } } \ No newline at end of file diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/groupbox.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/groupbox.g.cs index ace39716e..f022f59bf 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/groupbox.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/groupbox.g.cs @@ -10,40 +10,40 @@ public groupbox() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#Integer From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#Integer From PLC#>")] public Int16 testInteger { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#UInteger From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#UInteger From PLC#>")] public Int16 testUInteger { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#STRING From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#STRING From PLC#>")] public string testString { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#WORD From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#WORD From PLC#>")] public UInt16 testWord { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#BYTE From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#BYTE From PLC#>")] public Byte testByte { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#REAL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#REAL From PLC#>")] public Single testReal { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#LREAL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#LREAL From PLC#>")] public Double testLReal { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#BOOL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#BOOL From PLC#>")] public Boolean testBool { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#DATE From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#DATE From PLC#>")] public DateOnly TestDate { get; set; } = new DateOnly(1970, 1, 1); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#DATE_AND_TIME From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#DATE_AND_TIME From PLC#>")] public DateTime TestDateTime { get; set; } = new DateTime(1970, 1, 1); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#TIME_OF_DAY From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#TIME_OF_DAY From PLC#>")] public TimeSpan TestTimeOfDay { get; set; } = default(TimeSpan); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#ENUM Station status#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#ENUM Station status#>")] public global::enumStationStatus Status { get; set; } } } \ No newline at end of file diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/test_primitive.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/test_primitive.g.cs index 986442579..d99b66079 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/test_primitive.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/test/test_primitive.g.cs @@ -10,40 +10,40 @@ public test_primitive() { } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#Integer From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#Integer From PLC#>")] public Int16 testInteger { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#UInteger From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#UInteger From PLC#>")] public Int16 testUInteger { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#STRING From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#STRING From PLC#>")] public string testString { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#WORD From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#WORD From PLC#>")] public UInt16 testWord { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#BYTE From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#BYTE From PLC#>")] public Byte testByte { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#REAL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#REAL From PLC#>")] public Single testReal { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#LREAL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#LREAL From PLC#>")] public Double testLReal { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#BOOL From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#BOOL From PLC#>")] public Boolean testBool { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#DATE From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#DATE From PLC#>")] public DateOnly TestDate { get; set; } = new DateOnly(1970, 1, 1); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#DATE_AND_TIME From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#DATE_AND_TIME From PLC#>")] public DateTime TestDateTime { get; set; } = new DateTime(1970, 1, 1); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#TIME_OF_DAY From PLC#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#TIME_OF_DAY From PLC#>")] public TimeSpan TestTimeOfDay { get; set; } = default(TimeSpan); - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "<#ENUM Station status#>")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"<#ENUM Station status#>")] public global::enumStationStatus Status { get; set; } } } \ No newline at end of file diff --git a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs index 39927dd2f..bf61fca07 100644 --- a/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs +++ b/src/sanbox/integration/ix-integration-plc/ix/.g/POCO/weatherBase.g.cs @@ -16,22 +16,22 @@ public weatherBase() public string Description { get; set; } = string.Empty; public string LongDescription { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "this has [ReadOnce()] attribute will be readon only once...")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"this has [ReadOnce()] attribute will be readon only once...")] public Int16 StartCounter { get; set; } - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore()] must not be displayed!")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"[RenderIgnore()] must not be displayed!")] public string RenderIgnoreAllToghether { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Control'')]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"[RenderIgnore(''Control'')]")] public string RenderIgnoreWhenControl { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Display'')]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"[RenderIgnore(''Display'')]")] public string RenderIgnoreWhenDisplay { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Control'', ''ShadowControl'')]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"[RenderIgnore(''Control'', ''ShadowControl'')]")] public string RenderIgnoreWhenControlAndShadow { get; set; } = string.Empty; - [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", "[RenderIgnore(''Display'', ''ShadowDisplay'')]")] + [AXSharp.Connector.AddedPropertiesAttribute("AttributeName", @"[RenderIgnore(''Display'', ''ShadowDisplay'')]")] public string RenderIgnoreWhenDisplayAndShadow { get; set; } = string.Empty; } } \ No newline at end of file