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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2942 - (show annotations) (download) (as text)
Wed Jul 13 15:51:06 2016 UTC (7 years, 9 months ago) by schoenebeck
File MIME type: text/x-c++hdr
File size: 866 byte(s)
* NKSP: Implemented built-in script variable "$KSP_TIMER".
* NKSP: Implemented built-in script variable "$NKSP_REAL_TIMER".
* NKSP: Implemented built-in script variable "$NKSP_PERF_TIMER".
* NKSP: Implemented built-in script variable "$ENGINE_UPTIME".
* Bumped version (2.0.0.svn14).

1 /*
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 } // namespace LinuxSampler
33
34 #endif // LS_INSTRSCRIPTVMDYNVARS_H

  ViewVC Help
Powered by ViewVC