// File: stringitem.h // // Class for string data stored in a ListNode #ifndef _stringitem_h #define _stringitem_h class ListItem { public: char *str ; ListItem() ; // default constructor ListItem(const ListItem&) ; // alternate constructor ListItem(const char *) ; // type converter ~ListItem() ; // destructor ListItem* copy() const ; // return pointer to clone void copyto(ListItem&) const ; // dump contents to arg void print() const ; // print to stdout // <0 is smaller, =0 is equal, >0 is bigger int compare(const ListItem&) const ; } ; #endif