libDXF 0.0.1
A library with DXF related functions written in C.

layer_index.h

Go to the documentation of this file.
00001 
00062 #ifndef LIBDXF_SRC_LAYER_INDEX_H
00063 #define LIBDXF_SRC_LAYER_INDEX_H
00064 
00065 
00066 #include "global.h"
00067 #include "layer_name.h"
00068 
00069 
00070 #ifdef __cplusplus
00071 extern "C" {
00072 #endif
00073 
00074 
00078 typedef struct
00079 dxf_layer_index_struct
00080 {
00081         /* Members common for all DXF group objects. */
00082         int id_code;
00087         char *dictionary_owner_soft;
00090         char *dictionary_owner_hard;
00093         /* Specific members for a DXF idbuffer. */
00094         DxfLayerName *layer_name;
00097         double time_stamp;
00100         int32_t number_of_entries[DXF_MAX_PARAM];
00104         char *hard_owner_reference[DXF_MAX_PARAM];
00108         struct DxfLayerIndex *next;
00111 } DxfLayerIndex;
00112 
00113 
00114 DxfLayerIndex *dxf_layer_index_new ();
00115 DxfLayerIndex *dxf_layer_index_init (DxfLayerIndex *layer_index);
00116 DxfLayerIndex *dxf_layer_index_read (DxfFile *fp, DxfLayerIndex *layer_index);
00117 int dxf_layer_index_write (DxfFile *fp, DxfLayerIndex *layer_index);
00118 int dxf_layer_index_free (DxfLayerIndex *layer_index);
00119 void dxf_layer_index_free_chain (DxfLayerIndex *layer_indices);
00120 int dxf_layer_index_get_id_code (DxfLayerIndex *layer_index);
00121 DxfLayerIndex *dxf_layer_index_set_id_code (DxfLayerIndex *layer_index, int id_code);
00122 char *dxf_layer_index_get_dictionary_owner_soft (DxfLayerIndex *layer_index);
00123 DxfLayerIndex *dxf_layer_index_set_dictionary_owner_soft (DxfLayerIndex *layer_index, char *dictionary_owner_soft);
00124 char *dxf_layer_index_get_dictionary_owner_hard (DxfLayerIndex *layer_index);
00125 DxfLayerIndex *dxf_layer_index_set_dictionary_owner_hard (DxfLayerIndex *layer_index, char *dictionary_owner_hard);
00126 double dxf_layer_index_get_time_stamp (DxfLayerIndex *layer_index);
00127 DxfLayerIndex *dxf_layer_index_set_time_stamp (DxfLayerIndex *layer_index, double time_stamp);
00128 DxfLayerIndex *dxf_layer_index_get_next (DxfLayerIndex *layer_index);
00129 DxfLayerIndex *dxf_layer_index_set_next (DxfLayerIndex *layer_index, DxfLayerIndex *next);
00130 DxfLayerIndex *dxf_layer_index_get_last (DxfLayerIndex *layer_index);
00131 
00132 
00133 #ifdef __cplusplus
00134 }
00135 #endif
00136 
00137 
00138 #endif /* LIBDXF_SRC_LAYER_INDEX_H */
00139 
00140 
00141 /* EOF */