/[svn]/linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.h
ViewVC logotype

Annotation of /linuxsampler/trunk/src/engines/common/InstrumentScriptVMDynVars.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2948 - (hide annotations) (download) (as text)
Fri Jul 15 15:29:04 2016 UTC (7 years, 9 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 1275 byte(s)
* NKSP: Implemented built-in script function "stop_wait()".
* NKSP: Implemented built-in script variable "$NI_CALLBACK_ID".
* NKSP: Implemented built-in script variable "$NI_CALLBACK_TYPE".
* NKSP: Implemented built-in script variable "$NKSP_IGNORE_WAIT".
* NKSP: Added support for read-only built-in variables
  (respectively handled by the script parser).
* NKSP: Added built-in script constant "$NI_CB_TYPE_INIT".
* NKSP: Added built-in script constant "$NI_CB_TYPE_NOTE".
* NKSP: Added built-in script constant "$NI_CB_TYPE_RELEASE".
* NKSP: Added built-in script constant "$NI_CB_TYPE_CONTROLLER".
* Bumped version (2.0.0.svn17).

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

  ViewVC Help
Powered by ViewVC