Safir SDK Core
Loading...
Searching...
No Matches
PersistenceThrottlingProperty.h
Go to the documentation of this file.
1#pragma once
2
3#include <Safir/Utilities/Internal/VisibilityHelpers.h>
4
5#ifdef safir_generated_Core_cpp_EXPORTS
6# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_EXPORT
7#else
8# define SAFIR_GENERATED_Core_API SAFIR_HELPER_DLL_IMPORT
9# define SAFIR_LIBRARY_NAME "safir_generated-Core-cpp"
10# include <Safir/Utilities/Internal/AutoLink.h>
11#endif
12#define SAFIR_GENERATED_Core_API_LOCAL SAFIR_HELPER_DLL_LOCAL
13
15
17
21namespace Safir
22{
26namespace Dob
27{
28
57} // Dob
58} // Safir
59
60
#define SAFIR_GENERATED_Core_API
Definition BackdoorCommand.h:18
This namespace contains all the functionality and definitions of the SAFIR SDK.
Definition Backdoor.h:31
std::shared_ptr< Object > ObjectPtr
A smart pointer to an Object.
Definition Object.h:44
DotsC_TypeId TypeId
A unique type identifier.
Definition Defs.h:218
Float32 Second
32 bit representation of Second.
Definition Defs.h:130
This property is used to limit writes to external storage for frequently updated entities.
Definition PersistenceThrottlingProperty.h:35
static bool IsReadOnlyWritePeriod(const Safir::Dob::Typesystem::ObjectPtr object)
static void SetWritePeriod(Safir::Dob::Typesystem::ObjectPtr object, const Safir::Dob::Typesystem::Si32::Second value)
Zero or negative values will be treated as no throttling wanted.
static void SetNullWritePeriod(Safir::Dob::Typesystem::ObjectPtr object)
static bool IsNullWritePeriod(const Safir::Dob::Typesystem::ObjectPtr object)
static bool HasProperty(const Safir::Dob::Typesystem::ObjectPtr object)
static bool IsChangedWritePeriod(const Safir::Dob::Typesystem::ObjectPtr object)
static Safir::Dob::Typesystem::Si32::Second GetWritePeriod(const Safir::Dob::Typesystem::ObjectPtr object)
Zero or negative values will be treated as no throttling wanted.