libDXF 0.0.1
A library with DXF related functions written in C.
|
00001 00044 #ifndef LIBDXF_SRC_DICTIONARYVAR_H 00045 #define LIBDXF_SRC_DICTIONARYVAR_H 00046 00047 00048 #include "global.h" 00049 00050 00051 #ifdef __cplusplus 00052 extern "C" { 00053 #endif 00054 00055 00059 typedef struct 00060 dxf_dictionaryvar_struct 00061 { 00062 /* Members common for all DXF group objects. */ 00063 int id_code; 00068 char *dictionary_owner_soft; 00071 char *dictionary_owner_hard; 00074 /* Specific members for a DXF dictionaryvar. */ 00075 char *value; 00078 char *object_schema_number; 00081 struct DxfDictionaryVar *next; 00084 } DxfDictionaryVar; 00085 00086 00087 DxfDictionaryVar *dxf_dictionaryvar_new (); 00088 DxfDictionaryVar *dxf_dictionaryvar_init (DxfDictionaryVar *dictionaryvar); 00089 DxfDictionaryVar *dxf_dictionaryvar_read (DxfFile *fp, DxfDictionaryVar *dictionaryvar); 00090 int dxf_dictionaryvar_write (DxfFile *fp, DxfDictionaryVar *dictionaryvar); 00091 int dxf_dictionaryvar_free (DxfDictionaryVar *dictionaryvar); 00092 void dxf_dictionaryvar_free_chain (DxfDictionaryVar *dictionaryvars); 00093 int dxf_dictionaryvar_get_id_code (DxfDictionaryVar *dictionaryvar); 00094 DxfDictionaryVar *dxf_dictionaryvar_set_id_code (DxfDictionaryVar *dictionaryvar, int id_code); 00095 char *dxf_dictionaryvar_get_dictionary_owner_soft (DxfDictionaryVar *dictionaryvar); 00096 DxfDictionaryVar *dxf_dictionaryvar_set_dictionary_owner_soft (DxfDictionaryVar *dictionaryvar, char *dictionary_owner_soft); 00097 char *dxf_dictionaryvar_get_dictionary_owner_hard (DxfDictionaryVar *dictionaryvar); 00098 DxfDictionaryVar *dxf_dictionaryvar_set_dictionary_owner_hard (DxfDictionaryVar *dictionaryvar, char *dictionary_owner_hard); 00099 char *dxf_dictionaryvar_get_value (DxfDictionaryVar *dictionaryvar); 00100 DxfDictionaryVar *dxf_dictionaryvar_set_value (DxfDictionaryVar *dictionaryvar, char *value); 00101 char *dxf_dictionaryvar_get_object_schema_number (DxfDictionaryVar *dictionaryvar); 00102 DxfDictionaryVar *dxf_dictionaryvar_set_object_schema_number (DxfDictionaryVar *dictionaryvar, char *object_schema_number); 00103 DxfDictionaryVar *dxf_dictionaryvar_get_next (DxfDictionaryVar *dictionaryvar); 00104 DxfDictionaryVar *dxf_dictionaryvar_set_next (DxfDictionaryVar *dictionaryvar, DxfDictionaryVar *next); 00105 DxfDictionaryVar *dxf_dictionaryvar_get_last (DxfDictionaryVar *dictionaryvar); 00106 00107 00108 #ifdef __cplusplus 00109 } 00110 #endif 00111 00112 00113 #endif /* LIBDXF_SRC_DICTIONARYVAR_H */ 00114 00115 00116 /* EOF */