Debian Codegraph @

src/FDM/UIUCModel/uiuc_parsefile.h

raw symbols SCIP
1 #pragma once
2
3 #include <simgear/compiler.h>
4
5 #include <string>
6 #include <list>
7 #include <fstream>
8
9
10 #define DELIMITERS " \t"
11 #define COMMENT "#"
12
13 #define MAXLINE 400 // Max size of the line of the input file
14
15 typedef std::list<std::string> stack; //list to contain the input file "command_lines"
16
17 class ParseFile
18 {
19 private:
20
21 ::stack commands;
22 std::ifstream file;
23 void readFile();
24
25 public:
26
27 ParseFile() {}
28 ParseFile(const std::string fileName);
29 ~ParseFile();
30
31
32 void removeComments(std::string& inputLine);
33 std::string getToken(std::string inputLine, int tokenNo);
34 void storeCommands(std::string inputLine);
35 ::stack getCommands();
36 };