home *** CD-ROM | disk | FTP | other *** search
-
- #ifndef _CLIST_H
- #define _CLIST_H
-
- //linked list data structure
- struct node {
- node *next;
- TVNODEINFO data;
- };
-
-
- //linked list class for managing the data associated with
- //treeview items
-
- class Clist
- {
- public:
- Clist();
- ~Clist();
- LPTVNODEINFO insertatend(LPTVNODEINFO);
- void remove(void); //remove all items associated with specific site node
- void remove(int); //remove only specific node
- node * getfirstnode() //return root level site node
- {
- return head->next;
- }
-
- private:
- struct node *head, *z;
-
-
- };
-
-
- #endif
-