00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #ifndef __PEEKABOT_PRINTF_FORMATTER_HH
00019 #define __PEEKABOT_PRINTF_FORMATTER_HH
00020
00021
00022 #include "MessageFormatter.hh"
00023
00024
00025 namespace peekabot
00026 {
00027
00034 class PrintfFormatter : public MessageFormatter
00035 {
00041 const std::string m_format;
00042
00043 public:
00061 PrintfFormatter(const std::string &format) throw();
00062
00063 virtual std::string format(const Message &m) const throw();
00064
00065
00066 private:
00072 std::string to_string(const SourceID &s) const throw();
00073 };
00074
00075 }
00076
00077
00078 #endif // __PEEKABOT_PRINTF_FORMATTER_HH