/[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 1009 by schoenebeck, Thu Jan 4 14:43:02 2007 UTC revision 1424 by schoenebeck, Sun Oct 14 22:00:17 2007 UTC
# Line 37  Line 37 
37   * ******************************************************/   * ******************************************************/
38    
39  #include "lscpresultset.h"  #include "lscpresultset.h"
40    #include <iomanip>
41    #include "../common/global_private.h"
42    
43  //Construct an empty resultset  //Construct an empty resultset
44  //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 94  void LSCPResultSet::Add(String Label, in
94  }  }
95    
96  void LSCPResultSet::Add(String Label, float Value) {  void LSCPResultSet::Add(String Label, float Value) {
97      char s[1024];      std::stringstream ss;
98      snprintf(s, 1023, "%.3f", Value);      ss.imbue(std::locale::classic());
99      Add(Label, String(s));      ss << std::fixed << std::setprecision(3) << Value;
100        Add(Label, ss.str());
101  }  }
102    
103  void LSCPResultSet::Add(String Label, bool Value) {  void LSCPResultSet::Add(String Label, bool Value) {

Legend:
Removed from v.1009  
changed lines
  Added in v.1424

  ViewVC Help
Powered by ViewVC