26#ifndef RAVE_ATTRIBUTE_H
27#define RAVE_ATTRIBUTE_H
184 const char* attrname,
char** group,
char**
name);
int RaveAttribute_getString(RaveAttribute_t *attr, char **value)
Returns the value as a string.
Definition rave_attribute.c:367
int RaveAttribute_setDoubleArray(RaveAttribute_t *attr, double *value, int len)
Sets the value as a simple 1-dimensional double array.
Definition rave_attribute.c:260
RaveAttribute_t * RaveAttributeHelp_createNamedAttribute(const char *name)
Creates a named rave attribute.
Definition rave_attribute.c:522
RaveAttribute_Format
Definition rave_attribute.h:32
@ RaveAttribute_Format_Undefined
Undefined.
Definition rave_attribute.h:33
@ RaveAttribute_Format_LongArray
Simple 1-dimensional array of longs.
Definition rave_attribute.h:37
@ RaveAttribute_Format_String
String.
Definition rave_attribute.h:34
@ RaveAttribute_Format_DoubleArray
Simple 1-dimensional array of doubles.
Definition rave_attribute.h:38
@ RaveAttribute_Format_Double
Double.
Definition rave_attribute.h:36
@ RaveAttribute_Format_Long
Long.
Definition rave_attribute.h:35
RaveAttribute_t * RaveAttributeHelp_createDoubleFromString(const char *name, const char *value)
Creates a double rave attribute from a string representation of the double value.
Definition rave_attribute.c:554
void RaveAttribute_setLong(RaveAttribute_t *attr, long value)
Sets the value as a long.
Definition rave_attribute.c:187
int RaveAttribute_setString(RaveAttribute_t *attr, const char *value)
Sets the value as a string.
Definition rave_attribute.c:208
RaveAttribute_t * RaveAttributeHelp_createStringFmt(const char *name, const char *fmt,...)
Creates a string from the provided varargs expression.
Definition rave_attribute.c:614
RaveCoreObjectType RaveAttribute_TYPE
Type definition to use when creating a rave object.
Definition rave_attribute.c:646
int RaveAttributeHelp_validateHowGroupAttributeName(const char *gname, const char *aname)
Validates an attribute name that resides in a how-main group.
Definition rave_attribute.c:498
void RaveAttribute_setDouble(RaveAttribute_t *attr, double value)
Sets the value as a double.
Definition rave_attribute.c:197
int RaveAttributeHelp_extractGroupAndName(const char *attrname, char **group, char **name)
Helper function for extracting the group and name part from a string with the format <group>/<name>.
Definition rave_attribute.c:455
int RaveAttribute_getLong(RaveAttribute_t *attr, long *value)
Returns the value as a long.
Definition rave_attribute.c:337
RaveAttribute_t * RaveAttributeHelp_createString(const char *name, const char *value)
Creates a string rave attribute.
Definition rave_attribute.c:570
int RaveAttribute_setName(RaveAttribute_t *attr, const char *name)
Sets the name of this attribute.
Definition rave_attribute.c:161
RaveAttribute_t * RaveAttributeHelp_createArrayFromData(const char *name, void *value, int len, RaveDataType type)
Creates an array from the provided data with the specified type and converts it into an appropriate a...
Definition rave_attribute.c:603
int RaveAttribute_setArrayFromData(RaveAttribute_t *attr, void *value, int len, RaveDataType type)
Sets the attribute with the array from the provided data with the specified type and converts it into...
Definition rave_attribute.c:288
RaveAttribute_t * RaveAttributeHelp_createLong(const char *name, long value)
Creates a long rave attribute.
Definition rave_attribute.c:536
int RaveAttribute_getDoubleArray(RaveAttribute_t *attr, double **value, int *len)
Returns the value as a double array.
Definition rave_attribute.c:394
int RaveAttribute_setLongArray(RaveAttribute_t *attr, long *value, int len)
Sets the value as a simple 1-dimensional long array.
Definition rave_attribute.c:232
const char * RaveAttribute_getName(RaveAttribute_t *attr)
Returns the name of this attribute.
Definition rave_attribute.c:175
RaveAttribute_t * RaveAttributeHelp_createLongArray(const char *name, long *value, int len)
Creates a long array rave attribute.
Definition rave_attribute.c:581
RaveAttribute_t * RaveAttributeHelp_createDoubleArray(const char *name, double *value, int len)
Creates a double array rave attribute.
Definition rave_attribute.c:592
int RaveAttribute_shiftArray(RaveAttribute_t *attr, int nx)
Performs a circular shift of the array.
Definition rave_attribute.c:409
int RaveAttribute_getDouble(RaveAttribute_t *attr, double *value)
Returns the value as a double.
Definition rave_attribute.c:352
RaveAttribute_Format RaveAttribute_getFormat(RaveAttribute_t *attr)
Returns the format for this attribute.
Definition rave_attribute.c:181
RaveAttribute_t * RaveAttributeHelp_createDouble(const char *name, double value)
Creates a double rave attribute.
Definition rave_attribute.c:545
int RaveAttribute_getLongArray(RaveAttribute_t *attr, long **value, int *len)
Returns the value as a long array.
Definition rave_attribute.c:379
Generic implementation of an object that is used within rave.
Type definitions for RAVE.
RaveDataType
Different data types that are supported during transformation.
Definition rave_types.h:130
Represents one scan in a volume.
Definition rave_attribute.c:46
RAVE_OBJECT_HEAD char * name
Always on top.
Definition rave_attribute.c:48
The rave object type definition.
Definition rave_object.h:52