ROSE 0.11.145.192
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)
 
void addCxxExtension (std::string) const
 Utility method to add possible C++ extensions (hxx/hpp are not recognized by ROSE as source-file)
 
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.
 
SgSourceFilegetSourceFile (size_t file_id) const
 Retrieve the source-file node from a 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 addExternalHeader (size_t file_id, std::string header_name, bool is_system_header=true) const
 Insert external header for a given file.
 
void addPragmaDecl (size_t file_id, std::string str) const
 Add a pragma at the begining of the file.
 
template<typename ContainerFileID0 , typename ContainerFileID1 >
void exportNameQualification (ContainerFileID0 const &unparsed_ids, ContainerFileID1 const &header_ids) const
 
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
 

Member Function Documentation

◆ exportNameQualification()

template<typename ContainerFileID0 , typename ContainerFileID1 >
void Rose::CodeGen::Driver::exportNameQualification ( ContainerFileID0 const &  unparsed_ids,
ContainerFileID1 const &  header_ids 
) const
inline

Definition at line 74 of file Driver.h.

Member Data Documentation

◆ project

SgProject* Rose::CodeGen::Driver::project

the Rose project

Definition at line 24 of file Driver.h.


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