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

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

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

revision 223 by schoenebeck, Sat Aug 21 11:43:53 2004 UTC revision 225 by schoenebeck, Sun Aug 22 14:46:47 2004 UTC
# Line 66  void LSCPResultSet::Add(String Label, St Line 66  void LSCPResultSet::Add(String Label, St
66          count++;          count++;
67  }  }
68    
69    void LSCPResultSet::Add(String Label, const char* pValue) {
70        Add(Label, String(pValue));
71    }
72    
73  void LSCPResultSet::Add(int Value) {  void LSCPResultSet::Add(int Value) {
74          Add(ToString(Value));          Add(ToString(Value));
75  }  }
# Line 75  void LSCPResultSet::Add(String Label, in Line 79  void LSCPResultSet::Add(String Label, in
79  }  }
80    
81  void LSCPResultSet::Add(String Label, float Value) {  void LSCPResultSet::Add(String Label, float Value) {
82          std::stringstream ss; //fixme: had issues with template and float?!      char s[1024];
83          ss << Value;      snprintf(s, 1023, "%.3f", Value);
84          Add(Label, ss.str());      Add(Label, String(s));
85  }  }
86    
87  void LSCPResultSet::Add(String Label, bool Value) {  void LSCPResultSet::Add(String Label, bool Value) {

Legend:
Removed from v.223  
changed lines
  Added in v.225

  ViewVC Help
Powered by ViewVC