1 |
schoenebeck |
2942 |
/* |
2 |
|
|
* Copyright (c) 2016 Christian Schoenebeck |
3 |
|
|
* |
4 |
|
|
* http://www.linuxsampler.org |
5 |
|
|
* |
6 |
|
|
* This file is part of LinuxSampler and released under the same terms. |
7 |
|
|
* See README file for details. |
8 |
|
|
*/ |
9 |
|
|
|
10 |
|
|
#ifndef LS_INSTRSCRIPTVMDYNVARS_H |
11 |
|
|
#define LS_INSTRSCRIPTVMDYNVARS_H |
12 |
|
|
|
13 |
|
|
#include "../../common/global.h" |
14 |
|
|
#include "../../scriptvm/CoreVMDynVars.h" |
15 |
|
|
|
16 |
|
|
namespace LinuxSampler { |
17 |
|
|
|
18 |
|
|
class InstrumentScriptVM; |
19 |
|
|
|
20 |
|
|
/** |
21 |
|
|
* Implements the built-in $ENGINE_UPTIME script variable. |
22 |
|
|
*/ |
23 |
|
|
class InstrumentScriptVMDynVar_ENGINE_UPTIME : public VMDynIntVar { |
24 |
|
|
public: |
25 |
|
|
InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {} |
26 |
|
|
bool isAssignable() const OVERRIDE { return false; } |
27 |
|
|
int evalInt() OVERRIDE; |
28 |
|
|
protected: |
29 |
|
|
InstrumentScriptVM* m_vm; |
30 |
|
|
}; |
31 |
|
|
|
32 |
schoenebeck |
2948 |
/** |
33 |
|
|
* Implements the built-in $NI_CALLBACK_ID script variable. |
34 |
|
|
*/ |
35 |
|
|
class InstrumentScriptVMDynVar_NI_CALLBACK_ID : public VMDynIntVar { |
36 |
|
|
public: |
37 |
|
|
InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {} |
38 |
|
|
bool isAssignable() const OVERRIDE { return false; } |
39 |
|
|
int evalInt() OVERRIDE; |
40 |
|
|
protected: |
41 |
|
|
InstrumentScriptVM* m_vm; |
42 |
|
|
}; |
43 |
|
|
|
44 |
schoenebeck |
2942 |
} // namespace LinuxSampler |
45 |
|
|
|
46 |
|
|
#endif // LS_INSTRSCRIPTVMDYNVARS_H |