libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00052 #ifndef LIBDXF_SRC_SORTENTSTABLE_H 00053 #define LIBDXF_SRC_SORTENTSTABLE_H 00054 00055 00056 #include "global.h" 00057 #include "util.h" 00058 00059 00060 #ifdef __cplusplus 00061 extern "C" { 00062 #endif 00063 00064 00069 typedef struct 00070 dxf_sortentstable_struct 00071 { 00072 /* Members common for all DXF objects. */ 00073 int id_code; 00078 char *dictionary_owner_soft; 00082 char *dictionary_owner_hard; 00085 /* Specific members for a DXF sortentstable. */ 00086 char *block_owner; 00090 DxfChar *entity_owner; 00095 DxfInt *sort_handle; 00099 struct DxfSortentsTable *next; 00102 } DxfSortentsTable; 00103 00104 00105 DxfSortentsTable *dxf_sortentstable_new (); 00106 DxfSortentsTable *dxf_sortentstable_init (DxfSortentsTable *sortentstable); 00107 DxfSortentsTable *dxf_sortentstable_read (DxfFile *fp, DxfSortentsTable *sortentstable); 00108 int dxf_sortentstable_write (DxfFile *fp, DxfSortentsTable *sortentstable); 00109 int dxf_sortentstable_free (DxfSortentsTable *sortentstable); 00110 void dxf_sortentstable_free_chain (DxfSortentsTable *sortentstables); 00111 int dxf_sortentstable_get_id_code (DxfSortentsTable *sortentstable); 00112 DxfSortentsTable *dxf_sortentstable_set_id_code (DxfSortentsTable *sortentstable, int id_code); 00113 char *dxf_sortentstable_get_dictionary_owner_soft (DxfSortentsTable *sortentstable); 00114 DxfSortentsTable *dxf_sortentstable_set_dictionary_owner_soft (DxfSortentsTable *sortentstable, char *dictionary_owner_soft); 00115 char *dxf_sortentstable_get_dictionary_owner_hard (DxfSortentsTable *sortentstable); 00116 DxfSortentsTable *dxf_sortentstable_set_dictionary_owner_hard (DxfSortentsTable *sortentstable, char *dictionary_owner_hard); 00117 char *dxf_sortentstable_get_block_owner (DxfSortentsTable *sortentstable); 00118 DxfSortentsTable *dxf_sortentstable_set_block_owner (DxfSortentsTable *sortentstable, char *block_owner); 00119 DxfChar *dxf_sortentstable_get_entity_owner (DxfSortentsTable *sortentstable); 00120 DxfSortentsTable *dxf_sortentstable_set_entity_owner (DxfSortentsTable *sortentstable, DxfChar *entity_owner); 00121 char *dxf_sortentstable_get_entity_owner_value (DxfChar *entity_owner); 00122 DxfChar *dxf_sortentstable_set_entity_owner_value (DxfChar *entity_owner, char *value); 00123 int dxf_sortentstable_get_entity_owner_length (DxfChar *entity_owner); 00124 DxfChar *dxf_sortentstable_set_entity_owner_length (DxfChar *entity_owner, int length); 00125 DxfChar *dxf_sortentstable_get_next_entity_owner (DxfChar *entity_owner); 00126 DxfChar *dxf_sortentstable_set_next_entity_owner (DxfChar *entity_owner, DxfChar *next); 00127 DxfChar *dxf_sortentstable_get_last_entity_owner (DxfChar *entity_owner); 00128 DxfInt *dxf_sortentstable_get_sort_handle (DxfSortentsTable *sortentstable); 00129 DxfSortentsTable *dxf_sortentstable_set_sort_handle (DxfSortentsTable *sortentstable, DxfInt *sort_handle); 00130 int dxf_sortentstable_get_sort_handle_value (DxfInt *sort_handle); 00131 DxfInt *dxf_sortentstable_set_sort_handle_value (DxfInt *sort_handle, int value); 00132 DxfInt *dxf_sortentstable_get_next_sort_handle (DxfInt *sort_handle); 00133 DxfInt *dxf_sortentstable_set_next_sort_handle (DxfInt *sort_handle, DxfInt *next); 00134 DxfInt *dxf_sortentstable_get_last_sort_handle (DxfInt *sort_handle); 00135 DxfSortentsTable *dxf_sortentstable_get_next (DxfSortentsTable *sortentstable); 00136 DxfSortentsTable *dxf_sortentstable_set_next (DxfSortentsTable *sortentstable, DxfSortentsTable *next); 00137 DxfSortentsTable *dxf_sortentstable_get_last (DxfSortentsTable *sortentstable); 00138 00139 00140 #ifdef __cplusplus 00141 } 00142 #endif 00143 00144 00145 #endif /* LIBDXF_SRC_SORTENTSTABLE_H */ 00146 00147 00148 /* EOF */