libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00043 #ifndef LIBDXF_SRC_GROUP_H 00044 #define LIBDXF_SRC_GROUP_H 00045 00046 00047 #include "global.h" 00048 00049 00050 #ifdef __cplusplus 00051 extern "C" { 00052 #endif 00053 00054 00058 typedef struct 00059 dxf_group 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 group. */ 00074 int unnamed_flag; 00082 int selectability_flag; 00089 char *description; 00092 char *handle_entity_in_group; 00095 struct DxfGroup *next; 00098 } DxfGroup; 00099 00100 00101 DxfGroup *dxf_group_new (); 00102 DxfGroup *dxf_group_init (DxfGroup *group); 00103 DxfGroup *dxf_group_read (DxfFile *fp, DxfGroup *group); 00104 int dxf_group_write (DxfFile *fp, DxfGroup *group); 00105 int dxf_group_free (DxfGroup *group); 00106 void dxf_group_free_chain (DxfGroup *groups); 00107 int dxf_group_get_id_code (DxfGroup *group); 00108 DxfGroup *dxf_group_set_id_code (DxfGroup *group, int id_code); 00109 char *dxf_group_get_dictionary_owner_soft (DxfGroup *group); 00110 DxfGroup *dxf_group_set_dictionary_owner_soft (DxfGroup *group, char *dictionary_owner_soft); 00111 char *dxf_group_get_dictionary_owner_hard (DxfGroup *group); 00112 DxfGroup *dxf_group_set_dictionary_owner_hard (DxfGroup *group, char *dictionary_owner_hard); 00113 int dxf_group_get_unnamed_flag (DxfGroup *group); 00114 DxfGroup *dxf_group_set_unnamed_flag (DxfGroup *group, int unnamed_flag); 00115 int dxf_group_get_selectability_flag (DxfGroup *group); 00116 DxfGroup *dxf_group_set_selectability_flag (DxfGroup *group, int selectability_flag); 00117 char *dxf_group_get_description (DxfGroup *group); 00118 DxfGroup *dxf_group_set_description (DxfGroup *group, char *description); 00119 char *dxf_group_get_handle_entity_in_group (DxfGroup *group); 00120 DxfGroup *dxf_group_set_handle_entity_in_group (DxfGroup *group, char *handle_entity_in_group); 00121 DxfGroup *dxf_group_get_next (DxfGroup *group); 00122 DxfGroup *dxf_group_set_next (DxfGroup *group, DxfGroup *next); 00123 DxfGroup *dxf_group_get_last (DxfGroup *group); 00124 00125 00126 #ifdef __cplusplus 00127 } 00128 #endif 00129 00130 00131 #endif /* LIBDXF_SRC_GROUP_H */ 00132 00133 00134 /* EOF */