12 |
// |
// |
13 |
// $Id$ |
// $Id$ |
14 |
|
|
|
#include <fstream> |
|
15 |
#include <deque> |
#include <deque> |
16 |
|
|
17 |
#include <boost/function.hpp> |
#include <boost/function.hpp> |
115 |
{ |
{ |
116 |
using namespace boost; |
using namespace boost; |
117 |
using std::string; |
using std::string; |
118 |
|
|
119 |
std::deque<std::string> line_proc; |
std::deque<std::string> line_proc; // Processed line |
120 |
++line_num; |
++line_num; |
121 |
strip_comments(line); |
strip_comments(line); |
122 |
boost::trim(line); |
boost::trim(line); |
134 |
begin++; |
begin++; |
135 |
} |
} |
136 |
|
|
137 |
if (line_proc.empty()) continue; //whatever |
if (line_proc.empty()) // ie. no tokens |
138 |
|
continue; |
139 |
|
|
140 |
std::string tfilename = line_proc.front(); |
std::string tfilename = line_proc.front(); |
141 |
line_proc.pop_front(); |
line_proc.pop_front(); |
152 |
} |
} |
153 |
add(&x); |
add(&x); |
154 |
} |
} |
155 |
|
return true; |
156 |
} |
} |
157 |
|
|
158 |
} |
} |