/[svn]/linuxsampler/trunk/src/drivers/DeviceParameter.cpp
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/DeviceParameter.cpp

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

revision 1348 by iliev, Mon Aug 27 07:51:28 2007 UTC revision 1349 by persson, Sat Sep 15 11:05:38 2007 UTC
# Line 55  namespace LinuxSampler { Line 55  namespace LinuxSampler {
55    
56      static float __parse_float(String val) throw (Exception) {      static float __parse_float(String val) throw (Exception) {
57          __eliminate_quotation(val);          __eliminate_quotation(val);
58          return atof(val.c_str()); // TODO: format check is missing          float x;
59            std::stringstream ss(val);
60            ss.imbue(std::locale::classic());
61            ss >> x; // TODO: format check is missing
62            return x;
63      }      }
64    
65      static String __parse_string(String val) {              static String __parse_string(String val) {
66          __eliminate_quotation(val);          __eliminate_quotation(val);
67          return val;          return val;
68      }      }
69    
70      static std::vector<String> __parse_strings(String val) throw (Exception) {      static std::vector<String> __parse_strings(String val) throw (Exception) {
71          std::vector<String> vS;          std::vector<String> vS;
72            
73          // checking for empty list          // checking for empty list
74          if (val.length() == 0) return vS;          if (val.length() == 0) return vS;
75    

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

  ViewVC Help
Powered by ViewVC