Class TPasDoc
Unit
Declaration
type TPasDoc = class(TComponent)
Description
The main object in the pasdoc application; first scans parameters, then parses files. All parsed units are then given to documentation generator, which creates one or more documentation output files.
Hierarchy
- TObject
- TPersistent
- TComponent
- TPasDoc
Overview
Methods
procedure RemoveExcludedItems(const c: TPasItems); |
|
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
|
constructor Create(AOwner: TComponent); override; |
|
destructor Destroy; override; |
|
procedure AddSourceFileNames(const AFileNames: TStringList); |
|
procedure AddSourceFileNamesFromFile(const FileName: string; DashMeansStdin: boolean); |
|
procedure DoError(const AMessage: string; const AArguments: array of const; const AExitCode: Word); |
|
procedure DoMessage(const AVerbosity: Cardinal; const AMessageType: TPasDocMessageType; const AMessage: string; const AArguments: array of const); |
|
procedure GenMessage(const MessageType: TPasDocMessageType; const AMessage: string; const AVerbosity: Cardinal); |
|
procedure Execute; |
Properties
property Units: TPasUnits read FUnits; |
|
property Conclusion: TExternalItem read FConclusion; |
|
property Introduction: TExternalItem read FIntroduction; |
|
property AdditionalFiles: TExternalItemList read FAdditionalFiles; |
|
property DescriptionFileNames: TStringVector
read FDescriptionFileNames write SetDescriptionFileNames; |
|
property Directives: TStringVector read FDirectives write SetDirectives; |
|
property IncludeDirectories: TStringVector read FIncludeDirectories write
SetIncludeDirectories; |
|
property OnWarning: TPasDocMessageEvent read FOnMessage write FOnMessage stored false; |
|
property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage; |
|
property ProjectName: string read FProjectName write FProjectName; |
|
property SourceFileNames: TStringVector read FSourceFileNames write
SetSourceFileNames; |
|
property Title: string read FTitle write FTitle; |
|
property Verbosity: Cardinal read FVerbosity write FVerbosity
default DEFAULT_VERBOSITY_LEVEL; |
|
property StarOnly: boolean read GetStarOnly write SetStarOnly stored false; |
|
property CommentMarkers: TStringList read FCommentMarkers write SetCommentMarkers; |
|
property IgnoreMarkers: TStringList read FIgnoreMarkers write SetIgnoreMarkers; |
|
property MarkerOptional: boolean read FMarkerOptional write FMarkerOptional
default false; |
|
property IgnoreLeading: string read FIgnoreLeading write FIgnoreLeading; |
|
property Generator: TDocGenerator read FGenerator write SetGenerator; |
|
property ShowVisibilities: TVisibilities read FShowVisibilities write FShowVisibilities; |
|
property CacheDir: string read FCacheDir write FCacheDir; |
|
property SortSettings: TSortSettings
read FSortSettings write FSortSettings default []; |
|
property IntroductionFileName: string read FIntroductionFileName
write FIntroductionFileName; |
|
property ConclusionFileName: string read FConclusionFileName
write FConclusionFileName; |
|
property AdditionalFilesNames: TStringList read FAdditionalFilesNames; |
|
property ImplicitVisibility: TImplicitVisibility
read FImplicitVisibility write FImplicitVisibility default ivPublic; |
|
property HandleMacros: boolean
read FHandleMacros write FHandleMacros default true; |
|
property AutoLink: boolean
read FAutoLink write FAutoLink default false; |
|
property AutoBackComments: boolean
read FAutoBackComments write FAutoBackComments default false; |
|
property InfoMergeType: TInfoMergeType
read FInfoMergeType write FInfoMergeType; |
Description
Methods
procedure RemoveExcludedItems(const c: TPasItems); |
|
Searches the description of each TPasUnit item in the collection for an excluded tag. If one is found, the item is removed from the collection. If not, the fields, methods and properties collections are called with RemoveExcludedItems If the collection is empty after removal of all items, it is disposed of and the variable is set to nil. |
procedure Notification(AComponent: TComponent; Operation: TOperation); override; |
|
constructor Create(AOwner: TComponent); override; |
|
Creates object and sets fields to default values. |
destructor Destroy; override; |
|
procedure AddSourceFileNames(const AFileNames: TStringList); |
|
Adds source filenames from a stringlist |
procedure AddSourceFileNamesFromFile(const FileName: string; DashMeansStdin: boolean); |
|
Loads names of Pascal unit source code files from a text file. Adds all file names to SourceFileNames. If DashMeansStdin and AFileName = '-' then it will load filenames from stdin. |
procedure DoError(const AMessage: string; const AArguments: array of const; const AExitCode: Word); |
|
Raises an exception. |
procedure DoMessage(const AVerbosity: Cardinal; const AMessageType: TPasDocMessageType; const AMessage: string; const AArguments: array of const); |
|
Forwards a message to the OnMessage event. |
procedure GenMessage(const MessageType: TPasDocMessageType; const AMessage: string; const AVerbosity: Cardinal); |
|
for Generator messages |
procedure Execute; |
|
Starts creating the documentation. |
Properties
property Units: TPasUnits read FUnits; |
|
After Execute has been called, |
property Conclusion: TExternalItem read FConclusion; |
|
After Execute has been called, |
property Introduction: TExternalItem read FIntroduction; |
|
After Execute has been called, |
property AdditionalFiles: TExternalItemList read FAdditionalFiles; |
|
After Execute has been called, |
property DescriptionFileNames: TStringVector
read FDescriptionFileNames write SetDescriptionFileNames; |
|
property Directives: TStringVector read FDirectives write SetDirectives; |
|
property IncludeDirectories: TStringVector read FIncludeDirectories write
SetIncludeDirectories; |
|
property OnWarning: TPasDocMessageEvent read FOnMessage write FOnMessage stored false; |
|
This is deprecated name for OnMessage |
property OnMessage: TPasDocMessageEvent read FOnMessage write FOnMessage; |
|
property ProjectName: string read FProjectName write FProjectName; |
|
The name PasDoc shall give to this documentation project, also used to name some of the output files. |
property SourceFileNames: TStringVector read FSourceFileNames write
SetSourceFileNames; |
|
property Title: string read FTitle write FTitle; |
|
property Verbosity: Cardinal read FVerbosity write FVerbosity
default DEFAULT_VERBOSITY_LEVEL; |
|
property StarOnly: boolean read GetStarOnly write SetStarOnly stored false; |
|
property CommentMarkers: TStringList read FCommentMarkers write SetCommentMarkers; |
|
property IgnoreMarkers: TStringList read FIgnoreMarkers write SetIgnoreMarkers; |
|
property MarkerOptional: boolean read FMarkerOptional write FMarkerOptional
default false; |
|
property IgnoreLeading: string read FIgnoreLeading write FIgnoreLeading; |
|
property Generator: TDocGenerator read FGenerator write SetGenerator; |
|
property ShowVisibilities: TVisibilities read FShowVisibilities write FShowVisibilities; |
|
property CacheDir: string read FCacheDir write FCacheDir; |
|
property SortSettings: TSortSettings
read FSortSettings write FSortSettings default []; |
|
This determines how items inside will be sorted. See [https://github.com/pasdoc/pasdoc/wiki/SortOption]. |
property IntroductionFileName: string read FIntroductionFileName
write FIntroductionFileName; |
|
property ConclusionFileName: string read FConclusionFileName
write FConclusionFileName; |
|
property AdditionalFilesNames: TStringList read FAdditionalFilesNames; |
|
property ImplicitVisibility: TImplicitVisibility
read FImplicitVisibility write FImplicitVisibility default ivPublic; |
|
See command-line option --implicit-visibility documentation at [https://github.com/pasdoc/pasdoc/wiki/ImplicitVisibilityOption]. This will be passed to parser instance. |
property HandleMacros: boolean
read FHandleMacros write FHandleMacros default true; |
|
property AutoLink: boolean
read FAutoLink write FAutoLink default false; |
|
This controls auto-linking, see [https://github.com/pasdoc/pasdoc/wiki/AutoLinkOption] |
property AutoBackComments: boolean
read FAutoBackComments write FAutoBackComments default false; |
|
property InfoMergeType: TInfoMergeType
read FInfoMergeType write FInfoMergeType; |
|
Generated by PasDoc 0.16.0.