21 |
/** |
/** |
22 |
* Implements the built-in $ENGINE_UPTIME script variable. |
* Implements the built-in $ENGINE_UPTIME script variable. |
23 |
*/ |
*/ |
24 |
class InstrumentScriptVMDynVar_ENGINE_UPTIME : public VMDynIntVar { |
class InstrumentScriptVMDynVar_ENGINE_UPTIME FINAL : public VMDynIntVar { |
25 |
public: |
public: |
26 |
InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {} |
InstrumentScriptVMDynVar_ENGINE_UPTIME(InstrumentScriptVM* parent) : m_vm(parent) {} |
27 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
33 |
/** |
/** |
34 |
* Implements the built-in $NI_CALLBACK_ID script variable. |
* Implements the built-in $NI_CALLBACK_ID script variable. |
35 |
*/ |
*/ |
36 |
class InstrumentScriptVMDynVar_NI_CALLBACK_ID : public VMDynIntVar { |
class InstrumentScriptVMDynVar_NI_CALLBACK_ID FINAL : public VMDynIntVar { |
37 |
public: |
public: |
38 |
InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {} |
InstrumentScriptVMDynVar_NI_CALLBACK_ID(InstrumentScriptVM* parent) : m_vm(parent) {} |
39 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
45 |
/** |
/** |
46 |
* Implements the built-in array %NKSP_CALLBACK_CHILD_ID[] script variable. |
* Implements the built-in array %NKSP_CALLBACK_CHILD_ID[] script variable. |
47 |
*/ |
*/ |
48 |
class InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID : public VMDynIntArrayVar { |
class InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID FINAL : public VMDynIntArrayVar { |
49 |
public: |
public: |
50 |
InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent); |
InstrumentScriptVMDynVar_NKSP_CALLBACK_CHILD_ID(InstrumentScriptVM* parent); |
51 |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
VMIntArrayExpr* asIntArray() const OVERRIDE; |
53 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
54 |
vmint evalIntElement(vmuint i) OVERRIDE; |
vmint evalIntElement(vmuint i) OVERRIDE; |
55 |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} |
56 |
|
vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; } |
57 |
|
void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment |
58 |
protected: |
protected: |
59 |
InstrumentScriptVM* m_vm; |
InstrumentScriptVM* m_vm; |
60 |
}; |
}; |
62 |
/** |
/** |
63 |
* Implements the built-in %ALL_EVENTS script array variable. |
* Implements the built-in %ALL_EVENTS script array variable. |
64 |
*/ |
*/ |
65 |
class InstrumentScriptVMDynVar_ALL_EVENTS : public VMDynIntArrayVar { |
class InstrumentScriptVMDynVar_ALL_EVENTS FINAL : public VMDynIntArrayVar { |
66 |
public: |
public: |
67 |
InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent); |
InstrumentScriptVMDynVar_ALL_EVENTS(InstrumentScriptVM* parent); |
68 |
virtual ~InstrumentScriptVMDynVar_ALL_EVENTS(); |
virtual ~InstrumentScriptVMDynVar_ALL_EVENTS(); |
71 |
bool isAssignable() const OVERRIDE { return false; } |
bool isAssignable() const OVERRIDE { return false; } |
72 |
vmint evalIntElement(vmuint i) OVERRIDE; |
vmint evalIntElement(vmuint i) OVERRIDE; |
73 |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} |
void assignIntElement(vmuint i, vmint value) OVERRIDE {} |
74 |
|
vmfloat unitFactorOfElement(vmuint i) const OVERRIDE { return VM_NO_FACTOR; } |
75 |
|
void assignElementUnitFactor(vmuint i, vmfloat factor) OVERRIDE {} // ignore assignment |
76 |
protected: |
protected: |
77 |
void updateNoteIDs(); |
void updateNoteIDs(); |
78 |
private: |
private: |