class SgProject

Represent the files in the current project, for all languages.

Public Methods

void addFile(char * dep_file_name)
Currently unimplemented.
int Clanguage()
Returns nonzero if at least one file in the project is not a Fortran file.
void deleteFile(SgFile * file)
Currently unimplemented.
SgFile& file(int i)
Returns a reference to the 'ith' file in the project.
char* fileName(int i)
Return the name of the 'ith' file in the project.
int Fortranlanguage()
Returns nonzero if every file in the project is a Fortran file.
int numberOfFiles()
Returns the number of files in the project.
SgProject(SgProject &)
SgProject(char * proj_name, int argc, char * argv[])
Sage++ is initialized by instantiating an SgProject with this constructor
~SgProject()
destructor

Documentation

A project is a group of parsed source files (.dep files) making up a program that is to be manipulated by Sage++. Currently, Sage++ can only deal with one project at a time. If multiple files in a project are desired, please see section Attributes. On disk, a project is represented as a file with name ending in .proj, containing a list of names of the component .dep files, one file name per line. A file is one of the parsed source files in a project. Each .dep file contains a parse tree. The root of the tree for a file is called the global node and its immediate children are the top level definitions and functions in the files. The file also contains a symbol table and type table.
SgProject(SgProject &)

SgProject(char * proj_name, int argc, char * argv[])
Sage++ is initialized by instantiating an SgProject with this constructor. 'proj_name' is a string containing the name of the .proj file that corresponds to the program to be manipulated.

~SgProject()
destructor

int numberOfFiles()
Returns the number of files in the project.

SgFile& file(int i)
Returns a reference to the 'ith' file in the project.

char* fileName(int i)
Return the name of the 'ith' file in the project.

int Fortranlanguage()
Returns nonzero if every file in the project is a Fortran file.

int Clanguage()
Returns nonzero if at least one file in the project is not a Fortran file.

void addFile(char * dep_file_name)
Currently unimplemented.

void deleteFile(SgFile * file)
Currently unimplemented.


This class has no child classes.

alphabetic index hierarchy of classes


Email contact: zgs@npac.syr.edu

generated by doc++