00001 00004 #ifndef INCLUDED_DT_VALUE_H 00005 #define INCLUDED_DT_VALUE_H 00006 00007 #include "dt_type.h" 00008 00009 00010 dt_node* dt_make_bool ( int b ); // --> YES or NO strings 00011 dt_node* dt_make_int ( long i ); 00012 dt_node* dt_make_uint ( unsigned long u ); 00013 dt_node* dt_make_float( double f ); 00014 00015 dt_node* dt_make_str ( const char* s ); 00016 00017 00018 dt_bool dt_read_bool ( dt_node const* node, int* b ); 00019 dt_bool dt_read_int ( dt_node const* node, long* i ); 00020 dt_bool dt_read_uint ( dt_node const* node, unsigned long* u ); 00021 dt_bool dt_read_float( dt_node const* node, double* f ); 00022 00023 dt_bool dt_read_strn ( dt_node const* node, char* buf, size_t bufSize ); 00024 dt_bool dt_read_str_dyn( dt_node const* node, char** s ); 00025 00026 00027 #endif/*INCLUDED_DT_VALUE_H*/