libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00045 #ifndef LIBDXF_SRC_CLASS_H 00046 #define LIBDXF_SRC_CLASS_H 00047 00048 00049 #include "global.h" 00050 00051 00052 #ifdef __cplusplus 00053 extern "C" { 00054 #endif 00055 00056 00064 typedef struct 00065 dxf_class_struct 00066 { 00067 char *record_type; 00071 char *record_name; 00075 char *class_name; 00080 char *app_name; 00085 int proxy_cap_flag; 00112 int was_a_proxy_flag; 00117 int is_an_entity_flag; 00123 struct DxfClass *next; 00126 } DxfClass; 00127 00128 00129 DxfClass *dxf_class_new (); 00130 DxfClass *dxf_class_init (DxfClass *class); 00131 DxfClass *dxf_class_read (DxfFile *fp, DxfClass *class); 00132 int dxf_class_write (DxfFile *fp, DxfClass *class); 00133 int dxf_class_write_endclass (DxfFile *fp); 00134 int dxf_class_free (DxfClass *class); 00135 void dxf_class_free_chain (DxfClass *classes); 00136 char *dxf_class_get_record_type (DxfClass *class); 00137 DxfClass *dxf_class_set_record_type (DxfClass *class, char *record_type); 00138 char *dxf_class_get_record_name (DxfClass *class); 00139 DxfClass *dxf_class_set_record_name (DxfClass *class, char *record_name); 00140 char *dxf_class_get_class_name (DxfClass *class); 00141 DxfClass *dxf_class_set_class_name (DxfClass *class, char *class_name); 00142 char *dxf_class_get_app_name (DxfClass *class); 00143 DxfClass *dxf_class_set_app_name (DxfClass *class, char *app_name); 00144 int dxf_class_get_proxy_cap_flag (DxfClass *class); 00145 DxfClass *dxf_class_set_proxy_cap_flag (DxfClass *class, int proxy_cap_flag); 00146 int dxf_class_is_editable (DxfClass *class); 00147 int dxf_class_erase_allowed (DxfClass *class); 00148 int dxf_class_transform_allowed (DxfClass *class); 00149 int dxf_class_color_change_allowed (DxfClass *class); 00150 int dxf_class_layer_change_allowed (DxfClass *class); 00151 int dxf_class_linetype_change_allowed (DxfClass *class); 00152 int dxf_class_linetype_scale_change_allowed (DxfClass *class); 00153 int dxf_class_visibility_change_allowed (DxfClass *class); 00154 int dxf_class_cloning_allowed (DxfClass *class); 00155 int dxf_class_lineweight_change_allowed (DxfClass *class); 00156 int dxf_class_plot_style_name_change_allowed (DxfClass *class); 00157 int dxf_class_is_R13_format_proxy (DxfClass *class); 00158 int dxf_class_get_was_a_proxy_flag (DxfClass *class); 00159 DxfClass * dxf_class_set_was_a_proxy_flag (DxfClass *class, int was_a_proxy_flag); 00160 int dxf_class_get_is_an_entity_flag (DxfClass *class); 00161 DxfClass *dxf_class_set_is_an_entity_flag (DxfClass *class, int is_an_entity_flag); 00162 DxfClass *dxf_class_get_next (DxfClass *class); 00163 DxfClass *dxf_class_set_next (DxfClass *class, DxfClass *next); 00164 DxfClass *dxf_class_get_last (DxfClass *class); 00165 00166 00167 #ifdef __cplusplus 00168 } 00169 #endif 00170 00171 00172 #endif /* LIBDXF_SRC_CLASS_H */ 00173 00174 00175 /* EOF */