29 |
#include "../common/global.h" |
#include "../common/global.h" |
30 |
#include "../common/optional.h" |
#include "../common/optional.h" |
31 |
#include "../common/LinuxSamplerException.h" |
#include "../common/LinuxSamplerException.h" |
32 |
|
#include "InputOutputDevice.h" |
33 |
|
|
34 |
namespace LinuxSampler { |
namespace LinuxSampler { |
35 |
|
|
152 |
|
|
153 |
class DeviceCreationParameter : public DeviceRuntimeParameter { |
class DeviceCreationParameter : public DeviceRuntimeParameter { |
154 |
public: |
public: |
155 |
|
DeviceCreationParameter ( void ) { pDevice = NULL; } |
156 |
virtual bool Mandatory() = 0; |
virtual bool Mandatory() = 0; |
157 |
virtual optional<String> Depends(); |
virtual optional<String> Depends(); |
158 |
virtual std::map<String,DeviceCreationParameter*> DependsAsParameters() = 0; |
virtual std::map<String,DeviceCreationParameter*> DependsAsParameters() = 0; |
164 |
virtual optional<String> RangeMax(std::map<String,String> Parameters) = 0; |
virtual optional<String> RangeMax(std::map<String,String> Parameters) = 0; |
165 |
virtual optional<String> Possibilities(); |
virtual optional<String> Possibilities(); |
166 |
virtual optional<String> Possibilities(std::map<String,String> Parameters) = 0; |
virtual optional<String> Possibilities(std::map<String,String> Parameters) = 0; |
167 |
|
void Attach(InputOutputDevice* pDevice) { this->pDevice = pDevice; } |
168 |
|
protected: |
169 |
|
InputOutputDevice* pDevice; |
170 |
}; |
}; |
171 |
|
|
172 |
class DeviceCreationParameterBool : public DeviceCreationParameter { |
class DeviceCreationParameterBool : public DeviceCreationParameter { |
173 |
public: |
public: |
174 |
DeviceCreationParameterBool(); |
DeviceCreationParameterBool(bool bVal = false); |
|
DeviceCreationParameterBool(bool bVal); |
|
175 |
DeviceCreationParameterBool(String val) throw (LinuxSamplerException); |
DeviceCreationParameterBool(String val) throw (LinuxSamplerException); |
176 |
virtual String Type(); |
virtual String Type(); |
177 |
virtual bool Multiplicity(); |
virtual bool Multiplicity(); |
195 |
|
|
196 |
class DeviceCreationParameterInt : public DeviceCreationParameter { |
class DeviceCreationParameterInt : public DeviceCreationParameter { |
197 |
public: |
public: |
198 |
DeviceCreationParameterInt(); |
DeviceCreationParameterInt(int iVal = 0); |
|
DeviceCreationParameterInt(int iVal); |
|
199 |
DeviceCreationParameterInt(String val) throw (LinuxSamplerException); |
DeviceCreationParameterInt(String val) throw (LinuxSamplerException); |
200 |
virtual String Type(); |
virtual String Type(); |
201 |
virtual bool Multiplicity(); |
virtual bool Multiplicity(); |
222 |
|
|
223 |
class DeviceCreationParameterFloat : public DeviceCreationParameter { |
class DeviceCreationParameterFloat : public DeviceCreationParameter { |
224 |
public: |
public: |
225 |
DeviceCreationParameterFloat(); |
DeviceCreationParameterFloat(float fVal = 0.0); |
|
DeviceCreationParameterFloat(float fVal); |
|
226 |
DeviceCreationParameterFloat(String val) throw (LinuxSamplerException); |
DeviceCreationParameterFloat(String val) throw (LinuxSamplerException); |
227 |
virtual String Type(); |
virtual String Type(); |
228 |
virtual bool Multiplicity(); |
virtual bool Multiplicity(); |
249 |
|
|
250 |
class DeviceCreationParameterString : public DeviceCreationParameter { |
class DeviceCreationParameterString : public DeviceCreationParameter { |
251 |
public: |
public: |
252 |
DeviceCreationParameterString(); |
DeviceCreationParameterString(String sVal = String()); |
|
DeviceCreationParameterString(String sVal); |
|
253 |
virtual String Type(); |
virtual String Type(); |
254 |
virtual bool Multiplicity(); |
virtual bool Multiplicity(); |
255 |
virtual optional<String> RangeMin(std::map<String,String> Parameters); |
virtual optional<String> RangeMin(std::map<String,String> Parameters); |