open62541 1.4.15
Open source implementation of OPC UA
Loading...
Searching...
No Matches
history_data_backend_memory.h
Go to the documentation of this file.
1/** This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
4 *
5 * Copyright 2018 (c) basysKom GmbH <opensource@basyskom.com> (Author: Peter Rustler)
6 * Copyright 2021 (c) luibass92 <luibass92@live.it> (Author: Luigi Bassetta)
7 */
8
9#ifndef UA_HISTORYDATABACKEND_MEMORY_H_
10#define UA_HISTORYDATABACKEND_MEMORY_H_
11
13
15
16#define INITIAL_MEMORY_STORE_SIZE 1000
17
19UA_HistoryDataBackend_Memory(size_t initialNodeIdStoreSize, size_t initialDataStoreSize);
20
21/** This function construct a UA_HistoryDataBackend which implements a circular buffer in memory.
22 *
23 * initialNodeIdStoreSize is the maximum number of NodeIds that will be historized. This number cannot be overcomed.
24 * initialDataStoreSize is the maximum number of UA_DataValueMemoryStoreItem that will be saved in the circular buffer for a particular NodeId.
25 * Subsequent UA_DataValueMemoryStoreItem will be saved replacing the oldest ones following the logic of circular buffers.
26 */
28UA_HistoryDataBackend_Memory_Circular(size_t initialNodeIdStoreSize, size_t initialDataStoreSize);
29
30void
32
34
35#endif /* UA_HISTORYDATABACKEND_MEMORY_H_ */
#define _UA_BEGIN_DECLS
#undef UA_DEBUG_DUMP_PKGS
Definition config.h:100
#define _UA_END_DECLS
Definition config.h:107
void UA_HistoryDataBackend_Memory_clear(UA_HistoryDataBackend *backend)
UA_HistoryDataBackend UA_HistoryDataBackend_Memory_Circular(size_t initialNodeIdStoreSize, size_t initialDataStoreSize)
This function construct a UA_HistoryDataBackend which implements a circular buffer in memory.
UA_HistoryDataBackend UA_HistoryDataBackend_Memory(size_t initialNodeIdStoreSize, size_t initialDataStoreSize)