ROSE  0.9.6a
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
CppToCppTranslator Class Reference

Default Cpp2Cpp Translator. More...

#include <roseTranslators.h>

Inheritance diagram for CppToCppTranslator:
Collaboration diagram for CppToCppTranslator:

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

SgProjectgetAstRoot ()
 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

SgProjectsageProject
 
int statusCode
 

Detailed Description

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.

Constructor & Destructor Documentation

CppToCppTranslator::CppToCppTranslator ( )
virtual CppToCppTranslator::~CppToCppTranslator ( )
virtual

Member Function Documentation

virtual void CppToCppTranslator::setOptions ( int  argc,
char **  argv 
)
virtual
virtual void CppToCppTranslator::frontend ( )
virtual
virtual void CppToCppTranslator::midend ( )
virtual

Reimplemented in RoseTestTranslator.

virtual void CppToCppTranslator::backend ( )
virtual
virtual int CppToCppTranslator::status ( )
virtual

the status code allows to report front/mid/backend warnings and errors.

virtual void CppToCppTranslator::printMessage ( std::string  s)
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.

SgProject* CppToCppTranslator::getAstRoot ( )
protected

This function is used to get the root of the Ast which is generated by the frontend.

void CppToCppTranslator::setAstRoot ( SgProject )
protected

The AST root is set by the frontend.

void CppToCppTranslator::setStatusCode ( int  code)
inlineprotected

Definition at line 38 of file roseTranslators.h.

Member Data Documentation

SgProject* CppToCppTranslator::sageProject
private

Definition at line 40 of file roseTranslators.h.

int CppToCppTranslator::statusCode
private

Definition at line 41 of file roseTranslators.h.


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