ROSE
0.9.6a
|
Default Cpp2Cpp Translator. More...
#include <roseTranslators.h>
Public Member Functions | |
CppToCppTranslator () | |
virtual | ~CppToCppTranslator () |
virtual void | setOptions (int argc, char **argv) |
virtual void | frontend () |
virtual void | midend () |
virtual void | backend () |
virtual int | status () |
the status code allows to report front/mid/backend warnings and errors. More... | |
virtual void | printMessage (std::string s) |
messages to the user (stdout). More... | |
Protected Member Functions | |
SgProject * | getAstRoot () |
This function is used to get the root of the Ast which is generated by the frontend. More... | |
void | setAstRoot (SgProject *) |
The AST root is set by the frontend. More... | |
void | setStatusCode (int code) |
Private Attributes | |
SgProject * | sageProject |
int | statusCode |
Default Cpp2Cpp Translator.
Translates a C++ program by invoking the EDG frontend and the ROSE backend, to a slightly reformated C++ program. The default midend is the identity transformation. This Translator can be customized by overriding frontend/midend/backend. Examples are CppToDotTranslator, CppToPdfTranslator, CppTestTranslator.
Definition at line 17 of file roseTranslators.h.
CppToCppTranslator::CppToCppTranslator | ( | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Reimplemented in RoseTestTranslator.
|
virtual |
Reimplemented in CppToDotTranslator, CppToPdfTranslator, and CppToVendorTranslator.
|
virtual |
the status code allows to report front/mid/backend warnings and errors.
|
virtual |
messages to the user (stdout).
Handles the impact of command line flags on printing of messages to stdout. For example, it is suppressed in preprocessing mode.
|
protected |
This function is used to get the root of the Ast which is generated by the frontend.
|
protected |
The AST root is set by the frontend.
|
inlineprotected |
Definition at line 38 of file roseTranslators.h.
|
private |
Definition at line 40 of file roseTranslators.h.
|
private |
Definition at line 41 of file roseTranslators.h.