6 dtb_Load(<database>) creates a new data base named <database>. If the database was already created, it will be cleaned.
12 dtb_Save, dtb_Clean, dtb_Create
14 int dtb_Load(char *name
);
21 dtb_Save(<database>) saves the <database> to a file. The file name will be .<database>.dtb and can be found in the current directory.
27 dtb_Clean, dtb_Load, dtb_Create
29 void dtb_Save(char *name
);
36 dtb_Clean(<database>) removes of entries in the <database>.
42 dtb_Save, dtb_Load, dtb_Create
44 void dtb_Clean(char *name
);
51 dtb_SetChar(<database>, <varname>, <value>) creates or updates the entry <varname> in the <database> with the value <value> expressed as a character. In case of type mismatch, the old type will be overriden.
57 dtb_SetString, dtb_SetLong, dtb_SetDouble, dtb_SetInt
59 void dtb_SetChar(char *dbtname
, char *name
, char value
);
66 dtb_SetString(<database>, <varname>, <value>) creates or updates the entry <varname> in the <database> with the value <value> expressed as a string. In case of type mismatch, the old type will be overriden.
72 dtb_SetChar, dtb_SetLong, dtb_SetDouble, dtb_SetInt
74 void dtb_SetString(char *dbtname
, char *name
, char *value
);
81 dtb_SetLong(<database>, <varname>, <value>) creates or updates the entry <varname> in the <database> with the value <value> expressed as a long integer. In case of type mismatch, the old type will be overriden.
87 dtb_SetChar, dtb_SetString, dtb_SetDouble, dtb_SetInt
89 void dtb_SetLong(char *dbtname
, char *name
, long value
);
96 dtb_SetInt(<database>, <varname>, <value>) creates or updates the entry <varname> in the <database> with the value <value> expressed as an integer. In case of type mismatch, the old type will be overriden.
102 dtb_SetChar, dtb_SetString, dtb_SetLong, dtb_SetDouble
104 void dtb_SetInt(char *dbtname
, char *name
, int value
);
111 dtb_SetDouble(<database>, <varname>, <value>) creates or updates the entry <varname> in the <database> with the value <value> expressed as a double. In case of type mismatch, the old type will be overriden.
117 dtb_SetChar, dtb_SetString, dtb_SetLong, dtb_SetInt
119 void dtb_SetDouble(char *dtbname
, char *name
, double value
);
126 dtb_GetDouble(<database>, <varname>) returns the double value of the entry <varname> in the <database>. If the entry does not exist or the type mismatchs, 0.0 is returned.
132 dtb_GetChar, dtb_GetString, dtb_GetLong, dtb_GetInt
134 double dtb_GetDouble(char *dtbname
, char *name
);
141 dtb_GetInt(<database>, <varname>) returns the integer value of the entry <varname> in the <database>. If the entry does not exist or the type mismatchs, 0 is returned.
147 dtb_GetChar, dtb_GetString, dtb_GetLong, dtb_GetDouble
149 int dtb_GetInt(char *dtbname
, char *name
);
156 dtb_GetLong(<database>, <varname>) returns the long integer value of the entry <varname> in the <database>. If the entry does not exist or the type mismatchs, 0 is returned.
162 dtb_GetChar, dtb_GetString, dtb_GetDouble, dtb_GetInt
164 long dtb_GetLong(char *dtbname
, char *name
);
171 dtb_GetString(<database>, <varname>) returns the string value of the entry <varname> in the <database>. If the entry does not exist or the type mismatchs, NULL is returned.
177 dtb_GetChar, dtb_GetLong, dtb_GetDouble, dtb_GetInt
179 char *dtb_GetString(char *dtbname
, char *name
);
186 dtb_Getchar(<database>, <varname>) returns the character value of the entry <varname> in the <database>. If the entry does not exist or the type mismatchs, ' ' is returned.
192 dtb_GetString, dtb_GetLong, dtb_GetDouble, dtb_GetInt
194 char dtb_GetChar(char *dtbname
, char *name
);
201 dtb_RemoveEntry(<database>, <varname>) removes the entry <varname> from the <database>. If the entry does not exist, nothing is done.
207 void dtb_RemoveEntry(char *dtbname
, char *name
);
213 dtb_Create(<database>) creates a new database named <database>. If the database already exits, the function call has no effects.
219 dtb_Load, dtb_Save, , dtb_Clean
221 void dtb_Create(char *name
);
223 void database_API_AtLoad_Initialize();