comparison lisp/oobr/tree-nx/NamedTree.h @ 0:376386a54a3c r19-14

Import from CVS: tag r19-14
author cvs
date Mon, 13 Aug 2007 08:45:50 +0200
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:376386a54a3c
1 //
2 // NamedTree.h -- a generic class to build tree data structures
3 // This class requires the String class, also by Don Yacktman.
4 // Written by Don Yacktman (c) 1993 by Don Yacktman.
5 // All rights reserved.
6 //
7 // This Tree subclass allows an entire tree to be given a name, other than
8 // the root node's name.
9 //
10 // You may use and copy this class freely as long as you
11 // comply with the following terms:
12 // (1) If you use this class in an application which you
13 // intend to sell commercially, as shareware, or otherwise,
14 // you may only do so with express written permission
15 // of the author. Use in applications which will
16 // be distributed free of charge is encouraged.
17 // (2) You must include the source code to this object and
18 // all accompanying documentation with your application,
19 // or provide it to users if requested, free of charge.
20 // (3) Do not remove the author's name or any of the
21 // copyright notices
22 //
23
24 #import "Tree.h" // superclass is in there
25
26 @interface NamedTree:Tree
27 {
28 id treeName; // a String object that all nodes should point to
29 }
30
31 // set and retrieve the tree's name
32 - setTreeName:string;
33 - (const char *)treeName;
34
35 - act:sender; // action performed when node is activated
36 - activateNode:sender; // message sent to "activate" the node
37
38 @end