00001 /* 00002 * See the dyninst/COPYRIGHT file for copyright information. 00003 * 00004 * We provide the Paradyn Tools (below described as "Paradyn") 00005 * on an AS IS basis, and do not warrant its validity or performance. 00006 * We reserve the right to update, modify, or discontinue this 00007 * software at any time. We shall have no obligation to supply such 00008 * updates or modifications or any other form of support to you. 00009 * 00010 * By your use of Paradyn, you understand and agree that we (or any 00011 * other person or entity with proprietary rights in Paradyn) are 00012 * under no obligation to provide either maintenance services, 00013 * update services, notices of latent defects, or correction of 00014 * defects for Paradyn. 00015 * 00016 * This library is free software; you can redistribute it and/or 00017 * modify it under the terms of the GNU Lesser General Public 00018 * License as published by the Free Software Foundation; either 00019 * version 2.1 of the License, or (at your option) any later version. 00020 * 00021 * This library is distributed in the hope that it will be useful, 00022 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00023 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00024 * Lesser General Public License for more details. 00025 * 00026 * You should have received a copy of the GNU Lesser General Public 00027 * License along with this library; if not, write to the Free Software 00028 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 00029 */ 00030 00031 // debugOstream.C 00032 00033 #if 0 00034 #include "common/h/debugOstream.h" 00035 #include "common/h/Time.h" 00036 #include "common/h/int64iostream.h" 00037 00038 debug_ostream &debug_ostream::operator<<(char c) { 00039 if (on) 00040 actual_ostream << c; 00041 return *this; 00042 } 00043 00044 debug_ostream &debug_ostream::operator<<(unsigned char c) { 00045 if (on) 00046 actual_ostream << c; 00047 return *this; 00048 } 00049 00050 debug_ostream &debug_ostream::operator<<(short s) { 00051 if (on) 00052 actual_ostream << s; 00053 return *this; 00054 } 00055 00056 debug_ostream &debug_ostream::operator<<(unsigned short s) { 00057 if (on) 00058 actual_ostream << s; 00059 return *this; 00060 } 00061 00062 debug_ostream &debug_ostream::operator<<(int i) { 00063 if (on) 00064 actual_ostream << i; 00065 return *this; 00066 } 00067 00068 debug_ostream &debug_ostream::operator<<(unsigned i) { 00069 if (on) 00070 actual_ostream << i; 00071 return *this; 00072 } 00073 00074 #if !defined(TYPE64BIT) 00075 debug_ostream &debug_ostream::operator<<(long l) { 00076 if (on) 00077 actual_ostream << l; 00078 return *this; 00079 } 00080 00081 debug_ostream &debug_ostream::operator<<(unsigned long l) { 00082 if (on) 00083 actual_ostream << l; 00084 return *this; 00085 } 00086 #endif 00087 00088 debug_ostream &debug_ostream::operator<<(int64_t ll) { 00089 if (on) 00090 actual_ostream << ll; 00091 return *this; 00092 } 00093 00094 debug_ostream &debug_ostream::operator<<(uint64_t ull) { 00095 if (on) 00096 actual_ostream << ull; 00097 return *this; 00098 } 00099 00100 debug_ostream &debug_ostream::operator<<(const char *str) { 00101 if (on) 00102 actual_ostream << str; 00103 return *this; 00104 } 00105 00106 debug_ostream &debug_ostream::operator<<(const unsigned char *str) { 00107 if (on) 00108 actual_ostream << str; 00109 return *this; 00110 } 00111 00112 debug_ostream &debug_ostream::operator<<(const void *ptr) { 00113 if (on) 00114 actual_ostream << ptr; 00115 return *this; 00116 } 00117 00118 debug_ostream &debug_ostream::operator<<(float f) { 00119 if (on) 00120 actual_ostream << f; 00121 return *this; 00122 } 00123 00124 debug_ostream &debug_ostream::operator<<(double d) { 00125 if (on) 00126 actual_ostream << d; 00127 return *this; 00128 } 00129 00130 debug_ostream& debug_ostream::operator<<( ostream& (*f)(ostream&) ) 00131 { 00132 if( on ) 00133 { 00134 actual_ostream << f; 00135 } 00136 return *this; 00137 } 00138 00139 #ifdef NEW_TIME_TYPES 00140 debug_ostream& debug_ostream::operator<<(timeUnit &tu) { 00141 if(on) actual_ostream << tu; 00142 return *this; 00143 } 00144 debug_ostream& debug_ostream::operator<<(timeBase tb) { 00145 if(on) actual_ostream << tb; 00146 return *this; 00147 } 00148 debug_ostream& debug_ostream::operator<<(timeLength tl) { 00149 if(on) actual_ostream << tl; 00150 return *this; 00151 } 00152 debug_ostream& debug_ostream::operator<<(timeStamp ts) { 00153 if(on) actual_ostream << ts; 00154 return *this; 00155 } 00156 debug_ostream& debug_ostream::operator<<(relTimeStamp rts) { 00157 if(on) actual_ostream << rts; 00158 return *this; 00159 } 00160 #endif 00161 #endif
1.6.1