ROSE  0.11.83.0
Public Member Functions | Public Attributes | List of all members
Rose::CodeGen::Driver Class Reference

Description

facilitates the manipulation of source-files (esp.

library headers and generated files).

Definition at line 22 of file Driver.h.

#include <Rose/CodeGen/Driver.h>

Collaboration diagram for Rose::CodeGen::Driver:
Collaboration graph
[legend]

Public Member Functions

 Driver (SgProject *project_)
 
 Driver (std::vector< std::string > &args)
 
size_t create (const boost::filesystem::path &path)
 Create a file ()
 
size_t add (const boost::filesystem::path &path)
 
SgGlobalgetGlobalScope (size_t file_id) const
 Retrieve the global scope of a file from its file-id.
 
void setUnparsedFile (size_t file_id) const
 Set a file to be unparsed with the project (by default file added to the driver are NOT unparsed)
 
void setCompiledFile (size_t file_id) const
 Set a file to be compiled with the project (by default file added to the driver are NOT compiled)
 
void addIncludeDirectives (size_t target_file_id, size_t header_file_id)
 Add include statement for header inside of target.
 
void addExternalHeader (size_t file_id, std::string header_name, bool is_system_header=true)
 Import external header for a given file.
 
void addPragmaDecl (size_t file_id, std::string str)
 Add a pragma at the begining of the file.
 
size_t getFileID (const boost::filesystem::path &path) const
 Retrieve file-id of associated with a file.
 
size_t getFileID (SgSourceFile *source_file) const
 Retrieve file-id of associated with a file.
 
size_t getFileID (SgScopeStatement *scope) const
 Retrieve file-id of associated with a file.
 

Public Attributes

SgProjectproject
 the Rose project
 

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