libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00043 #ifndef LIBDXF_SRC_DICTIONARY_H 00044 #define LIBDXF_SRC_DICTIONARY_H 00045 00046 00047 #include "global.h" 00048 00049 00050 #ifdef __cplusplus 00051 extern "C" { 00052 #endif 00053 00054 00058 typedef struct 00059 dxf_dictionary_struct 00060 { 00061 /* Members common for all DXF group objects. */ 00062 int id_code; 00067 char *dictionary_owner_soft; 00070 char *dictionary_owner_hard; 00073 /* Specific members for a DXF dictionary. */ 00074 char *entry_name; 00077 char *entry_object_handle; 00080 struct DxfDictionary *next; 00083 } DxfDictionary; 00084 00085 00086 DxfDictionary *dxf_dictionary_new (); 00087 DxfDictionary *dxf_dictionary_init (DxfDictionary *dictionary); 00088 DxfDictionary *dxf_dictionary_read (DxfFile *fp, DxfDictionary *dictionary); 00089 int dxf_dictionary_write (DxfFile *fp, DxfDictionary *dictionary); 00090 int dxf_dictionary_free (DxfDictionary *dictionary); 00091 void dxf_dictionary_free_chain (DxfDictionary *dictionaries); 00092 int dxf_dictionary_get_id_code (DxfDictionary *dictionary); 00093 DxfDictionary *dxf_dictionary_set_id_code (DxfDictionary *dictionary, int id_code); 00094 char *dxf_dictionary_get_dictionary_owner_soft (DxfDictionary *dictionary); 00095 DxfDictionary *dxf_dictionary_set_dictionary_owner_soft (DxfDictionary *dictionary, char *dictionary_owner_soft); 00096 char *dxf_dictionary_get_dictionary_owner_hard (DxfDictionary *dictionary); 00097 DxfDictionary *dxf_dictionary_set_dictionary_owner_hard (DxfDictionary *dictionary, char *dictionary_owner_hard); 00098 char *dxf_dictionary_get_entry_name (DxfDictionary *dictionary); 00099 DxfDictionary *dxf_dictionary_set_entry_name (DxfDictionary *dictionary, char *entry_name); 00100 char *dxf_dictionary_get_entry_object_handle (DxfDictionary *dictionary); 00101 DxfDictionary *dxf_dictionary_set_entry_object_handle (DxfDictionary *dictionary, char *entry_object_handle); 00102 DxfDictionary *dxf_dictionary_get_next (DxfDictionary *dictionary); 00103 DxfDictionary *dxf_dictionary_set_next (DxfDictionary *dictionary, DxfDictionary *next); 00104 DxfDictionary *dxf_dictionary_get_last (DxfDictionary *dictionary); 00105 00106 00107 #ifdef __cplusplus 00108 } 00109 #endif 00110 00111 00112 #endif /* LIBDXF_SRC_DICTIONARY_H */ 00113 00114 00115 /* EOF */