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 |
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() { } |