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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 119 by senkov, Sun Jun 6 20:59:49 2004 UTC revision 120 by senkov, Sat Jun 12 07:29:37 2004 UTC
# Line 22  Line 22 
22    
23  #ifndef __LSCPRESULTSET_H_  #ifndef __LSCPRESULTSET_H_
24  #define __LSCPRESULTSET_H_  #define __LSCPRESULTSET_H_
25    #include <iostream>
26    #include <sstream>
27    #include <string>
28  #include "../Sampler.h"  #include "../Sampler.h"
29  #include "../common/global.h"  #include "../common/global.h"
30    #include "../common/LinuxSamplerException.h"
31    
32  using namespace LinuxSampler;  using namespace LinuxSampler;
33    
# Line 32  using namespace LinuxSampler; Line 36  using namespace LinuxSampler;
36   */   */
37  class LSCPResultSet {  class LSCPResultSet {
38      public:      public:
39          LSCPResultSet(void);          LSCPResultSet(int index = -1);
40          LSCPResultSet(String);          LSCPResultSet(String, int index = -1);
41          void Add(String);          void Add(String);
42          void Add(String, String);          void Add(String, String);
43          void Add(String, float);          void Add(String, float);
44          void Add(String, int);          void Add(String, int);
45            void Add(int);
46            void Error(String message = "Undefined Error", int code = 0);
47            void Error(LinuxSamplerException e);
48            void Warning(String message = "Undefined Warning", int code = 0);
49          String Produce(void);          String Produce(void);
50    
51      private:      private:
52          String storage;          String storage;
53          int count;          int count;
54            int result_type;
55            int result_index;
56    
57            template<class T> inline String ToString(T o) {
58                std::stringstream ss;
59                ss << o;
60                return ss.str();
61            }
62  };  };
63    
64  #endif // __LSCPRESULTSET_H_  #endif // __LSCPRESULTSET_H_

Legend:
Removed from v.119  
changed lines
  Added in v.120

  ViewVC Help
Powered by ViewVC