Julius Pfrommer
bce2e3b6f3
refactor(nc): Use UA_decodeXml to get the value at runtime from the original XML
2025-04-05 13:23:12 +02:00
Florian La Roche
853f148659
refactor(tools): Use pylint suggestions to refactor python code ( #7016 )
...
Use pylint suggestions to refactor python code.
Signed-off-by: Florian La Roche <Florian.LaRoche@gmail.com>
Co-authored-by: Julius Pfrommer <jpfr@users.noreply.github.com>
2025-01-15 17:04:26 +01:00
Julius Pfrommer
5ac123907f
refactor(nc): Remove Python2 compat code
2024-06-04 19:01:38 +02:00
Tomasz Kłoczko
67b25bcb2b
refactor(tools): Drop python<=3.7 support ( #6525 )
...
* drop python<=3.7 support
Filter all python code over `pyupgrade --py38-plus`.
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
* filter all code over `ruff` as well
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
---------
Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
2024-06-04 13:54:05 +02:00
Noel Graf
46c86236b4
fix(nc): check namespace when searching for HasTypeDefinition reference ( #5091 )
...
* fix(nc): check namespace when searching for HasTypeDefinition reference
2022-05-03 21:46:38 +02:00
Tobias Jung
d21451b7dd
fix(nc): fix the determinism of the generated sources of the nodeset compiler ( #5041 )
...
Currently, the nodeset compiler creates source file including the nodes of the information models
in a different order every time a rebuild is done. This is due to the use of sets which change the
order of there elements every time an element gets added. With this change the nodeset compiler
uses lists where order is relevant.
2022-04-20 08:54:48 +02:00
Andreas Ebner
74f1486a68
server(deps) update and fix ua-nodeset (5fdc7d4 to f71b3f4)
2021-11-17 19:55:58 +01:00
robertns
fde0905907
fix(nodeset_compiler): use namespace mapping for nodeid xml encoding ( #4146 )
...
Co-authored-by: andreasebner <andreas.ebner@iosb.fraunhofer.de>
Co-authored-by: Julius Pfrommer <jpfr@users.noreply.github.com>
2021-10-12 08:35:19 +02:00
Noel Graf
57d7c6bcf9
refactor(nc): Reworked the function for parsing XML values. Support for optional fields, nested structures, and unions. ( #4483 )
2021-09-27 00:16:17 +02:00
Joakim Roubert
d69ee99f4d
Fix(doc): Documentation spelling fixes ( #4472 )
...
Signed-off-by: Joakim Roubert <joakimr@axis.com>
2021-06-14 21:50:36 +02:00
Joakim Roubert
4710e8e97a
style: Consistently use "cannot"
...
In most places in the repository, "cannot" is used. This patch
replaces the few occurrences of "can't" with "cannot" to provide a
consistent user experience.
Signed-off-by: Joakim Roubert <joakim.roubert@axis.com>
2021-06-10 22:48:48 +02:00
Mebus
fd42e227e0
refactor(build): Change the Python shebangs to Python version 3 ( #3911 )
2020-09-25 14:19:45 +02:00
Wouter Nuyts
596a998d3f
fix(nc): correct nested datatype definition parsing
...
The nodeset_compiler parsing code now correctly constructs the `__definition__`
Python attribute of a `DataTypeNode` if the input UANodeSetXML satisfies the following conditions:
1. The nodeset contains a datatype node in which another datatype node is nested.
2. The enclosing datatype node is located before the nested datatype in the UANodeSetXML.
Fixes #3716
2020-06-17 15:20:25 +02:00
Silvio Traversaro
2d70f1eef3
feat(nc): add support for reading Historizing attribute in UAVariable
...
Parsing of UAVariable xml element now also supports Historizing attribute
Closes https://github.com/open62541/open62541/issues/2516
2019-09-18 06:05:25 +02:00
Stefan Profanter
01fae7b5b4
Merge remote-tracking branch '1.0' into master
2019-09-02 14:34:18 +02:00
Stefan Profanter
2d9b25905e
fix: nodeset compiler ignore SymbolicName attribute to disable warning
2019-08-30 21:27:29 +02:00
Stefan Profanter
9bdd6c3f74
fix: Nodeset compiler correctly parse default field datatype
2019-08-30 15:48:44 +02:00
Julius Pfrommer
51ed5301ef
NodeSetCompiler: Pull NamespacMapping out of datatypes.py
2019-08-17 12:09:31 +02:00
ichrispa
12980441bc
Unify license headers
2019-08-14 13:38:07 +02:00
Stefan Profanter
71d206c202
NodesetCompiler: Correct inheritance of Variable DataType and ValueRank
2019-05-08 09:07:38 +02:00
Stefan Profanter
feba0f6158
NodesetCompiler: Handle value encoding correctly and clean up code
2019-05-08 09:07:38 +02:00
Jannis Voelker
0c14cf1692
Add all attributes of VariableType nodes in the nodeset compiler
...
The compatibleDataType check in ua_services_attribute.c is updated
to support multiple levels of subtypes.
2019-05-08 09:07:38 +02:00
Stefan Profanter
fffb2f4a28
Nodeset: Support empty display name and use BrowseName as default value
...
See https://github.com/open62541/open62541/issues/2627
With this commit we support optional display name in the NodeSet2.xml.
If it is not given, we take the name part of the BrowseName.
2019-04-10 06:20:17 +00:00
matkonnerth
6afa8c0fdf
NodesetCompiler: enhancement for extension objects, array initialization
...
changes to testnodeset.xml
geändert: ../examples/nodeset/testnodeset.xml
NodesetCompiler: generate code for array within ExtensionObject
first prototype
generate nested array code
prototype nested array
added array1size
fix nodeset.xml
nodes
get the right type array
fixed datatypes.py
cleanup
cleanup debug comments
remove whitespace
remove trailing whitespaces
2019-02-25 18:26:14 +01:00
Stefan Profanter
24c1df4161
NodesetCompiler: Correctly map namespace for extension object type id
2019-02-09 10:52:46 +01:00
Stefan Profanter
064cf25800
NodesetCompiler: Add support for OptionSet
...
Fixes #2300
2019-01-31 13:47:40 +01:00
Ralph Lange
762d391990
NodesetCompiler: fix python shebang lines
2019-01-25 21:48:51 +01:00
Stefan Profanter
81148ab1eb
Fix various python code quality issues
...
See also https://lgtm.com/projects/g/open62541/open62541/alerts
2018-11-28 16:12:12 +01:00
Stefan Profanter
e1b11ea2e7
NodesetCompiler: Correctly handle namespace mapping for encoded objects. Fixes #2137
2018-11-02 10:36:56 +01:00
Stefan Profanter
824cae8fd0
NodesetCompiler: Hide valueRank not supported warning
...
The valueRank for data types is currently not used in the nodeset compiler
and thus we can hide the warning. The rest of the code still works.
This valueRank attribute should then later on be used when creating
data type definitions on the fly with fixed array size instead of malloc
arrays.
2018-11-02 10:36:10 +01:00
Julius Pfrommer
043a151047
NodesetCompiler: Remove numeric NodeClass representation; Remove constants.py
2018-06-01 18:37:15 +02:00
Jannis Voelker
4849d4b30a
Add multi-dimensional array support for VariableNode code generation
...
This patch enables the nodeset compiler to create c code for VariableNode
instances with arrayDimensions.
2018-05-22 09:52:03 +02:00
Julius Pfrommer
1473e47792
Prefer HasSubtype for the parent ref
2018-04-09 09:26:28 +02:00
Julius Pfrommer
62e0c0ab40
Nodeset: Fix parsing the EventNotifier attribute of Views
2018-04-09 09:26:28 +02:00
Julius Pfrommer
9d8157ddf2
Nodset compiler: Support aliases for all uses of NodeIds
2018-04-09 09:26:28 +02:00
Julius Pfrommer
f777fe276a
Simplify node sorting rules in the nodeset compiler
2018-04-04 13:31:01 +02:00
Stefan Profanter
2706aac3a2
Include node ids in error output
2018-02-27 22:04:46 +01:00
tbeu
983f956003
Fix typos
2017-12-13 09:15:49 +01:00
Stefan Profanter
bcd3e49656
Support DateTime as value and fix parsing of date values
2017-10-16 15:27:36 +02:00
Stefan Profanter
0f5d0af2fa
Set abstract flag for VariableType nodes
2017-10-12 17:26:32 +02:00
Stefan Profanter
a4d0ea98ab
Python improvements
...
Use StringIO and fix python3 build
2017-10-12 17:26:31 +02:00
Stefan Profanter
2f9a1ce242
Use ua-nodeset repository instead of local nodeset copy
...
Add unit test and example for PLCopen
2017-10-12 17:26:31 +02:00
Stefan Profanter
b4d3b0dab5
Add unit test for nodeset compiler and fix additional bugs
2017-10-12 17:25:07 +02:00
Stefan Profanter
9d582a7d13
Fix node ordering and successfully generate code for full NS0
2017-10-12 17:25:07 +02:00
Julius Pfrommer
0e9b6caeb2
Basis for server bootstrapping
2017-10-12 17:25:06 +02:00