Tempo ramps - audio-locked meters have a bbt of 1|1|0
[ardour.git] / libs / pbd / pbd / transmitter.h
index 357cb9965fcffc6be67d7ea5f3ef1977c12c17d5..a765f9e370721b586446a5533ab4496b348ad215 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 1998-99 Paul Barton-Davis 
+    Copyright (C) 1998-99 Paul Barton-Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __libmisc_transmitter_h__
 
 #include <sigc++/sigc++.h>
 
-using std::cout;
-using std::cerr;
-using std::endl;
+#include "pbd/libpbd_visibility.h"
 
-class Transmitter : public std::stringstream
+class LIBPBD_API Transmitter : public std::stringstream
 
 {
   public:
@@ -44,7 +41,7 @@ class Transmitter : public std::stringstream
 
        Transmitter (Channel);
 
-       sigc::signal<void,Channel, const char *> &sender() { 
+       sigc::signal<void,Channel, const char *> &sender() {
                return *send;
        }
 
@@ -65,7 +62,7 @@ class Transmitter : public std::stringstream
 };
 
 /* for EGCS 2.91.66, if this function is not compiled within the same
-   compilation unit as the one where a ThrownError is thrown, then 
+   compilation unit as the one where a ThrownError is thrown, then
    nothing will catch the error. This is a pretty small function, so
    inlining it here seems like a reasonable workaround.
 */
@@ -83,11 +80,11 @@ endmsg (std::ostream &ostr)
           see if ostr == cout, and handle it specially.
        */
 
-       if (&ostr == &cout) {
-               cout << endl;
+       if (&ostr == &std::cout) {
+               std::cout << std::endl;
                return ostr;
-       } else if (&ostr == &cerr) {
-               cerr << endl;
+       } else if (&ostr == &std::cerr) {
+               std::cerr << std::endl;
                return ostr;
        }
 
@@ -97,14 +94,14 @@ endmsg (std::ostream &ostr)
                /* hmm. not a Transmitter, so just put a newline on
                   it and assume that that will be enough.
                */
-               
-               ostr << endl;
+
+               ostr << std::endl;
        }
 
        return ostr;
 }
 
 
-extern "C" { void pbd_c_error (const char *); }
+extern "C" { LIBPBD_API void pbd_c_error (const char *); }
 
 #endif // __libmisc_transmitter_h__