]> git.saurik.com Git - apple/security.git/blob - SecuritySNACCRuntime/c++-lib/inc/print.h
Security-54.1.7.tar.gz
[apple/security.git] / SecuritySNACCRuntime / c++-lib / inc / print.h
1 /*
2 * Copyright (c) 2000-2001 Apple Computer, Inc. All Rights Reserved.
3 *
4 * The contents of this file constitute Original Code as defined in and are
5 * subject to the Apple Public Source License Version 1.2 (the 'License').
6 * You may not use this file except in compliance with the License. Please obtain
7 * a copy of the License at http://www.apple.com/publicsource and read it before
8 * using this file.
9 *
10 * This Original Code and all software distributed under the License are
11 * distributed on an 'AS IS' basis, WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS
12 * OR IMPLIED, AND APPLE HEREBY DISCLAIMS ALL SUCH WARRANTIES, INCLUDING WITHOUT
13 * LIMITATION, ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
14 * PURPOSE, QUIET ENJOYMENT OR NON-INFRINGEMENT. Please see the License for the
15 * specific language governing rights and limitations under the License.
16 */
17
18
19 // file: .../c++-lib/inc/print.h
20 //
21 // MS 92
22 //
23 // Copyright (C) 1992 Michael Sample and the University of British Columbia
24 //
25 // This library is free software; you can redistribute it and/or
26 // modify it provided that this copyright/license information is retained
27 // in original form.
28 //
29 // If you modify this file, you must clearly indicate your changes.
30 //
31 // This source code is distributed in the hope that it will be
32 // useful, but WITHOUT ANY WARRANTY; without even the implied warranty
33 // of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
34 //
35 // $Header: /cvs/root/Security/SecuritySNACCRuntime/c++-lib/inc/Attic/print.h,v 1.3 2001/06/27 23:57:51 dmitch Exp $
36 // $Log: print.h,v $
37 // Revision 1.3 2001/06/27 23:57:51 dmitch
38 // Reimplement partial fix for Radar 2664258: Print() routines are now empty stubs in NDEBUG config.
39 //
40 // Revision 1.2 2001/06/27 23:09:16 dmitch
41 // Pusuant to Radar 2664258, avoid all cerr-based output in NDEBUG configuration.
42 //
43 // Revision 1.1.1.1 2001/05/18 23:14:06 mb
44 // Move from private repository to open source repository
45 //
46 // Revision 1.3 2001/05/05 00:59:18 rmurphy
47 // Adding darwin license headers
48 //
49 // Revision 1.2 2000/06/15 18:48:25 dmitch
50 // Snacc-generated source files, now part of CVS tree to allow for cross-platform build of snaccRuntime.
51 //
52 // Revision 1.1.1.1 2000/03/09 01:00:05 rmurphy
53 // Base Fortissimo Tree
54 //
55 // Revision 1.1 1999/02/25 05:21:47 mb
56 // Added snacc c++ library
57 //
58 // Revision 1.4 1997/02/16 20:25:54 rj
59 // check-in of a few cosmetic changes
60 //
61 // Revision 1.3 1994/10/08 04:18:13 rj
62 // code for meta structures added (provides information about the generated code itself).
63 //
64 // code for Tcl interface added (makes use of the above mentioned meta code).
65 //
66 // virtual inline functions (the destructor, the Clone() function, BEnc(), BDec() and Print()) moved from inc/*.h to src/*.C because g++ turns every one of them into a static non-inline function in every file where the .h file gets included.
67 //
68 // made Print() const (and some other, mainly comparison functions).
69 //
70 // several `unsigned long int' turned into `size_t'.
71 //
72 // Revision 1.2 1994/08/28 10:01:00 rj
73 // comment leader fixed.
74 //
75 // Revision 1.1 1994/08/28 09:20:47 rj
76 // first check-in. for a list of changes to the snacc-1.1 distribution please refer to the ChangeLog.
77
78 #ifndef _snacccpp_print_h_
79 #define _snacccpp_print_h_
80
81 extern unsigned short int indentG;
82 extern unsigned short int stdIndentG;
83
84 void Indent (ostream &os, unsigned short int i);
85
86 ostream &operator << (ostream &os, const AsnType &a);
87
88 #endif /* conditional include */