S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_event_manager.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
26#ifndef SOPC_EVENT_MANAGER_H_
27#define SOPC_EVENT_MANAGER_H_
28
29#include "sopc_address_space.h"
30#include "sopc_event.h"
31
36
54 SOPC_Server_Event_Types** outEventTypes);
55
65bool SOPC_EventManager_HasEventType(const SOPC_Server_Event_Types* eventTypes, const SOPC_NodeId* eventTypeId);
66
84 const SOPC_NodeId* eventTypeId,
85 int32_t nbQNamePath,
86 const SOPC_QualifiedName* qNamePath);
87
101 const SOPC_NodeId* eventTypeId);
102
109
125 const SOPC_QualifiedName* qNamePath,
126 char** qnPathStr);
127
146 const char* qnPathStr,
147 int32_t* nbQnPath,
148 SOPC_QualifiedName** qNamePath);
149
150#endif // SOPC_EVENT_MANAGER_H_
struct _SOPC_AddressSpace SOPC_AddressSpace
Definition sopc_address_space.h:68
struct _SOPC_Dict SOPC_Dict
Definition sopc_dict.h:32
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
Interface to manipulate and customize OPC UA event instances.
struct _SOPC_Event SOPC_Event
The abstract structure type for an OpcUa event instance that might be triggered from nodes.
Definition sopc_event.h:46
SOPC_Event * SOPC_EventManager_CreateEventInstance(const SOPC_Server_Event_Types *eventTypes, const SOPC_NodeId *eventTypeId)
Creates an event instance based on the given reference event types. The EventId value is set to a uni...
SOPC_ReturnStatus SOPC_EventManagerUtil_cStringPathToQnPath(char qnPathSep, const char *qnPathStr, int32_t *nbQnPath, SOPC_QualifiedName **qNamePath)
Utility function to parse a C string version of a browse path composed of qualified names and separat...
bool SOPC_EventManager_HasEventType(const SOPC_Server_Event_Types *eventTypes, const SOPC_NodeId *eventTypeId)
Checks if the given event type id is configured in the server event types provided.
SOPC_ReturnStatus SOPC_EventManagerUtil_QnPathToCString(uint16_t nbQnPath, const SOPC_QualifiedName *qNamePath, char **qnPathStr)
Utility function to generate a C string version of a browse path composed of qualified names and sepa...
void SOPC_EventManager_Delete(SOPC_Server_Event_Types **eventTypes)
Clears the given event types content, the pointed configuration is deallocated and pointer is set to ...
SOPC_Dict SOPC_Server_Event_Types
OPC UA server events types configuration.
Definition sopc_event_manager.h:35
SOPC_ReturnStatus SOPC_EventManager_CreateEventTypes(SOPC_AddressSpace *addSpace, SOPC_Server_Event_Types **outEventTypes)
Creates the server event types based on given server address space. The BaseEventType is used to find...
SOPC_ReturnStatus SOPC_EventManager_HasEventTypeAndBrowsePath(const SOPC_Server_Event_Types *eventTypes, const SOPC_NodeId *eventTypeId, int32_t nbQNamePath, const SOPC_QualifiedName *qNamePath)
Checks both if the given event type id is configured in the server event types and if the associated ...
This structure describes a basic NodeID in OPC UA.
Definition sopc_builtintypes.h:189
Definition sopc_builtintypes.h:228