Main | License | Installation | FAQ | Screenshots | Contact | Links | Sf.net | Freshmeat.net | KDE-Apps.org
Requirements | Design | Modules | Class Hierarchy | Alphabetical List | Data Structures | File List | Data Fields | Globals | Related Pages

ChainedCompiler Class Reference
[Compilers]

#include <chainedCompiler.hpp>

Inheritance diagram for ChainedCompiler:

Inheritance graph
[legend]

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

Detailed Description

Compiler chain consisting of two compilers.
Date:
Sun Jan 09 2005
Author:
Jan Wedekind (wedesoft@users.sourceforge.net)

Definition at line 26 of file chainedCompiler.hpp.


Constructor & Destructor Documentation

ChainedCompiler::ChainedCompiler ( CompilerPtr  aCompiler1,
CompilerPtr  aCompiler2 
) [inline]

Constructor taking two compilers as argument.

Parameters:
aCompiler1 Compiler to be applied first.
aCompiler2 Second compiler in the chain.

Definition at line 32 of file chainedCompiler.hpp.

00032                                                                    :
00033     compiler1( aCompiler1 ), compiler2( aCompiler2 ) {}


Member Function Documentation

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 }


Field Documentation

CompilerPtr ChainedCompiler::compiler1 [protected]

Definition at line 40 of file chainedCompiler.hpp.

CompilerPtr ChainedCompiler::compiler2 [protected]

Definition at line 42 of file chainedCompiler.hpp.


The documentation for this class was generated from the following files:

anymeal 0.30 - recipe management software - Make the most of your food! - © Jan Wedekind Sun Sep 14 16:01:28 2008 - GNU Free Documentation License