|
RAVE
|
Property handling This object supports RAVE_OBJECT_CLONE. More...
Go to the source code of this file.
Typedefs | |
| typedef struct _RaveProperties_t | RaveProperties_t |
| Defines the area registry. | |
Functions | |
| RaveProperties_t * | RaveProperties_load (const char *filename) |
| Simplified loading function, takes filename pointing to a json file containing the properties to load. | |
| int | RaveProperties_set (RaveProperties_t *self, const char *name, RaveValue_t *value) |
| Sets the property in the table. | |
| RaveValue_t * | RaveProperties_get (RaveProperties_t *self, const char *name) |
| Returns the value with specified name. | |
| int | RaveProperties_hasProperty (RaveProperties_t *self, const char *name) |
| Returns if the set contains the specified property. | |
| void | RaveProperties_remove (RaveProperties_t *self, const char *name) |
| Removes the property from the set. | |
| int | RaveProperties_size (RaveProperties_t *self) |
| Returns the number of properties. | |
| void | RaveProperties_setOdimSources (RaveProperties_t *self, OdimSources_t *sources) |
| Sets the odim sources to the rave properties. | |
| OdimSources_t * | RaveProperties_getOdimSources (RaveProperties_t *self) |
Variables | |
| RaveCoreObjectType | RaveProperties_TYPE |
| Type definition to use when creating a rave object. | |
Property handling This object supports RAVE_OBJECT_CLONE.
| typedef struct _RaveProperties_t RaveProperties_t |
Defines the area registry.
| RaveValue_t * RaveProperties_get | ( | RaveProperties_t * | self, |
| const char * | name ) |
Returns the value with specified name.
| [in] | self | - self |
| [in] | name | - name of property |
| OdimSources_t * RaveProperties_getOdimSources | ( | RaveProperties_t * | self | ) |
| [in] | self | - self |
| int RaveProperties_hasProperty | ( | RaveProperties_t * | self, |
| const char * | name ) |
Returns if the set contains the specified property.
| [in] | self | - self |
| [in] | name | - name of property |
| RaveProperties_t * RaveProperties_load | ( | const char * | filename | ) |
Simplified loading function, takes filename pointing to a json file containing the properties to load.
Note that the configuration must be defined as a object, i.e. { }
| [in] | filename | - the area file name |
| void RaveProperties_remove | ( | RaveProperties_t * | self, |
| const char * | name ) |
Removes the property from the set.
| [in] | self | - self |
| [in] | name | - name of property |
| int RaveProperties_set | ( | RaveProperties_t * | self, |
| const char * | name, | ||
| RaveValue_t * | value ) |
Sets the property in the table.
| [in] | self | - self |
| [in] | name | - name of property |
| [in] | value | - the value |
| void RaveProperties_setOdimSources | ( | RaveProperties_t * | self, |
| OdimSources_t * | sources ) |
Sets the odim sources to the rave properties.
| [in] | self | - self |
| [in] | sources | - the odim sources |
| int RaveProperties_size | ( | RaveProperties_t * | self | ) |
Returns the number of properties.
| [in] | self | - self |
|
extern |
Type definition to use when creating a rave object.