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

xrecord.h

Go to the documentation of this file.
00001 
00037 #ifndef LIBDXF_SRC_XRECORD_H
00038 #define LIBDXF_SRC_XRECORD_H
00039 
00040 
00041 #include "global.h"
00042 
00043 
00044 #ifdef __cplusplus
00045 extern "C" {
00046 #endif
00047 
00048 
00058 typedef struct
00059 dxf_xrecord
00060 {
00061         /* Members common for all DXF objects. */
00062         int id_code;
00067         char *dictionary_owner_soft;
00070         char *dictionary_owner_hard;
00073         /* Specific members for a DXF xrecord. */
00074         int group_code;
00076         int8_t I8;
00079         int16_t I16;
00082         int32_t I32;
00085         double D;
00088         float F;
00091         char *S;
00094         struct DxfXrecord *next;
00097 } DxfXrecord;
00098 
00099 
00100 DxfXrecord *dxf_xrecord_new ();
00101 DxfXrecord *dxf_xrecord_init (DxfXrecord *xrecord);
00102 DxfXrecord *dxf_xrecord_read (DxfFile *fp, DxfXrecord *xrecord);
00103 int dxf_xrecord_write (DxfFile *fp, DxfXrecord *xrecord);
00104 int dxf_xrecord_free (DxfXrecord *xrecord);
00105 void dxf_xrecord_free_chain (DxfXrecord *xrecords);
00106 
00107 
00108 #ifdef __cplusplus
00109 }
00110 #endif
00111 
00112 
00113 #endif /* LIBDXF_SRC_XRECORD_H */
00114 
00115 
00116 /* EOF */