|
| CProject (ErrorStream &e) |
|
| CProject (ErrorStream &, const char *defs, const char *decls=(const char *) 0) |
|
| CProject (ErrorStream &, int &argc, char **&argv, const char *defs=(const char *) 0, const char *decls=(const char *) 0) |
|
Config & | config () |
|
virtual void | configure (Config &) |
|
Unit * | addFile (Filename file) |
|
CScanner & | scanner () |
|
virtual Unit * | scanFile (const char *file, Source *=(Source *) 0, bool isFile=true) |
|
virtual Unit * | scanString (const char *str, const char *name=(const char *) 0) |
|
Filename | getInclString (Filename filename) |
|
| Project (ErrorStream &err) |
| Constructor.
|
|
virtual | ~Project () |
| Destructor.
|
|
void | saveMode (Mode mode=OVERWRITE, const char *suffix=0) |
| Set the mode for saving an unit.
|
|
virtual void | save (Unit *unit, bool only_modified=false) const |
| Save a unit using the name of the unit to get the full name of the file and path to save to.
|
|
virtual void | save (const char *file=0, bool only_modified=false, bool is_reg_ex=false) const |
| Save one, all or all matching files.
|
|
void | print (const char *name=0, std::ostream &out=std::cout, bool is_reg_ex=false) const |
| Print one, all or all matching units.
|
|
void | close (const char *name=0, bool destroy=false, bool is_reg_ex=false) const |
| Close one, all or all matching units.
|
|
Unit * | addFile (Filename file) |
| Add a new file to the project.
|
|
Unit * | addFile (Filename srcFile, Filename destFile) |
| Add a new file to the project.
|
|
virtual void | configure (const Config &config) |
| Configure the project from the command line or a file.
|
|
UnitManager & | unitManager () |
| Get the unit manager.
|
|
bool | isNewer (const char *file) const |
| Check if the given file in the source directory or the unit is newer than the corresponding file in the destination directory.
|
|
virtual bool | isBelow (const char *file) const |
| Check if a given file is found below any of the source paths of this project.
|
|
virtual bool | isBelow (Unit *file) const |
| Check if a given file is found below any of the source paths of this project.
|
|
| PathManager (ErrorStream &err) |
| Constructor.
|
|
| PathManager (PathManager &other) |
| Copy-constructor.
|
|
virtual | ~PathManager () |
| Destructor.
|
|
void | glob (char *filenamePattern=0) |
| Search files in the managed path matching the given filename pattern or every file if no pattern is given.
|
|
bool | iterate (PathIterator &iterator) const |
| Iterate the contents of the managed paths.
|
|
virtual void | addPath (const char *srcPath, const char *destPath=0) |
| Add a source and destination paths pair.
|
|
ProjectFile::MapConstIter | addFile (Filename filename) |
| Add a new file to the project file list.
|
|
ProjectFile::MapConstIter | addFile (Filename filename, Filename destPath) |
| Add a new file to the project file list.
|
|
void | setDest (const char *srcPath, const char *destPath) |
| Set the destination path of the given source path.
|
|
void | protect (const char *pathPattern) |
| Add a pattern for a write-protected path.
|
|
long | numPaths () const |
| Get the number of managed paths.
|
|
long | numProts () const |
| Get the number of managed write-protected paths.
|
|
const char * | src (long n) const |
| Get the n-th managed source path.
|
|
const char * | src_canon (long n) const |
| Get canonical version of the n-th managed source path.
|
|
const char * | dest (long n) const |
| Get the n-th managed destination path.
|
|
RegComp * | prot (long n) const |
| Get the n-th managed write-protected path pattern.
|
|
bool | isProtected (const char *path) const |
| Check if the given path is write-protected.
|
|
bool | isBelow (const char *filename, ProjectFile::MapConstIter &iterator) const |
| Check if a given file is directly managed by this path manager or is found below any of the managed paths.
|
|
virtual void | join (PathManager &other) |
| Join the paths of the given manager with the paths of this path manager.
|
|
ErrorStream & | err () const |
| Get the error stream used by this path manager.
|
|
bool | getDestinationPath (const char *sourcePath, std::ostream &out) const |
| Get the destination path of a given source path and write it on the given output stream.
|
|