26#ifndef RAVE_ATTRIBUTE_TABLE_H
27#define RAVE_ATTRIBUTE_TABLE_H
Used for keeping track on attributes.
struct _RaveAttribute_t RaveAttribute_t
Defines a rave attribute.
Definition rave_attribute.h:47
RaveCoreObjectType RaveAttributeTable_TYPE
Type definition to use when creating a rave object.
Definition rave_attribute_table.c:605
RaveObjectList_t * RaveAttributeTable_getValues(RaveAttributeTable_t *self)
Returns the values for the table.
Definition rave_attribute_table.c:517
int RaveAttributeTable_setVersion(RaveAttributeTable_t *self, RaveIO_ODIM_Version version)
Sets the default version to use for the attribute tables.
Definition rave_attribute_table.c:176
int RaveAttributeTable_shiftAttributeIfExists(RaveAttributeTable_t *self, const char *name, int nx)
Performs a circular shift of an array attribute if it exists.
Definition rave_attribute_table.c:581
RaveObjectList_t * RaveAttributeTable_getValuesVersion(RaveAttributeTable_t *self, RaveIO_ODIM_Version version)
Returns the values for the table.
Definition rave_attribute_table.c:523
int RaveAttributeTable_addAttributeVersion(RaveAttributeTable_t *self, RaveAttribute_t *attr, RaveIO_ODIM_Version version, RaveAttribute_t **translation)
Adds an attribute to the attribute table.
Definition rave_attribute_table.c:198
RaveAttribute_t * RaveAttributeTable_getAttribute(RaveAttributeTable_t *self, const char *attrname)
Returns an attribute from the attribute table according to default version.
Definition rave_attribute_table.c:317
int RaveAttributeTable_addAttribute(RaveAttributeTable_t *self, RaveAttribute_t *attr, RaveAttribute_t **translation)
Adds an attribute to the attribute table.
Definition rave_attribute_table.c:192
RaveList_t * RaveAttributeTable_getAttributeNames(RaveAttributeTable_t *self)
Returns the keys for the table at the current state.
Definition rave_attribute_table.c:501
int RaveAttributeTable_size(RaveAttributeTable_t *self)
Returns the number of items in this table.
Definition rave_attribute_table.c:477
RaveList_t * RaveAttributeTable_getAttributeNamesVersion(RaveAttributeTable_t *self, RaveIO_ODIM_Version version)
Returns the keys for the table at the current state.
Definition rave_attribute_table.c:507
RaveObjectList_t * RaveAttributeTable_getInternalValues(RaveAttributeTable_t *self)
Returns the internal values for the table.
Definition rave_attribute_table.c:558
RaveAttribute_t * RaveAttributeTable_removeAttribute(RaveAttributeTable_t *self, const char *key)
Removes the item with the specified key and returns it.
Definition rave_attribute_table.c:489
int RaveAttributeTable_hasAttribute(RaveAttributeTable_t *self, const char *key)
Returns if the specified key exists or not.
Definition rave_attribute_table.c:483
void RaveAttributeTable_destroyKeyList(RaveList_t *l)
Helper function to destroy the returned list of keys.
Definition rave_attribute_table.c:598
struct _RaveAttributeTable_t RaveAttributeTable_t
Defines a attribute tablee.
Definition rave_attribute_table.h:37
RaveIO_ODIM_Version RaveAttributeTable_getVersion(RaveAttributeTable_t *self)
Returns the default version to use for the attribute tables.
Definition rave_attribute_table.c:186
int RaveAttributeTable_shiftAttribute(RaveAttributeTable_t *self, const char *name, int nx)
Performs a circular shift of an array attribute.
Definition rave_attribute_table.c:564
void RaveAttributeTable_clear(RaveAttributeTable_t *self)
Clears all entries in the table.
Definition rave_attribute_table.c:495
RaveAttribute_t * RaveAttributeTable_getAttributeVersion(RaveAttributeTable_t *self, const char *attrname, RaveIO_ODIM_Version version)
Returns an attribute from the attribute table according to specified version.
Definition rave_attribute_table.c:323
struct _RaveList_t RaveList_t
Defines a list.
Definition rave_list.h:33
Generic implementation of an object that is used within rave.
struct _raveobjecttype RaveCoreObjectType
The rave object type definition.
Type definitions for RAVE.
RaveIO_ODIM_Version
The /Conventions version in a ODIM HDF5 file.
Definition rave_types.h:43
Implementation of a rave object hashtable that maps between strings and rave core objects.
struct _RaveObjectList_t RaveObjectList_t
Defines a list.
Definition raveobject_list.h:38
Represents one scan in a volume.
Definition rave_attribute_table.c:41
RAVE_OBJECT_HEAD RaveIO_ODIM_Version version
Always on top.
Definition rave_attribute_table.c:43