Convenience overloads for info messages
authorMichael Andres <ma@suse.de>
Mon, 20 Jan 2014 11:50:16 +0000 (12:50 +0100)
committerMichael Andres <ma@suse.de>
Mon, 20 Jan 2014 11:50:16 +0000 (12:50 +0100)
src/output/Out.h

index 08b8754..b21c33c 100644 (file)
@@ -154,8 +154,15 @@ public:
    *                  types of output.
    */
   virtual void info(const std::string & msg, Verbosity verbosity = NORMAL, Type mask = TYPE_ALL) = 0;
+  /** \overload taking boost::format */
   void info( const boost::format & msg, Verbosity verbosity = NORMAL, Type mask = TYPE_ALL )
   { info( msg.str(), verbosity, mask ); }
+  /** \overload concatenating 2 strings (e.g. translated and untranslated parts) */
+  void info( std::string msg, const std::string & msg2, Verbosity verbosity = NORMAL, Type mask = TYPE_ALL )
+  { info( (msg+=msg2), verbosity, mask ); }
+  /** \overload concatenating 2 strings (e.g. translated and untranslated parts) */
+  void info( const boost::format & msg, const std::string & msg2, Verbosity verbosity = NORMAL, Type mask = TYPE_ALL )
+  { info( msg.str(), msg2, verbosity, mask ); }
 
   /** \ref info taking a \ref TermLine */
   virtual void infoLine(const TermLine & msg_r, Verbosity verbosity_r = NORMAL, Type mask_r = TYPE_ALL)