Natural Docs Version 1.2 |
NaturalDocs:: ProjectA package that manages information about the files in the source tree, as well as the list of files that have to be parsed and built. Usage and Dependencies
Summary
FILEINFOFILEHANDLEThe file handle for the file information file, FileInfo.nd. supportedFiles
A hash of all the supported files in the input directory. The keys are the file names, and the values are NaturalDocs::Project::File objects. unbuiltFilesWithContent
An existence hashref of all the files that have Natural Docs content but are not part of filesToBuild. FileInfo.ndAn index of the state of the files as of the last parse. Used to determine if files were added, deleted, or changed. FormatThe beginning of the file is the version it was generated with. Use the text file functions in NaturalDocs::Version to deal with it. The second line is the last modification time of Menu.txt. Each following line is [file name] tab [last modification time] tab [has ND content boolean] tab [default menu title] The file name is absolute. Revisions1.16
1.14
0.95
LoadAndDetectChanges
Loads the project file from disk and compares it against the files in the input directory. Project is loaded from FileInfo.nd. New and changed files will be added to FilesToParse(), and if they have content, FilesToBuild(). ReturnsReturns whether the project was changed in any way. Save
Saves the project file to disk. Everything is saved in FileInfo.nd. NaturalDocs::Menu->Save() should be called prior to this function because its last modification time is saved here. UnbuiltFilesWithContent
Returns an existence hashref of files that have Natural Docs content but are not part of FilesToBuild(). This is not a copy of the data so don’t change it. GetAllSupportedFiles
Gets all the supported files in the passed directory and its subdirectories and puts them into supportedFiles. The only attribute that will be set is NaturalDocs::Project::File->LastModified(). |
my %supportedFiles |
my %filesToParse |
my %filesToBuild |
my %filesToPurge |
my %unbuiltFilesWithContent |
sub LoadAndDetectChanges |
sub Save |
sub RebuildFile #(file) |
sub ReparseEverything |
sub RebuildEverything |
sub MigrateOldFiles |
sub FileInfoFile |
sub SymbolTableFile |
sub ClassHierarchyFile |
sub MenuFile |
sub SettingsFile |
sub PreviousSettingsFile |
sub PreviousMenuStateFile |
sub MenuBackupFile |
sub FilesToParse |
sub FilesToBuild |
sub FilesToPurge |
sub UnbuiltFilesWithContent |
sub FilesWithContent |
sub HasContent #(file) |
sub StatusOf #(file) |
sub DefaultMenuTitleOf #(file) |
| ||||||||||
| ||||||||||
sub GetAllSupportedFiles |
sub ParseForInformation #(file) |
sub Save |
sub LastModified |