Up
Authors
- Richard Frith-Macdonald (
richard@brainstorm.co.uk
)
-
Copyright: (C) 2001 Free Software Foundation, Inc.
This is a really great class... but it's not really
reusable since it's far too special purpose.
- Declared in:
- AGSOutput.h
And finally, here is the actual class description...
outside the chapter. This is the class description
for AGSOutput
, including some sample uses of
GSDoc, such as cross-references (see
NSString
). Functions, like
escapeType()
, are automatically referenced (if they are found).
Instance Variables
Method summary
- (NSString*)
checkComment: (NSString*)comment
unit: (NSString*)unit
info: (NSMutableDictionary*)d;
Description forthcoming.
- (unsigned)
fitWords: (NSArray*)a
from: (unsigned)start
to: (unsigned)end
maxSize: (unsigned)limit
output: (NSMutableString*)buf;
Description forthcoming.
- (NSArray*)
informalProtocols;
Description forthcoming.
- (NSArray*)
output: (NSMutableDictionary*)d;
Return an array containing the names of any files
modified as a result of outputing the specified
data structure.
- (void)
outputDecl: (NSMutableDictionary*)d
kind: (NSString*)kind
to: (NSMutableString*)str;
- (void)
outputFunction: (NSMutableDictionary*)d
to: (NSMutableString*)str;
Uses
-split:
and
-reformat:withIndent:to:
.
Place the names of function arguments in a
temporary array 'args' so that they will be
highlighted if they appear in the function
description.
- (void)
outputInstanceVariable: (NSMutableDictionary*)d
to: (NSMutableString*)str
for: (NSString*)unit;
Output the gsdoc code for an instance variable.
- (void)
outputMacro: (NSMutableDictionary*)d
to: (NSMutableString*)str;
- (void)
outputMethod: (NSMutableDictionary*)d
to: (NSMutableString*)str
for: (NSString*)unit;
Uses
-split:
and
-reformat:withIndent:to:
. Also has fun with
YES
,
NO
,
and
nil
.
Check special markup which
should be removed from the text actually placed in
the gsdoc method documentation... the special markup is
included in the gsdoc markup differently.
- (void)
outputUnit: (NSMutableDictionary*)d
to: (NSMutableString*)str;
Description forthcoming.
- (unsigned)
reformat: (NSString*)str
withIndent: (unsigned)ind
to: (NSMutableString*)buf;
Description forthcoming.
- (NSArray*)
split: (NSString*)str;
Split comment text into an array of words (to be
reformatted) and insert markup for cross
referencing and highlighting.
Phase 1...
we take the supplied string and check for white space.
Any white space sequence is deleted and treated as a
word separator except within xml element markup. The
format of element start and end marks is tidied for
consistency. The resulting data is made into
an array of strings, each containing either an element
start or end tag, or one of the whitespace separated
words. What about str?
Instance Variables for AGSOutput Class
@protected NSArray* args;
Description forthcoming.
@protected NSCharacterSet* identStart;
Description forthcoming.
@protected NSCharacterSet* identifier;
Description forthcoming.
@protected NSDictionary* info;
Description forthcoming.
@protected NSMutableArray* informalProtocols;
Description forthcoming.
@protected NSCharacterSet* spacenl;
Description forthcoming.
@protected NSCharacterSet* spaces;
Description forthcoming.
@protected BOOL verbose;
Description forthcoming.
@protected BOOL warn;
Description forthcoming.
Here is the afterword for the class.
And here is some automated cross referencing... A method in
a protocol:
<NSCopying>-copyWithZone:
, a class:
NSString
, a protocol:
<NSCopying>
, and a category: NSRunLoop(GNUstepExtensions)
.
Up