24#ifndef __LS_DEVICE_PARAMETER_H__
25#define __LS_DEVICE_PARAMETER_H__
30#include "../common/global.h"
31#include "../common/optional.h"
32#include "../common/Exception.h"
788 void InitWithDefault();
828 void InitWithDefault();
868 void InitWithDefault();
905 void InitWithDefault();
945 void InitWithDefault();
Abstract base class for driver parameters of type Bool.
DeviceCreationParameterBool(bool bVal=false)
DeviceCreationParameterBool(String val)
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
Abstract base class for driver parameters of type float.
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
DeviceCreationParameterFloat(float fVal=0.0)
DeviceCreationParameterFloat(String val)
Abstract base class for driver parameters of type int.
DeviceCreationParameterInt(String val)
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
DeviceCreationParameterInt(int iVal=0)
Abstract base class for driver parameters of type String.
DeviceCreationParameterString(String sVal=String())
virtual ~DeviceCreationParameterString()
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
Abstract base class for driver parameters of a String list type.
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
DeviceCreationParameterStrings(std::vector< String > sVals)
DeviceCreationParameterStrings()
virtual ~DeviceCreationParameterStrings()
DeviceCreationParameterStrings(String val)
Abstract base class for parameters at driver instanciation time.
virtual std::map< String, DeviceCreationParameter * > DependsAsParameters()=0
Might return a unique key-value pair list (map) reflecting the dependencies of this parameter to othe...
virtual optional< String > Depends()
Might return a comma separated list of parameter names this parameter depends on.
virtual optional< String > RangeMin(std::map< String, String > Parameters)=0
Might return a minimum value for this parameter.
virtual optional< String > Possibilities(std::map< String, String > Parameters)=0
Might return a comma separated list as String with possible values for this parameter.
void Attach(Device *pDevice)
Sets the internal device pointer to a specific device (driver instance) for this parameter object.
virtual optional< String > RangeMin()
Might return a minimum value for this parameter.
virtual optional< String > RangeMax()
Might return a maximum value for this parameter.
virtual optional< String > Default()
Might return a default value for this parameter.
DeviceCreationParameter(void)
Constructor.
virtual optional< String > Possibilities()
Might return a comma separated list as String with possible values for this parameter.
virtual optional< String > RangeMax(std::map< String, String > Parameters)=0
Might return a maximum value for this parameter.
virtual bool Mandatory()=0
Whether the parameter must be supplied by the user at device creation time.
virtual optional< String > Default(std::map< String, String > Parameters)=0
Might return a default value for this parameter.
Abstract base class for driver parameters of type bool.
virtual bool ValueAsBool()
virtual void SetValue(String val) OVERRIDE
Alter the parameter with the value given by val.
virtual optional< String > RangeMin() OVERRIDE
The driver parameter might (optionally) return a minimum value for the parameter.
virtual void OnSetValue(bool b)=0
Must be implemented be a driver's parameter class to react on the parameter value being set / altered...
virtual bool Multiplicity() OVERRIDE
Whether the parameter only allows to set one scalar value, or if true is returned here,...
virtual String Value() OVERRIDE
The current value of this parameter (encoded as String).
virtual optional< String > Possibilities() OVERRIDE
The driver parameter might (optionally) return a list of possible values for this parameter,...
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
DeviceRuntimeParameterBool(bool bVal)
Constructor for value type bool.
virtual optional< String > RangeMax() OVERRIDE
The driver parameter might (optionally) return a maximum value for the parameter.
Abstract base class for driver parameters of type float.
DeviceRuntimeParameterFloat(float fVal)
Constructor for value type float.
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
Abstract base class for driver parameters of type int.
DeviceRuntimeParameterInt(int iVal)
Constructor for value type int.
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
Abstract base class for driver parameters of type String.
DeviceRuntimeParameterString(String sVal)
Constructor for value type String.
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
virtual ~DeviceRuntimeParameterString()
Destructor.
Abstract base class for driver parameters of a String list type.
virtual String Type() OVERRIDE
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
DeviceRuntimeParameterStrings(std::vector< String > vS)
Constructor for value type String.
virtual ~DeviceRuntimeParameterStrings()
Destructor.
Abstracet base class for all driver parameters of the sampler.
virtual bool Fix()=0
Whether the parameter is read only.
virtual String Description()=0
A human readable description, explaining the exact purpose of the driver parameter.
virtual String Type()=0
Some name reflecting the parameter's value type, like "BOOL, "INT", "FLOAT", "STRING",...
virtual void SetValue(String val)=0
Alter the parameter with the value given by val.
virtual bool Multiplicity()=0
Whether the parameter only allows to set one scalar value, or if true is returned here,...
virtual optional< String > Possibilities()=0
The driver parameter might (optionally) return a list of possible values for this parameter,...
virtual String Value()=0
The current value of this parameter (encoded as String).
virtual optional< String > RangeMin()=0
The driver parameter might (optionally) return a minimum value for the parameter.
virtual optional< String > RangeMax()=0
The driver parameter might (optionally) return a maximum value for the parameter.
virtual ~DeviceRuntimeParameter()
Destructor.
Abstract base class for all kind of drivers in LinuxSampler.
Exception that will be thrown in NON REAL TIME PARTS of the LinuxSampler application.
Wraps as a kind of pointer class some data object shared with other threads, to protect / synchronize...