libDXF 0.0.1
A library with DXF related functions written in C.

object_id.h

Go to the documentation of this file.
00001 
00035 #ifndef LIBDXF_SRC_OBJECT_ID_H
00036 #define LIBDXF_SRC_OBJECT_ID_H
00037 
00038 
00039 #include "global.h"
00040 
00041 
00042 #ifdef __cplusplus
00043 extern "C" {
00044 #endif
00045 
00046 
00050 typedef struct
00051 dxf_object_id_struct
00052 {
00053         int group_code;
00056         char *data;
00058         int length;
00060         struct DxfObjectId *next;
00063 } DxfObjectId;
00064 
00065 
00066 DxfObjectId *dxf_object_id_new ();
00067 DxfObjectId *dxf_object_id_init (DxfObjectId *object_id);
00068 int dxf_object_id_free (DxfObjectId *object_id);
00069 void dxf_object_id_free_chain (DxfObjectId *object_ids);
00070 int dxf_object_id_get_group_code (DxfObjectId *object_id);
00071 DxfObjectId *dxf_object_id_set_group_code (DxfObjectId *object_id, int group_code);
00072 char *dxf_object_id_get_data (DxfObjectId *object_id);
00073 DxfObjectId *dxf_object_id_set_data (DxfObjectId *object_id, char *data);
00074 int dxf_object_id_get_length (DxfObjectId *object_id);
00075 DxfObjectId *dxf_object_id_set_length (DxfObjectId *object_id, int length);
00076 DxfObjectId *dxf_object_id_get_next (DxfObjectId *object_id);
00077 DxfObjectId *dxf_object_id_set_next (DxfObjectId *object_id, DxfObjectId *next);
00078 DxfObjectId *dxf_object_id_get_last (DxfObjectId *object_id);
00079 
00080 
00081 #ifdef __cplusplus
00082 }
00083 #endif
00084 
00085 
00086 #endif /* LIBDXF_SRC_OBJECT_ID_H */
00087 
00088 
00089 /* EOF */