b8bfe5bc7824b0c9e0362bbcf2162a536313c53c
[ardour.git] / libs / pbd / pbd / textreceiver.h
1 /*
2     Copyright (C) 1998-99 Paul Barton-Davis 
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18     $Id$
19 */
20
21 #ifndef __libmisc_textreceiver_h__
22 #define __libmisc_textreceiver_h__
23
24 #include <string>
25
26 #include "receiver.h"
27
28 using std::string;
29 using std::cout;
30 using std::endl;
31
32 class TextReceiver : public Receiver 
33 {
34   public:
35         TextReceiver (const string &n);
36
37   protected:
38         void receive (Transmitter::Channel, const char *);
39
40   private:
41         string name;
42 };
43
44 #endif //__libmisc_textreceiver_h__