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

comment.h

Go to the documentation of this file.
00001 
00042 #ifndef LIBDXF_SRC_COMMENT_H
00043 #define LIBDXF_SRC_COMMENT_H
00044 
00045 
00046 #include "global.h"
00047 
00048 
00049 #ifdef __cplusplus
00050 extern "C" {
00051 #endif
00052 
00053 
00057 typedef struct
00058 dxf_comment_struct
00059 {
00060         int id_code;
00065         char *value;
00068         struct DxfComment *next;
00071 } DxfComment;
00072 
00073 
00074 DxfComment *dxf_comment_new ();
00075 DxfComment *dxf_comment_init (DxfComment *comment);
00076 int dxf_comment_write (DxfFile *fp, DxfComment *comment);
00077 int dxf_comment_free (DxfComment *comment);
00078 void dxf_comment_free_chain (DxfComment *comments);
00079 int dxf_comment_get_id_code (DxfComment *comment);
00080 DxfComment *dxf_comment_set_id_code (DxfComment *comment, int id_code);
00081 char *dxf_comment_get_value (DxfComment *comment);
00082 DxfComment *dxf_comment_set_value (DxfComment *comment, char *value);
00083 DxfComment *dxf_comment_get_next (DxfComment *comment);
00084 DxfComment *dxf_comment_set_next (DxfComment *comment, DxfComment *next);
00085 DxfComment *dxf_comment_get_last (DxfComment *comment);
00086 
00087 
00088 #ifdef __cplusplus
00089 }
00090 #endif
00091 
00092 
00093 #endif /* LIBDXF_SRC_COMMENT_H */
00094 
00095 
00096 /* EOF */