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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1765 - (hide annotations) (download) (as text)
Sat Sep 6 16:44:42 2008 UTC (15 years, 8 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 senkov 113 /***************************************************************************
2     * *
3     * LinuxSampler - modular, streaming capable sampler *
4     * *
5     * Copyright (C) 2003, 2004 by Benno Senoner and Christian Schoenebeck *
6 persson 1765 * Copyright (C) 2005 - 2008 Christian Schoenebeck *
7 senkov 113 * *
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 senkov 120 #include <iostream>
27     #include <sstream>
28     #include <string>
29 senkov 113 #include "../Sampler.h"
30     #include "../common/global.h"
31 schoenebeck 880 #include "../common/Exception.h"
32 senkov 113
33 persson 1765 namespace LinuxSampler {
34 senkov 113
35     /**
36     * Helper class for producing result sets
37     */
38     class LSCPResultSet {
39     public:
40 senkov 120 LSCPResultSet(int index = -1);
41     LSCPResultSet(String, int index = -1);
42 senkov 113 void Add(String);
43     void Add(String, String);
44 schoenebeck 225 void Add(String, const char*);
45 senkov 397 void Add(int columns, char** argv);
46 senkov 113 void Add(String, float);
47     void Add(String, int);
48 schoenebeck 223 void Add(String, bool);
49 senkov 120 void Add(int);
50     void Error(String message = "Undefined Error", int code = 0);
51 schoenebeck 880 void Error(Exception e);
52 senkov 120 void Warning(String message = "Undefined Warning", int code = 0);
53 senkov 113 String Produce(void);
54    
55     private:
56     String storage;
57     int count;
58 senkov 120 int result_type;
59     int result_index;
60    
61 senkov 113 };
62    
63 persson 1765 }
64    
65 senkov 113 #endif // __LSCPRESULTSET_H_

  ViewVC Help
Powered by ViewVC