Unify Framework Lib 1.6.0
attribute_mapper_scope_settings.hpp
Go to the documentation of this file.
1/******************************************************************************
2 * # License
3 * <b>Copyright 2022 Silicon Laboratories Inc. www.silabs.com</b>
4 ******************************************************************************
5 * The licensor of this software is Silicon Laboratories Inc. Your use of this
6 * software is governed by the terms of Silicon Labs Master Software License
7 * Agreement (MSLA) available at
8 * www.silabs.com/about-us/legal/master-software-license-agreement. This
9 * software is distributed to you in Source Code format and is governed by the
10 * sections of the MSLA applicable to Source Code.
11 *
12 *****************************************************************************/
13
24#ifndef ATTRIBUTE_MAPPER_SCOPE_SETTINGS_HPP
25#define ATTRIBUTE_MAPPER_SCOPE_SETTINGS_HPP
26
28#include "attribute_store.h"
29#include <stdbool.h>
30
34// Create attributes only if explicitly asked
36 // Create attribute only if explicity requested (Existence value type)
38 // Create attribute for Reported or Existence value types.
40 // Create attribute for Desired, Reported or Existence value types.
42};
43
44#ifdef __cplusplus
45extern "C" {
46#endif
47
57 const ast::scope_settings_t &scope_settings);
58
68
79bool should_create_attributes(char updated_value_type,
80 const ast::scope_settings_t &scope_settings,
81 result_type_t evaluation_result);
82
93 attribute_store_type_t engine_configured_type,
94 const ast::scope_settings_t &scope_settings);
95
96#ifdef __cplusplus
97}
98#endif
99
100#endif //ATTRIBUTE_MAPPER_SCOPE_SETTINGS_HPP
uint32_t attribute_store_type_t
Definition: attribute_store.h:50
float result_type_t
Definition: attribute_mapper_ast.hpp:36
bool should_create_attributes(char updated_value_type, const ast::scope_settings_t &scope_settings, result_type_t evaluation_result)
Looks up in the Scope settings if create_attributes is enabled.
attribute_store_type_t get_common_parent_type_scope_configuration(attribute_store_type_t engine_configured_type, const ast::scope_settings_t &scope_settings)
Looks up in the Scope settings if common_parent_type is configured.
bool is_chain_reaction_enabled(const ast::scope_settings_t &scope_settings)
Looks up in the Scope settings if chain_reaction is enabled.
bool is_clear_desired_value_enabled(const ast::scope_settings_t &scope_settings)
Looks up in the Scope settings if clear_desired is enabled.
ATTRIBUTE_CREATION_SETTINGS
Available values for the create_attributes setting.
Definition: attribute_mapper_scope_settings.hpp:35
@ CREATION_SETTING_DRE_VALUE_TYPES
Definition: attribute_mapper_scope_settings.hpp:41
@ CREATION_SETTING_RE_VALUE_TYPES
Definition: attribute_mapper_scope_settings.hpp:39
@ CREATION_SETTING_E_ONLY
Definition: attribute_mapper_scope_settings.hpp:37
std::vector< scope_setting > scope_settings_t
Type for Scope settings list.
Definition: attribute_mapper_ast.hpp:226