9.25 snip-class%
Useful snip classes are defined by instantiating derived subclasses of
snip-class%. A class derived from snip-class%
serves as a kind of ``meta-class'' for snips; each snip is associated
with an instance of snip-class% as its snip class.
In deriving a new snip-class% class, override the
read method. Then, for each instance of the derived class (where each
instance corresponds to a single snip class):
Set the classname using
set-classname.Set the version using
set-version.Install the class into the list returned by
get-the-snip-class-listusing theaddmethod. Note that if the same name is inserted into the same class list multiple times, all but the first insertion is ignored.
See also Snip Classes.
(make-object snip-class%)->snip-class%objectCreates a useless snip class.
Methods
get-classname
get-version
read
read-header
reading-version
set-classname
set-version
write-header