Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

resource_tokenizer.h

Go to the documentation of this file.
00001 /*
00002         $Id: resource_tokenizer.h,v 1.2 2000/07/15 15:45:54 starch Exp $
00003 
00004         ------------------------------------------------------------------------
00005         ClanLib, the platform independent game SDK.
00006 
00007         This library is distributed under the GNU LIBRARY GENERAL PUBLIC LICENSE
00008         version 2. See COPYING for details.
00009 
00010         For a total list of contributers see CREDITS.
00011 
00012         ------------------------------------------------------------------------
00013 */
00014 
00015 #ifndef header_resource_tokenizer
00016 #define header_resource_tokenizer
00017 
00018 #include <string>
00019 
00020 class CL_InputSource;
00021 class CL_ResourceTokenizer
00022 {
00023 public:
00024         CL_ResourceTokenizer(std::string filename, CL_InputSource *input);
00025         ~CL_ResourceTokenizer();
00026 
00027         bool is_space(char c);
00028         bool is_operator(char c);
00029         bool is_remark(char c, int position);
00030         std::string get_next_token();
00031         std::string write_error(std::string err_msg);
00032 
00033 private:
00034         int cur_pos, cur_line;
00035         std::string filename;
00036         int total_size;
00037         unsigned char *config_file_data;
00038         bool in_remark;
00039 };
00040 
00041 #endif

Generated at Wed Apr 4 19:54:03 2001 for ClanLib by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001