Relational Algebra Engine
Loading...
Searching...
No Matches
attribute.h
Go to the documentation of this file.
1#ifndef ATTRIBUTE_H
2#define ATTRIBUTE_H
3
4#include <stddef.h>
5
7
8typedef struct {
9 char *name;
11 void *value;
12} Attribute;
13
14Attribute *attribute_create(const char *name, AttributeType type, void *value);
16void attribute_print(const Attribute *attr);
17#endif // ATTRIBUTE_H
AttributeType
Definition attribute.h:6
@ ATTR_DOUBLE
Definition attribute.h:6
@ ATTR_SET
Definition attribute.h:6
@ ATTR_UNKNOWN
Definition attribute.h:6
@ ATTR_STRING
Definition attribute.h:6
@ ATTR_INT
Definition attribute.h:6
void attribute_destroy(Attribute *attr)
Destroy an Attribute and free its memory.
Definition attribute.c:46
Attribute * attribute_create(const char *name, AttributeType type, void *value)
Create a new Attribute.
Definition attribute.c:31
void attribute_print(const Attribute *attr)
Print an Attribute to stdout.
Definition attribute.c:79
Definition attribute.h:8
AttributeType type
Definition attribute.h:10
void * value
Definition attribute.h:11
char * name
Definition attribute.h:9