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

object_ptr.h

Go to the documentation of this file.
00001 
00043 #ifndef LIBDXF_SRC_OBJECT_PTR_H
00044 #define LIBDXF_SRC_OBJECT_PTR_H
00045 
00046 
00047 #include "global.h"
00048 
00049 
00050 #ifdef __cplusplus
00051 extern "C" {
00052 #endif
00053 
00054 
00058 typedef struct
00059 dxf_object_ptr_struct
00060 {
00061         /* Members common for all DXF objects. */
00062         int id_code;
00067         char *dictionary_owner_soft;
00070         char *dictionary_owner_hard;
00073         /* Specific members for a DXF object_ptr. */
00074         DxfChar *xdata;
00077         struct DxfObjectPtr *next;
00080 } DxfObjectPtr;
00081 
00082 
00083 DxfObjectPtr *dxf_object_ptr_new ();
00084 DxfObjectPtr *dxf_object_ptr_init (DxfObjectPtr *object_ptr);
00085 DxfObjectPtr *dxf_object_ptr_read (DxfFile *fp, DxfObjectPtr *object_ptr);
00086 int dxf_object_ptr_write (DxfFile *fp, DxfObjectPtr *object_ptr);
00087 int dxf_object_ptr_free (DxfObjectPtr *object_ptr);
00088 void dxf_object_ptr_free_chain (DxfObjectPtr *objectptrs);
00089 int dxf_object_ptr_get_id_code (DxfObjectPtr *object_ptr);
00090 DxfObjectPtr *dxf_object_ptr_set_id_code (DxfObjectPtr *object_ptr, int id_code);
00091 char *dxf_object_ptr_get_dictionary_owner_soft (DxfObjectPtr *object_ptr);
00092 DxfObjectPtr *dxf_object_ptr_set_dictionary_owner_soft (DxfObjectPtr *object_ptr, char *dictionary_owner_soft);
00093 char *dxf_object_ptr_get_dictionary_owner_hard (DxfObjectPtr *object_ptr);
00094 DxfObjectPtr *dxf_object_ptr_set_dictionary_owner_hard (DxfObjectPtr *object_ptr, char *dictionary_owner_hard);
00095 DxfObjectPtr *dxf_object_ptr_get_next (DxfObjectPtr *object_ptr);
00096 DxfObjectPtr *dxf_object_ptr_set_next (DxfObjectPtr *object_ptr, DxfObjectPtr *next);
00097 DxfObjectPtr *dxf_object_ptr_get_last (DxfObjectPtr *object_ptr);
00098 
00099 
00100 #ifdef __cplusplus
00101 }
00102 #endif
00103 
00104 
00105 #endif /* LIBDXF_SRC_OBJECT_PTR_H */
00106 
00107 
00108 /* EOF */