object.h
Go to the documentation of this file.
1 
9 #ifndef _OBJECT_H_
10 #define _OBJECT_H_
11 
12 #include "vector.h"
13 #include "attribute.h"
14 
18 typedef struct Object {
23  Vector(Attribute) attributes;
28  Vector(Attribute) relations;
30  char* name;
32  unsigned int id;
33 } Object;
34 
39 void initObject(Object* obj);
40 
46 void freeObject(Object* obj, int freeItself);
47 
48 #endif // _OBJECT_H_
void initObject(Object *obj)
Initialize the Object.
Definition: object.c:10
void freeObject(Object *obj, int freeItself)
Free the Object previously initialized by initObject.
Definition: object.c:14
char * name
The name of the Object.
Definition: object.h:30
struct Object Object
Contains all the attributes and relations that compose an Object.
Represents an attribute and the value it holds.
Definition: attribute.h:21
Contains the definition of the Attribute.
unsigned int id
the unique identifier of the Object
Definition: object.h:32
Contains the definition of the vectors (dynamic & generic arrays)
Contains all the attributes and relations that compose an Object.
Definition: object.h:18
Vector(Attribute) attributes
Array of the attributes of the Object. Each attribute must be at the same index as its definition in ...