Avoid assert() when loading xml: Throw an XMLerror if attribute_value fails.
[ardour.git] / libs / pbd / pbd / textreceiver.h
index e5900fc6528477e7b40b7b207db7cae537e01d88..3fad63f66c67d3db870a71d48d64ec6349354db6 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
 
 #include <string>
 
+#include "pbd/libpbd_visibility.h"
 #include "receiver.h"
 
-using std::string;
-using std::cout;
-using std::endl;
-
-class TextReceiver : public Receiver 
+class LIBPBD_API TextReceiver : public Receiver
 {
   public:
-       TextReceiver (const string &n);
+       TextReceiver (const std::string &n);
 
   protected:
        void receive (Transmitter::Channel, const char *);
 
   private:
-       string name;
+       std::string name;
 };
 
 #endif //__libmisc_textreceiver_h__