#include <chainedCompiler.hpp>

Public Member Functions | |
| ChainedCompiler (CompilerPtr aCompiler1, CompilerPtr aCompiler2) | |
| virtual void | translate (std::istream &inputStream, std::ostream &outputStream) const throw (Error) |
Protected Attributes | |
| CompilerPtr | compiler1 |
| CompilerPtr | compiler2 |
Definition at line 26 of file chainedCompiler.hpp.
| ChainedCompiler::ChainedCompiler | ( | CompilerPtr | aCompiler1, | |
| CompilerPtr | aCompiler2 | |||
| ) | [inline] |
Constructor taking two compilers as argument.
| aCompiler1 | Compiler to be applied first. | |
| aCompiler2 | Second compiler in the chain. |
Definition at line 32 of file chainedCompiler.hpp.
| void ChainedCompiler::translate | ( | std::istream & | inputStream, | |
| std::ostream & | outputStream | |||
| ) | const throw (Error) [virtual] |
Implements Compiler.
Definition at line 21 of file chainedCompiler.cpp.
00024 { 00025 ostringstream bufferOut; 00026 compiler1->translate( inputStream, bufferOut ); 00027 istringstream bufferIn( bufferOut.str() ); 00028 compiler2->translate( bufferIn, outputStream ); 00029 }
CompilerPtr ChainedCompiler::compiler1 [protected] |
Definition at line 40 of file chainedCompiler.hpp.
CompilerPtr ChainedCompiler::compiler2 [protected] |
Definition at line 42 of file chainedCompiler.hpp.