Annotation of researchv10no/cmd/cfront/xptcfront/print_self.h, revision 1.1.1.1

1.1       root        1: /* ident "@(#)ctrans:src/print_self.h  1.2" */
                      2: /* print_self.H -- base class for objects that want to support
                      3:    the 'official' print self for \T in printf. */
                      4: 
                      5: /*
                      6:     $Header: /usr2/odi/include/RCS/print_self.H,v 1.4 89/09/19 11:49:19 benson Exp $
                      7: 
                      8:     Copyright (c) 1989 by Object Design, Inc., Burlington, Mass.
                      9:     All rights reserved.
                     10: 
                     11: */
                     12: 
                     13: #ifndef _PRINT_SELF_CLASS
                     14: #define _PRINT_SELF_CLASS
                     15: #include <iostream.h>
                     16: 
                     17: class _Print_self {
                     18:   public:
                     19:     virtual char * type_name () const { return "OBJECT"; }
                     20:     virtual int print_self (ostream&) const; // returns count of characters printed.
                     21:     virtual int format_self (ostream&) const; // returns count of characters printed.
                     22: };
                     23: #endif

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.