|
|
1.1 ! root 1: /* print_self.H -- base class for objects that want to support ! 2: the 'official' print self for \T in printf. */ ! 3: ! 4: /* ! 5: $Header: /usr2/odi/include/RCS/print_self.H,v 1.4 89/09/19 11:49:19 benson Exp $ ! 6: ! 7: Copyright (c) 1989 by Object Design, Inc., Burlington, Mass. ! 8: All rights reserved. ! 9: ! 10: */ ! 11: ! 12: #ifndef _PRINT_SELF_CLASS ! 13: #define _PRINT_SELF_CLASS ! 14: #include <iostream.h> ! 15: ! 16: class _Print_self { ! 17: public: ! 18: virtual char * type_name () const { return "OBJECT"; } ! 19: virtual int print_self (ostream&) const; // returns count of characters printed. ! 20: virtual int format_self (ostream&) const; // returns count of characters printed. ! 21: }; ! 22: #endif ! 23: ! 24: ! 25: /* ! 26: $Log: print_self.H,v $ ! 27: Revision 1.4 89/09/19 11:49:19 benson ! 28: rename class to _Print_self. ! 29: ! 30: Revision 1.3 89/09/19 11:40:31 benson ! 31: missed a semicolon last time. ! 32: ! 33: Revision 1.2 89/09/19 11:38:12 benson ! 34: const-ify. ! 35: ! 36: Revision 1.1 89/05/22 13:28:40 benson ! 37: Initial revision ! 38: ! 39: ! 40: end_log ! 41: */
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.