plcopen/POUVariablesCollector.py
changeset 1944 6162e34fb246
parent 1943 9dc0e38552b2
child 1945 90bf6bd94b94
--- a/plcopen/POUVariablesCollector.py	Sat Feb 17 23:58:47 2018 +0100
+++ b/plcopen/POUVariablesCollector.py	Sun Feb 18 21:30:48 2018 +0100
@@ -4,15 +4,11 @@
 # See COPYING file for copyrights details.
 
 from __future__ import absolute_import
-from plcopen.XSLTModelQuery import XSLTModelQuery
+from plcopen.XSLTModelQuery import XSLTModelQuery, _StringValue, _BoolValue, _translate_args
+from plcopen.types_enums import CLASS_TYPES, POU_TYPES, VAR_CLASS_INFOS
 
 def class_extraction(value):
-    class_type = {
-        "configuration": ITEM_CONFIGURATION,
-        "resource": ITEM_RESOURCE,
-        "action": ITEM_ACTION,
-        "transition": ITEM_TRANSITION,
-        "program": ITEM_PROGRAM}.get(value)
+    class_type = CLASS_TYPES.get(value)
     if class_type is not None:
         return class_type