| 198 | { |
| 199 | public: |
| 200 | bdf_parser( std::istream& in ) : in_( in ) |
| 201 | { |
| 202 | std::string str_tmp; |
| 203 | int int_tmp; |
| 204 | |
| 205 | str_tmp = "STARTFONT"; int_tmp = STARTFONT; keyword_map.add( str_tmp, int_tmp ); |
| 206 | str_tmp = "FONTBOUNDINGBOX";int_tmp = FONTBOUNDINGBOX; keyword_map.add( str_tmp, int_tmp ); |
| 207 | str_tmp = "DWIDTH"; int_tmp = DWIDTH; keyword_map.add( str_tmp, int_tmp ); |
| 208 | str_tmp = "CHARS"; int_tmp = CHARS; keyword_map.add( str_tmp, int_tmp ); |
| 209 | str_tmp = "STARTCHAR"; int_tmp = STARTCHAR; keyword_map.add( str_tmp, int_tmp ); |
| 210 | str_tmp = "ENCODING"; int_tmp = ENCODING; keyword_map.add( str_tmp, int_tmp ); |
| 211 | str_tmp = "BBX"; int_tmp = BBX; keyword_map.add( str_tmp, int_tmp ); |
| 212 | str_tmp = "BITMAP"; int_tmp = BITMAP; keyword_map.add( str_tmp, int_tmp ); |
| 213 | str_tmp = "ENDCHAR"; int_tmp = ENDCHAR; keyword_map.add( str_tmp, int_tmp ); |
| 214 | str_tmp = "ENDFONT"; int_tmp = ENDFONT; keyword_map.add( str_tmp, int_tmp ); |
| 215 | str_tmp = "DEFAULT_CHAR"; int_tmp = DEFAULT_CHAR; keyword_map.add( str_tmp, int_tmp ); |
| 216 | |
| 217 | tokzr.set_identifier_token( tokzr.uppercase_letters(), tokzr.uppercase_letters() + "_" ); |
| 218 | tokzr.set_stream( in ); |
| 219 | |
| 220 | } |
| 221 | |
| 222 | enum bdf_enums |
| 223 | { |