| 2237 | } |
| 2238 | |
| 2239 | void IncludeFile(const std::string& includedFileName, const std::string& defaultPath) |
| 2240 | { |
| 2241 | if (this->StackI >= VTK_OPENFOAM_INCLUDE_STACK_SIZE) |
| 2242 | { |
| 2243 | throw this->StackString() << "Exceeded maximum #include recursions of " |
| 2244 | << VTK_OPENFOAM_INCLUDE_STACK_SIZE; |
| 2245 | } |
| 2246 | // use the default bitwise copy constructor |
| 2247 | this->Stack[this->StackI++] = new vtkFoamFileStack(*this); |
| 2248 | this->Superclass::Reset(); |
| 2249 | |
| 2250 | this->Open(this->ExpandPath(includedFileName, defaultPath)); |
| 2251 | } |
| 2252 | |
| 2253 | // the tokenizer |
| 2254 | // returns true if success, false if encountered EOF |
no test coverage detected