![]() |
Reference Documentation |
00001 #ifndef _H_PRINTOUT_H_ 00002 #define _H_PRINTOUT_H_ 1 00003 00004 00005 /* 00006 00007 WARNING: 00008 This file is just an update of the existing HistoPrintout. 00009 I have just added some changes to meet the new histo interface. 00010 The rest is unchanged: syntax, indentation, variable names... 00011 00012 That's why it is so different from my other files. 00013 00014 */ 00015 00016 00017 #include "HTL/HTL_std.h" 00018 #include "HTL/I_Histo.h" 00019 00020 00021 # define ZSPECTRUM 15 00022 00023 00026 class H_Printout 00027 { 00028 public: 00029 int columns, lines; 00031 H_Printout(HTL_STREAM_STD::ostream &s) : os(s) { columns = 80; lines = 0; } 00033 ~H_Printout() {} 00038 int auto_setup(); 00040 void print( const I_Histo &a_histo ); 00042 void print1( const I_Histo &a_histo ); 00044 void print2( const I_Histo &a_histo ); 00045 00046 protected: 00047 double un_ov_value (const I_Histo &a_h,Extra_Index ei,Extra_Index ej); 00048 public: 00050 class spaces 00051 { 00052 int n; 00053 char x; 00054 public: 00055 spaces(int i) : n(i),x(' ') {} 00056 spaces(int i, char c) : n(i),x(c) {} 00057 friend HTL_STREAM_STD::ostream& operator << 00058 (HTL_STREAM_STD::ostream&, spaces); 00059 }; 00060 00062 class bar3d 00063 { 00064 double x; 00065 public: 00066 bar3d(double a) : x(a) {} 00067 friend HTL_STREAM_STD::ostream& operator << 00068 (HTL_STREAM_STD::ostream&, bar3d); 00069 }; 00070 private: 00071 HTL_STREAM_STD::ostream &os; 00072 00073 }; 00074 00075 00076 # endif // _H_PRINTOUT_H_ 00077
Anaphe documentation generated by Doxygen (www.doxygen.org) |