/[svn]/linuxsampler/trunk/src/network/lscpresultset.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/network/lscpresultset.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1765 - (show annotations) (download) (as text)
Sat Sep 6 16:44:42 2008 UTC (15 years, 7 months ago) by persson
File MIME type: text/x-c++hdr
File size: 2607 byte(s)
* refactoring: extracted lscp notification from main() to a separate
  function
* added helper function MidiInputPort::DispatchRaw for midi device
  implementations with raw byte data
* fixed a win32 build error (atomic.h is working on windows too)
* code cleanup: moved lscp classes into LinuxSampler namespace

1 /***************************************************************************
2 * *
3 * LinuxSampler - modular, streaming capable sampler *
4 * *
5 * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck *
6 * Copyright (C) 2005 - 2008 Christian Schoenebeck *
7 * *
8 * This program is free software; you can redistribute it and/or modify *
9 * it under the terms of the GNU General Public License as published by *
10 * the Free Software Foundation; either version 2 of the License, or *
11 * (at your option) any later version. *
12 * *
13 * This program is distributed in the hope that it will be useful, *
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
16 * GNU General Public License for more details. *
17 * *
18 * You should have received a copy of the GNU General Public License *
19 * along with this program; if not, write to the Free Software *
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, *
21 * MA 02111-1307 USA *
22 ***************************************************************************/
23
24 #ifndef __LSCPRESULTSET_H_
25 #define __LSCPRESULTSET_H_
26 #include <iostream>
27 #include <sstream>
28 #include <string>
29 #include "../Sampler.h"
30 #include "../common/global.h"
31 #include "../common/Exception.h"
32
33 namespace LinuxSampler {
34
35 /**
36 * Helper class for producing result sets
37 */
38 class LSCPResultSet {
39 public:
40 LSCPResultSet(int index = -1);
41 LSCPResultSet(String, int index = -1);
42 void Add(String);
43 void Add(String, String);
44 void Add(String, const char*);
45 void Add(int columns, char** argv);
46 void Add(String, float);
47 void Add(String, int);
48 void Add(String, bool);
49 void Add(int);
50 void Error(String message = "Undefined Error", int code = 0);
51 void Error(Exception e);
52 void Warning(String message = "Undefined Warning", int code = 0);
53 String Produce(void);
54
55 private:
56 String storage;
57 int count;
58 int result_type;
59 int result_index;
60
61 };
62
63 }
64
65 #endif // __LSCPRESULTSET_H_

  ViewVC Help
Powered by ViewVC