Classes | |
class | CodeGenerator |
Functions | |
def | override_types |
def | reorder_structs |
Variables | |
tuple | c = CodeGenerator(model, hpath, enumpath, rawsizepath, serializerpath, deserializerpath, constructorspath) |
string | constructorspath = "../src/protocol/constructors_auto.cpp" |
string | deserializerpath = "../src/protocol/deserialize_auto.cpp" |
list | EnabledStructs |
string | enumpath = "../include/opc/ua/protocol/enums.h" |
tuple | f = open("struct_list.txt", "w") |
string | hpath = "../include/opc/ua/protocol/protocol_auto.h" |
list | IgnoredEnums = ["IdType", "NodeIdType"] |
tuple | model = p.parse() |
list | NeedConstructor = ["RelativePathElement", "OpenSecureChannelParameters", "UserIdentityToken", "RequestHeader", "ResponseHeader", "ReadParameters", "UserIdentityToken", "BrowseDescription", "ReferenceDescription", "CreateSubscriptionParameters", "SubscriptionData", "NotificationMessage", "PublishResult", "PublishResult", "NotificationMessage", "SetPublishingModeParameters"] |
list | NoSplitStruct = ["GetEndpointsResponse", "CloseSessionRequest", "AddNodesResponse", "BrowseResponse", "HistoryReadResponse", "HistoryUpdateResponse", "RegisterServerResponse", "CloseSecureChannelRequest", "CloseSecureChannelResponse", "CloseSessionRequest", "CloseSessionResponse", "UnregisterNodesResponse", "MonitoredItemModifyRequest", "MonitoredItemsCreateRequest", "ReadResponse", "WriteResponse", "TranslateBrowsePathsToNodeIdsResponse", "DeleteSubscriptionsResponse", "DeleteMonitoredItemsResponse", "PublishRequest", "CreateMonitoredItemsResponse", "DeleteMonitoredItemsResponse", "ServiceFault", "AddReferencesRequest", "AddReferencesResponse", "ModifyMonitoredItemsResponse", "CallRequest", "CallResponse", "RepublishResponse", "DeleteSubscriptionsRequest", "DeleteSubscriptionsResponse", "DeleteNodesRequest", "DeleteNodesResponse"] |
dictionary | OverrideNameInStruct = {"CreateSubscriptionResponse": {"Parameters": "Data"}, "SetPublishingModeResponse": {"Parameters": "Result"}} |
dictionary | OverrideNames = {"RequestHeader": "Header", "ResponseHeader": "Header", "StatusCode": "Status", "NodesToRead": "AttributesToRead"} |
dictionary | OverrideStructTypeName = {"CreateSubscriptionResult": "SubscriptionData", "SetPublishingModeParameters": "PublishingModeParameters", "SetPublishingModeResult": "PublishingModeResult", "CreateMonitoredItemsParameters": "MonitoredItemsParameters"} |
dictionary | OverrideTypeInStruct = {"ActivateSessionParameters": {"UserIdentityToken": "UserIdentifyToken"}, "MonitoringParameters": {"Filter": "MonitoringFilter"}, "MonitoredItemCreateResult": {"FilterResult": "MonitoringFilter"}} |
dictionary | OverrideTypes = {"AttributeId": "AttributeId", "ResultMask": "BrowseResultMask", "NodeClassMask": "NodeClass", "AccessLevel": "VariableAccessLevel", "UserAccessLevel": "VariableAccessLevel", "NotificationData": "NotificationData"} |
tuple | p = gm.Parser(xmlpath) |
string | rawsizepath = "../src/protocol/rawsize_auto.cpp" |
string | serializerpath = "../src/protocol/serialize_auto.cpp" |
string | xmlpath = "Opc.Ua.Types.bsd" |
Generate address space c++ code from xml file specification
def generate_protocol.override_types | ( | model | ) |
Definition at line 325 of file generate_protocol.py.
def generate_protocol.reorder_structs | ( | model | ) |
Definition at line 287 of file generate_protocol.py.
tuple generate_protocol::c = CodeGenerator(model, hpath, enumpath, rawsizepath, serializerpath, deserializerpath, constructorspath) |
Definition at line 818 of file generate_protocol.py.
string generate_protocol::constructorspath = "../src/protocol/constructors_auto.cpp" |
Definition at line 788 of file generate_protocol.py.
string generate_protocol::deserializerpath = "../src/protocol/deserialize_auto.cpp" |
Definition at line 787 of file generate_protocol.py.
Definition at line 27 of file generate_protocol.py.
string generate_protocol::enumpath = "../include/opc/ua/protocol/enums.h" |
Definition at line 784 of file generate_protocol.py.
tuple generate_protocol::f = open("struct_list.txt", "w") |
Definition at line 811 of file generate_protocol.py.
string generate_protocol::hpath = "../include/opc/ua/protocol/protocol_auto.h" |
Definition at line 783 of file generate_protocol.py.
list generate_protocol::IgnoredEnums = ["IdType", "NodeIdType"] |
Definition at line 16 of file generate_protocol.py.
tuple generate_protocol::model = p.parse() |
Definition at line 791 of file generate_protocol.py.
list generate_protocol::NeedConstructor = ["RelativePathElement", "OpenSecureChannelParameters", "UserIdentityToken", "RequestHeader", "ResponseHeader", "ReadParameters", "UserIdentityToken", "BrowseDescription", "ReferenceDescription", "CreateSubscriptionParameters", "SubscriptionData", "NotificationMessage", "PublishResult", "PublishResult", "NotificationMessage", "SetPublishingModeParameters"] |
Definition at line 15 of file generate_protocol.py.
list generate_protocol::NoSplitStruct = ["GetEndpointsResponse", "CloseSessionRequest", "AddNodesResponse", "BrowseResponse", "HistoryReadResponse", "HistoryUpdateResponse", "RegisterServerResponse", "CloseSecureChannelRequest", "CloseSecureChannelResponse", "CloseSessionRequest", "CloseSessionResponse", "UnregisterNodesResponse", "MonitoredItemModifyRequest", "MonitoredItemsCreateRequest", "ReadResponse", "WriteResponse", "TranslateBrowsePathsToNodeIdsResponse", "DeleteSubscriptionsResponse", "DeleteMonitoredItemsResponse", "PublishRequest", "CreateMonitoredItemsResponse", "DeleteMonitoredItemsResponse", "ServiceFault", "AddReferencesRequest", "AddReferencesResponse", "ModifyMonitoredItemsResponse", "CallRequest", "CallResponse", "RepublishResponse", "DeleteSubscriptionsRequest", "DeleteSubscriptionsResponse", "DeleteNodesRequest", "DeleteNodesResponse"] |
Definition at line 18 of file generate_protocol.py.
dictionary generate_protocol::OverrideNameInStruct = {"CreateSubscriptionResponse": {"Parameters": "Data"}, "SetPublishingModeResponse": {"Parameters": "Result"}} |
Definition at line 21 of file generate_protocol.py.
dictionary generate_protocol::OverrideNames = {"RequestHeader": "Header", "ResponseHeader": "Header", "StatusCode": "Status", "NodesToRead": "AttributesToRead"} |
Definition at line 23 of file generate_protocol.py.
dictionary generate_protocol::OverrideStructTypeName = {"CreateSubscriptionResult": "SubscriptionData", "SetPublishingModeParameters": "PublishingModeParameters", "SetPublishingModeResult": "PublishingModeResult", "CreateMonitoredItemsParameters": "MonitoredItemsParameters"} |
Definition at line 20 of file generate_protocol.py.
dictionary generate_protocol::OverrideTypeInStruct = {"ActivateSessionParameters": {"UserIdentityToken": "UserIdentifyToken"}, "MonitoringParameters": {"Filter": "MonitoringFilter"}, "MonitoredItemCreateResult": {"FilterResult": "MonitoringFilter"}} |
Definition at line 22 of file generate_protocol.py.
dictionary generate_protocol::OverrideTypes = {"AttributeId": "AttributeId", "ResultMask": "BrowseResultMask", "NodeClassMask": "NodeClass", "AccessLevel": "VariableAccessLevel", "UserAccessLevel": "VariableAccessLevel", "NotificationData": "NotificationData"} |
Definition at line 19 of file generate_protocol.py.
tuple generate_protocol::p = gm.Parser(xmlpath) |
Definition at line 790 of file generate_protocol.py.
string generate_protocol::rawsizepath = "../src/protocol/rawsize_auto.cpp" |
Definition at line 786 of file generate_protocol.py.
string generate_protocol::serializerpath = "../src/protocol/serialize_auto.cpp" |
Definition at line 785 of file generate_protocol.py.
string generate_protocol::xmlpath = "Opc.Ua.Types.bsd" |
Definition at line 782 of file generate_protocol.py.