/[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 1765 by persson, Sat Sep 6 16:44:42 2008 UTC revision 2135 by schoenebeck, Thu Sep 30 20:00:43 2010 UTC
# Line 120  void LSCPResultSet::Add(String Value) { Line 120  void LSCPResultSet::Add(String Value) {
120          count = 1;          count = 1;
121  }  }
122    
123    void LSCPResultSet::Add(String Label, const std::vector<float>& v) {
124        std::stringstream ss;
125        ss.imbue(std::locale::classic());
126        for (int i = 0; i < v.size(); i++) {
127            if (!ss.str().empty()) ss << ",";
128            ss << std::fixed << std::setprecision(3) << v[i];
129        }
130        Add(Label, ss.str());    
131    }
132    
133  //Generate an error result set from an exception.  //Generate an error result set from an exception.
134  //Per LSCP spec, error result is a sinle line in the following format:  //Per LSCP spec, error result is a sinle line in the following format:
135  //ERR:<CODE>:Message text\r\n  //ERR:<CODE>:Message text\r\n

Legend:
Removed from v.1765  
changed lines
  Added in v.2135

  ViewVC Help
Powered by ViewVC