tetengo 1.8.2
A multipurpose library set
Loading...
Searching...
No Matches
propertySet.h
Go to the documentation of this file.
1
7#if !defined(TETENGO_PROPERTY_PROPERTYSET_H)
8#define TETENGO_PROPERTY_PROPERTYSET_H
9
10#include <stdbool.h>
11#include <stddef.h>
12#include <stdint.h>
13
15
16
17#if defined(__cplusplus)
18extern "C" {
19#endif
20
21#if !defined(DOCUMENTATION)
22typedef struct tetengo_property_propertySet_tag tetengo_property_propertySet_t;
23#endif
24
25
37tetengo_property_propertySet_t*
38tetengo_property_propertySet_create(tetengo_property_storageLoader_t* p_storage_loader, const char* path);
39
45void tetengo_property_propertySet_destroy(const tetengo_property_propertySet_t* p_property_set);
46
58 const tetengo_property_propertySet_t* p_property_set,
59 const char* key,
60 bool* p_value);
61
69void tetengo_property_propertySet_setBool(tetengo_property_propertySet_t* p_property_set, const char* key, bool value);
70
82 const tetengo_property_propertySet_t* p_property_set,
83 const char* key,
84 uint32_t* p_value);
85
94 tetengo_property_propertySet_t* p_property_set,
95 const char* key,
96 uint32_t value);
97
109 const tetengo_property_propertySet_t* p_property_set,
110 const char* key,
111 char* p_value,
112 size_t value_capacity);
113
122 tetengo_property_propertySet_t* p_property_set,
123 const char* key,
124 const char* value);
125
131void tetengo_property_propertySet_update(tetengo_property_propertySet_t* p_property_set);
132
138void tetengo_property_propertySet_commit(const tetengo_property_propertySet_t* p_property_set);
139
140
141#if defined(__cplusplus)
142}
143#endif
144
145
146#endif
size_t tetengo_property_propertySet_getString(const tetengo_property_propertySet_t *p_property_set, const char *key, char *p_value, size_t value_capacity)
Returns the value in a string.
void tetengo_property_propertySet_setUint32(tetengo_property_propertySet_t *p_property_set, const char *key, uint32_t value)
Sets a value in an unsigned 32-bit integer.
bool tetengo_property_propertySet_getBool(const tetengo_property_propertySet_t *p_property_set, const char *key, bool *p_value)
Returns the value in a boolean.
void tetengo_property_propertySet_setString(tetengo_property_propertySet_t *p_property_set, const char *key, const char *value)
Sets a value in a string.
void tetengo_property_propertySet_setBool(tetengo_property_propertySet_t *p_property_set, const char *key, bool value)
Sets a value in a boolean.
void tetengo_property_propertySet_update(tetengo_property_propertySet_t *p_property_set)
Updates the property values to the latest state in the storage.
void tetengo_property_propertySet_destroy(const tetengo_property_propertySet_t *p_property_set)
Destroys a property set.
bool tetengo_property_propertySet_getUint32(const tetengo_property_propertySet_t *p_property_set, const char *key, uint32_t *p_value)
Returns the value in an unsigned 32-bit integer.
tetengo_property_propertySet_t * tetengo_property_propertySet_create(tetengo_property_storageLoader_t *p_storage_loader, const char *path)
Creates a property set.
void tetengo_property_propertySet_commit(const tetengo_property_propertySet_t *p_property_set)
Commits the property value changes to the storage.
A storage.