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

object.h

Go to the documentation of this file.
00001 
00038 #ifndef LIBDXF_SRC_OBJECT_H
00039 #define LIBDXF_SRC_OBJECT_H
00040 
00041 
00042 #include "global.h"
00043 #include "param.h"
00044 
00045 
00046 #ifdef __cplusplus
00047 extern "C" {
00048 #endif
00049 
00050 
00054 typedef struct
00055 dxf_object_struct
00056 {
00057         DxfEntityType entity_type;
00059         DxfParam parameter[DXF_MAX_PARAM];
00061         struct DxfObject *next;
00064 } DxfObject;
00065 
00066 
00067 DxfObject *dxf_object_new ();
00068 DxfObject *dxf_object_init (DxfObject *object);
00069 int dxf_object_write_objects (DxfFile *fp, DxfObject *dxf_objects_list);
00070 int dxf_object_free (DxfObject *object);
00071 void dxf_object_free_chain (DxfObject *objects);
00072 DxfEntityType *dxf_object_get_entity_type (DxfObject *object);
00073 DxfObject *dxf_object_set_entity_type (DxfObject *object, DxfEntityType entity_type);
00074 DxfObject *dxf_object_get_next (DxfObject *object);
00075 DxfObject *dxf_object_set_next (DxfObject *object, DxfObject *next);
00076 DxfObject *dxf_object_get_last (DxfObject *object);
00077 
00078 
00079 #ifdef __cplusplus
00080 }
00081 #endif
00082 
00083 
00084 #endif /* LIBDXF_SRC_OBJECT_H */
00085 
00086 
00087 /* EOF */