libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00044 #ifndef LIBDXF_SRC_BLOCK_RECORD_H 00045 #define LIBDXF_SRC_BLOCK_RECORD_H 00046 00047 00048 #include "global.h" 00049 00050 00051 #ifdef __cplusplus 00052 extern "C" { 00053 #endif 00054 00055 00063 typedef struct 00064 dxf_block_record_struct 00065 { 00066 int id_code; 00071 char *block_name; 00074 int flag; 00090 char *dictionary_owner_soft; 00094 char *dictionary_owner_hard; 00098 struct DxfBlockRecord *next; 00101 } DxfBlockRecord; 00102 00103 00104 DxfBlockRecord *dxf_block_record_new (); 00105 DxfBlockRecord *dxf_block_record_init (DxfBlockRecord *block_record); 00106 DxfBlockRecord *dxf_block_record_read (DxfFile *fp, DxfBlockRecord *block_record); 00107 int dxf_block_record_write (DxfFile *fp, DxfBlockRecord *block_record); 00108 int dxf_block_record_free (DxfBlockRecord *block_record); 00109 void dxf_block_record_free_chain (DxfBlockRecord *block_records); 00110 int dxf_block_record_get_id_code (DxfBlockRecord *block_record); 00111 DxfBlockRecord *dxf_block_record_set_id_code (DxfBlockRecord *block_record, int id_code); 00112 char *dxf_block_record_get_block_name (DxfBlockRecord *block_record); 00113 DxfBlockRecord *dxf_block_record_set_block_name (DxfBlockRecord *block_record, char *block_name); 00114 int dxf_block_record_get_flag (DxfBlockRecord *block_record); 00115 DxfBlockRecord *dxf_block_record_set_flag (DxfBlockRecord *block_record, int flag); 00116 int dxf_block_record_is_xreferenced (DxfBlockRecord *block_record); 00117 int dxf_block_record_is_xresolved (DxfBlockRecord *block_record); 00118 int dxf_block_record_is_referenced (DxfBlockRecord *block_record); 00119 char *dxf_block_record_get_dictionary_owner_soft (DxfBlockRecord *block_record); 00120 DxfBlockRecord *dxf_block_record_set_dictionary_owner_soft (DxfBlockRecord *block_record, char *dictionary_owner_soft); 00121 char *dxf_block_record_get_dictionary_owner_hard (DxfBlockRecord *block_record); 00122 DxfBlockRecord *dxf_block_record_set_dictionary_owner_hard (DxfBlockRecord *block_record, char *dictionary_owner_hard); 00123 DxfBlockRecord *dxf_block_record_get_next (DxfBlockRecord *block_record); 00124 DxfBlockRecord *dxf_block_record_set_next (DxfBlockRecord *block_record, DxfBlockRecord *next); 00125 DxfBlockRecord *dxf_block_record_get_last (DxfBlockRecord *block_record); 00126 00127 00128 #ifdef __cplusplus 00129 } 00130 #endif 00131 00132 00133 #endif /* LIBDXF_SRC_BLOCK_RECORD_H */ 00134 00135 00136 /* EOF */