/[svn]/linuxsampler/trunk/src/common/global_private.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/common/global_private.h

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

revision 1831 by schoenebeck, Sun Dec 7 01:26:46 2008 UTC revision 1832 by iliev, Thu Feb 5 17:48:54 2009 UTC
# Line 28  Line 28 
28  #define __LS_GLOBAL_PRIVATE_H__  #define __LS_GLOBAL_PRIVATE_H__
29    
30  #include "global.h"  #include "global.h"
31    #include "Exception.h"
32  #include <sstream>  #include <sstream>
33    
34  #if HAVE_CONFIG_H  #if HAVE_CONFIG_H
# Line 72  template<class T> inline String ToString Line 72  template<class T> inline String ToString
72          return ss.str();          return ss.str();
73  }  }
74    
75    inline int ToInt(const std::string& s) throw(LinuxSampler::Exception) {
76        int i;
77        std::istringstream iss(s);
78        if(!(iss >> i)) throw LinuxSampler::Exception("Not an integer");
79        return i;
80    }
81    
82  class Runnable {  class Runnable {
83      public:      public:
84          virtual ~Runnable() { }          virtual ~Runnable() { }

Legend:
Removed from v.1831  
changed lines
  Added in v.1832

  ViewVC Help
Powered by ViewVC