Go to the documentation of this file.00001
00006 #ifndef __MESHKIT_PARSER_H__
00007 #define __MESHKIT_PARSER_H__
00008
00009 #include <fstream>
00010 #include <string>
00011 #include <vector>
00012 #include <iostream>
00013
00014 class CParser
00015 {
00016 public:
00017 CParser ();
00018 ~CParser ();
00019
00020 bool ReadNextLine (std::ifstream& FileInput, int& nL,
00021 std::string& szInputString,
00022 const int MAXCHARS,
00023 const std::string& szComment,
00024 bool bLowerCase = true);
00025 void GetTokens (const std::string& input, const std::string& delims,
00026 std::vector<std::string>& tokens);
00027 void FilterComment(std::string& input, const std::string& szComment);
00028 void RemoveToken (std::string& input);
00029
00030 bool EatWhiteSpace (std::string& input);
00031 private:
00032
00033 };
00034
00035 #endif