Logo Search packages:      
Sourcecode: dballe version File versions

#define DBA_STRING_TO_VAR ( str   ) 

Value:

((dba_varcode)( \
            (( ((str)[0] - '0')*10 + ((str)[1] - '0') ) << 8) | \
            ( ((str)[2] - '0')*100 + ((str)[3] - '0')*10 + ((str)[4] - '0') ) \
))
Convert a XXYYY string to a WMO variable code.

This is useful only in rare cases, such as when parsing tables; use dba_descriptor_code to parse proper entry names such as "B01003" or "D21301".

Definition at line 109 of file dba_vartable.h.

Referenced by dba_descriptor_code(), dba_record_set_from_string(), idba_scusa(), idba_setb(), idba_setc(), idba_setd(), idba_seti(), idba_setr(), and idba_unset().


Generated by  Doxygen 1.6.0   Back to index