initial
[prop.git] / include / AD / prettypr / prettybase.h
blob3f22dec120bf0ca85e9b261a16fe5ca42f95c2c5
1 //////////////////////////////////////////////////////////////////////////////
2 // NOTICE:
3 //
4 // ADLib, Prop and their related set of tools and documentation are in the
5 // public domain. The author(s) of this software reserve no copyrights on
6 // the source code and any code generated using the tools. You are encouraged
7 // to use ADLib and Prop to develop software, in both academic and commercial
8 // settings, and are welcomed to incorporate any part of ADLib and Prop into
9 // your programs.
11 // Although you are under no obligation to do so, we strongly recommend that
12 // you give away all software developed using our tools.
14 // We also ask that credit be given to us when ADLib and/or Prop are used in
15 // your programs, and that this notice be preserved intact in all the source
16 // code.
18 // This software is still under development and we welcome(read crave for)
19 // any suggestions and help from the users.
21 // Allen Leung (leunga@valis.cs.nyu.edu)
22 // 1994-1995
23 //////////////////////////////////////////////////////////////////////////////
24 #ifndef prop_pretty_printer_base_class_h
25 #define prop_pretty_printer_base_class_h
27 //////////////////////////////////////////////////////////////////////////////
29 // Forward declarations
31 //////////////////////////////////////////////////////////////////////////////
32 class ostream;
34 //////////////////////////////////////////////////////////////////////////////
36 // Class PrettyPrinterBase is the base class for all Prop generated
37 // pretty printers.
39 //////////////////////////////////////////////////////////////////////////////
41 class PrettyPrinterBase {
42 PrettyPrinterBase(const PrettyPrinterBase&); // no copy constructor
43 void operator = (const PrettyPrinterBase&); // no copying
44 protected:
45 ostream * stream; // output stream.
46 public:
47 PrettyPrinterBase();
48 PrettyPrinterBase(ostream&);
49 virtual ~PrettyPrinterBase();
51 virtual PrettyPrinterBase& open (ostream&);
54 #endif