00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef __Atlfast_HeaderPrinter__
00022 #define __Atlfast_HeaderPrinter__
00023 #include "GaudiKernel/MsgStream.h"
00024 #include <string>
00025 #include <vector>
00026
00027 namespace Atlfast {
00031 class HeaderPrinter {
00032 public:
00033 HeaderPrinter(std::string title, MsgStream log);
00034
00035 void add(const std::string&,
00036 std::vector<int>::const_iterator be,
00037 std::vector<int>::const_iterator en);
00038 void add(const std::string&, int);
00039 void add(const std::string&, double);
00040 void add(const std::string&, const std::string& t);
00041 void add(const std::string&, bool);
00042 void add(const std::string&);
00043 void print()const;
00044 static unsigned int width;
00045 static std::string m_fullLine;
00046 private:
00047 std::string m_title;
00048 MsgStream m_log;
00049 std::vector<std::string> m_strings;
00050 std::string m_hollowLine;
00051 };
00052 }
00053 #endif
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065