/[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 1348 by schoenebeck, Thu Jan 4 14:43:02 2007 UTC revision 1349 by persson, Sat Sep 15 11:05:38 2007 UTC
# Line 37  Line 37 
37   * ******************************************************/   * ******************************************************/
38    
39  #include "lscpresultset.h"  #include "lscpresultset.h"
40    #include <iomanip>
41    
42  //Construct an empty resultset  //Construct an empty resultset
43  //Default index is -1 meaning the resultset doesn't have an index  //Default index is -1 meaning the resultset doesn't have an index
# Line 92  void LSCPResultSet::Add(String Label, in Line 93  void LSCPResultSet::Add(String Label, in
93  }  }
94    
95  void LSCPResultSet::Add(String Label, float Value) {  void LSCPResultSet::Add(String Label, float Value) {
96      char s[1024];      std::stringstream ss;
97      snprintf(s, 1023, "%.3f", Value);      ss.imbue(std::locale::classic());
98      Add(Label, String(s));      ss << std::fixed << std::setprecision(3) << Value;
99        Add(Label, ss.str());
100  }  }
101    
102  void LSCPResultSet::Add(String Label, bool Value) {  void LSCPResultSet::Add(String Label, bool Value) {

Legend:
Removed from v.1348  
changed lines
  Added in v.1349

  ViewVC Help
Powered by ViewVC