00001
00002
00003
00004
00005
00006 #pragma once
00007
00008 #include <stdint.h>
00009
00010 namespace OpcUa
00011 {
00012 enum class StatusCode : uint32_t
00013 {
00014 Good = 0,
00015 BadUnexpectedError = 0x80010000,
00016 BadInternalError = 0x80020000,
00017 BadOutOfMemory = 0x80030000,
00018 BadResourceUnavailable = 0x80040000,
00019 BadCommunicationError = 0x80050000,
00020 BadEncodingError = 0x80060000,
00021 BadDecodingError = 0x80070000,
00022 BadEncodingLimitsExceeded = 0x80080000,
00023 BadRequestTooLarge = 0x80B80000,
00024 BadResponseTooLarge = 0x80B90000,
00025 BadUnknownResponse = 0x80090000,
00026 BadTimeout = 0x800A0000,
00027 BadServiceUnsupported = 0x800B0000,
00028 BadShutdown = 0x800C0000,
00029 BadServerNotConnected = 0x800D0000,
00030 BadServerHalted = 0x800E0000,
00031 BadNothingToDo = 0x800F0000,
00032 BadTooManyOperations = 0x80100000,
00033 BadTooManyMonitoredItems = 0x80DB0000,
00034 BadDataTypeIdUnknown = 0x80110000,
00035 BadCertificateInvalid = 0x80120000,
00036 BadSecurityChecksFailed = 0x80130000,
00037 BadCertificateTimeInvalid = 0x80140000,
00038 BadCertificateIssuerTimeInvalid = 0x80150000,
00039 BadCertificateHostNameInvalid = 0x80160000,
00040 BadCertificateUriInvalid = 0x80170000,
00041 BadCertificateUseNotAllowed = 0x80180000,
00042 BadCertificateIssuerUseNotAllowed = 0x80190000,
00043 BadCertificateUntrusted = 0x801A0000,
00044 BadCertificateRevocationUnknown = 0x801B0000,
00045 BadCertificateIssuerRevocationUnknown = 0x801C0000,
00046 BadCertificateRevoked = 0x801D0000,
00047 BadCertificateIssuerRevoked = 0x801E0000,
00048 BadUserAccessDenied = 0x801F0000,
00049 BadIdentityTokenInvalid = 0x80200000,
00050 BadIdentityTokenRejected = 0x80210000,
00051 BadSecureChannelIdInvalid = 0x80220000,
00052 BadInvalidTimestamp = 0x80230000,
00053 BadNonceInvalid = 0x80240000,
00054 BadSessionIdInvalid = 0x80250000,
00055 BadSessionClosed = 0x80260000,
00056 BadSessionNotActivated = 0x80270000,
00057 BadSubscriptionIdInvalid = 0x80280000,
00058 BadRequestHeaderInvalid = 0x802A0000,
00059 BadTimestampsToReturnInvalid = 0x802B0000,
00060 BadRequestCancelledByClient = 0x802C0000,
00061 GoodSubscriptionTransferred = 0x002D0000,
00062 GoodCompletesAsynchronously = 0x002E0000,
00063 GoodOverload = 0x002F0000,
00064 GoodClamped = 0x00300000,
00065 BadNoCommunication = 0x80310000,
00066 BadWaitingForInitialData = 0x80320000,
00067 BadNodeIdInvalid = 0x80330000,
00068 BadNodeIdUnknown = 0x80340000,
00069 BadAttributeIdInvalid = 0x80350000,
00070 BadIndexRangeInvalid = 0x80360000,
00071 BadIndexRangeNoData = 0x80370000,
00072 BadDataEncodingInvalid = 0x80380000,
00073 BadDataEncodingUnsupported = 0x80390000,
00074 BadNotReadable = 0x803A0000,
00075 BadNotWritable = 0x803B0000,
00076 BadOutOfRange = 0x803C0000,
00077 BadNotSupported = 0x803D0000,
00078 BadNotFound = 0x803E0000,
00079 BadObjectDeleted = 0x803F0000,
00080 BadNotImplemented = 0x80400000,
00081 BadMonitoringModeInvalid = 0x80410000,
00082 BadMonitoredItemIdInvalid = 0x80420000,
00083 BadMonitoredItemFilterInvalid = 0x80430000,
00084 BadMonitoredItemFilterUnsupported = 0x80440000,
00085 BadFilterNotAllowed = 0x80450000,
00086 BadStructureMissing = 0x80460000,
00087 BadEventFilterInvalid = 0x80470000,
00088 BadContentFilterInvalid = 0x80480000,
00089 BadFilterOperatorInvalid = 0x80C10000,
00090 BadFilterOperatorUnsupported = 0x80C20000,
00091 BadFilterOperandCountMismatch = 0x80C30000,
00092 BadFilterOperandInvalid = 0x80490000,
00093 BadFilterElementInvalid = 0x80C40000,
00094 BadFilterLiteralInvalid = 0x80C50000,
00095 BadContinuationPointInvalid = 0x804A0000,
00096 BadNoContinuationPoints = 0x804B0000,
00097 BadReferenceTypeIdInvalid = 0x804C0000,
00098 BadBrowseDirectionInvalid = 0x804D0000,
00099 BadNodeNotInView = 0x804E0000,
00100 BadServerUriInvalid = 0x804F0000,
00101 BadServerNameMissing = 0x80500000,
00102 BadDiscoveryUrlMissing = 0x80510000,
00103 BadSempahoreFileMissing = 0x80520000,
00104 BadRequestTypeInvalid = 0x80530000,
00105 BadSecurityModeRejected = 0x80540000,
00106 BadSecurityPolicyRejected = 0x80550000,
00107 BadTooManySessions = 0x80560000,
00108 BadUserSignatureInvalid = 0x80570000,
00109 BadApplicationSignatureInvalid = 0x80580000,
00110 BadNoValidCertificates = 0x80590000,
00111 BadIdentityChangeNotSupported = 0x80C60000,
00112 BadRequestCancelledByRequest = 0x805A0000,
00113 BadParentNodeIdInvalid = 0x805B0000,
00114 BadReferenceNotAllowed = 0x805C0000,
00115 BadNodeIdRejected = 0x805D0000,
00116 BadNodeIdExists = 0x805E0000,
00117 BadNodeClassInvalid = 0x805F0000,
00118 BadBrowseNameInvalid = 0x80600000,
00119 BadBrowseNameDuplicated = 0x80610000,
00120 BadNodeAttributesInvalid = 0x80620000,
00121 BadTypeDefinitionInvalid = 0x80630000,
00122 BadSourceNodeIdInvalid = 0x80640000,
00123 BadTargetNodeIdInvalid = 0x80650000,
00124 BadDuplicateReferenceNotAllowed = 0x80660000,
00125 BadInvalidSelfReference = 0x80670000,
00126 BadReferenceLocalOnly = 0x80680000,
00127 BadNoDeleteRights = 0x80690000,
00128 UncertainReferenceNotDeleted = 0x40BC0000,
00129 BadServerIndexInvalid = 0x806A0000,
00130 BadViewIdUnknown = 0x806B0000,
00131 BadViewTimestampInvalid = 0x80C90000,
00132 BadViewParameterMismatch = 0x80CA0000,
00133 BadViewVersionInvalid = 0x80CB0000,
00134 UncertainNotAllNodesAvailable = 0x40C00000,
00135 GoodResultsMayBeIncomplete = 0x00BA0000,
00136 BadNotTypeDefinition = 0x80C80000,
00137 UncertainReferenceOutOfServer = 0x406C0000,
00138 BadTooManyMatches = 0x806D0000,
00139 BadQueryTooComplex = 0x806E0000,
00140 BadNoMatch = 0x806F0000,
00141 BadMaxAgeInvalid = 0x80700000,
00142 BadHistoryOperationInvalid = 0x80710000,
00143 BadHistoryOperationUnsupported = 0x80720000,
00144 BadInvalidTimestampArgument = 0x80BD0000,
00145 BadWriteNotSupported = 0x80730000,
00146 BadTypeMismatch = 0x80740000,
00147 BadMethodInvalid = 0x80750000,
00148 BadArgumentsMissing = 0x80760000,
00149 BadTooManySubscriptions = 0x80770000,
00150 BadTooManyPublishRequests = 0x80780000,
00151 BadNoSubscription = 0x80790000,
00152 BadSequenceNumberUnknown = 0x807A0000,
00153 BadMessageNotAvailable = 0x807B0000,
00154 BadInsufficientClientProfile = 0x807C0000,
00155 BadStateNotActive = 0x80BF0000,
00156 BadTcpServerTooBusy = 0x807D0000,
00157 BadTcpMessageTypeInvalid = 0x807E0000,
00158 BadTcpSecureChannelUnknown = 0x807F0000,
00159 BadTcpMessageTooLarge = 0x80800000,
00160 BadTcpNotEnoughResources = 0x80810000,
00161 BadTcpInternalError = 0x80820000,
00162 BadTcpEndpointUrlInvalid = 0x80830000,
00163 BadRequestInterrupted = 0x80840000,
00164 BadRequestTimeout = 0x80850000,
00165 BadSecureChannelClosed = 0x80860000,
00166 BadSecureChannelTokenUnknown = 0x80870000,
00167 BadSequenceNumberInvalid = 0x80880000,
00168 BadProtocolVersionUnsupported = 0x80BE0000,
00169 BadConfigurationError = 0x80890000,
00170 BadNotConnected = 0x808A0000,
00171 BadDeviceFailure = 0x808B0000,
00172 BadSensorFailure = 0x808C0000,
00173 BadOutOfService = 0x808D0000,
00174 BadDeadbandFilterInvalid = 0x808E0000,
00175 UncertainNoCommunicationLastUsableValue = 0x408F0000,
00176 UncertainLastUsableValue = 0x40900000,
00177 UncertainSubstituteValue = 0x40910000,
00178 UncertainInitialValue = 0x40920000,
00179 UncertainSensorNotAccurate = 0x40930000,
00180 UncertainEngineeringUnitsExceeded = 0x40940000,
00181 UncertainSubNormal = 0x40950000,
00182 GoodLocalOverride = 0x00960000,
00183 BadRefreshInProgress = 0x80970000,
00184 BadConditionAlreadyDisabled = 0x80980000,
00185 BadConditionAlreadyEnabled = 0x80CC0000,
00186 BadConditionDisabled = 0x80990000,
00187 BadEventIdUnknown = 0x809A0000,
00188 BadEventNotAcknowledgeable = 0x80BB0000,
00189 BadDialogNotActive = 0x80CD0000,
00190 BadDialogResponseInvalid = 0x80CE0000,
00191 BadConditionBranchAlreadyAcked = 0x80CF0000,
00192 BadConditionBranchAlreadyConfirmed = 0x80D00000,
00193 BadConditionAlreadyShelved = 0x80D10000,
00194 BadConditionNotShelved = 0x80D20000,
00195 BadShelvingTimeOutOfRange = 0x80D30000,
00196 BadNoData = 0x809B0000,
00197 BadBoundNotFound = 0x80D70000,
00198 BadBoundNotSupported = 0x80D80000,
00199 BadDataLost = 0x809D0000,
00200 BadDataUnavailable = 0x809E0000,
00201 BadEntryExists = 0x809F0000,
00202 BadNoEntryExists = 0x80A00000,
00203 BadTimestampNotSupported = 0x80A10000,
00204 GoodEntryInserted = 0x00A20000,
00205 GoodEntryReplaced = 0x00A30000,
00206 UncertainDataSubNormal = 0x40A40000,
00207 GoodNoData = 0x00A50000,
00208 GoodMoreData = 0x00A60000,
00209 BadAggregateListMismatch = 0x80D40000,
00210 BadAggregateNotSupported = 0x80D50000,
00211 BadAggregateInvalidInputs = 0x80D60000,
00212 BadAggregateConfigurationRejected = 0x80DA0000,
00213 GoodDataIgnored = 0x00D90000,
00214 GoodCommunicationEvent = 0x00A70000,
00215 GoodShutdownEvent = 0x00A80000,
00216 GoodCallAgain = 0x00A90000,
00217 GoodNonCriticalTimeout = 0x00AA0000,
00218 BadInvalidArgument = 0x80AB0000,
00219 BadConnectionRejected = 0x80AC0000,
00220 BadDisconnect = 0x80AD0000,
00221 BadConnectionClosed = 0x80AE0000,
00222 BadInvalidState = 0x80AF0000,
00223 BadEndOfStream = 0x80B00000,
00224 BadNoDataAvailable = 0x80B10000,
00225 BadWaitingForResponse = 0x80B20000,
00226 BadOperationAbandoned = 0x80B30000,
00227 BadExpectedStreamToBlock = 0x80B40000,
00228 BadWouldBlock = 0x80B50000,
00229 BadSyntaxError = 0x80B60000,
00230 BadMaxConnectionsReached = 0x80B70000,
00231 };
00232
00233
00234 void CheckStatusCode(StatusCode code);
00235
00236 }
00237