/[svn]/linuxsampler/trunk/src/scriptvm/CoreVMDynVars.h
ViewVC logotype

Contents of /linuxsampler/trunk/src/scriptvm/CoreVMDynVars.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: 987 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_COREVMDYNVARS_H
11 #define LS_COREVMDYNVARS_H
12
13 #include "../common/global.h"
14 #include "common.h"
15
16 namespace LinuxSampler {
17
18 class ScriptVM;
19
20 ///////////////////////////////////////////////////////////////////////////
21 // implementations of core built-in dynamic variables ...
22
23 /**
24 * Implements the built-in $NKSP_REAL_TIMER script variable.
25 */
26 class CoreVMDynVar_NKSP_REAL_TIMER : public VMDynIntVar {
27 public:
28 bool isAssignable() const OVERRIDE { return false; }
29 int evalInt() OVERRIDE;
30 };
31
32 /**
33 * Implements the built-in $NKSP_PERF_TIMER script variable.
34 */
35 class CoreVMDynVar_NKSP_PERF_TIMER : public VMDynIntVar {
36 public:
37 bool isAssignable() const OVERRIDE { return false; }
38 int evalInt() OVERRIDE;
39 };
40
41 } // namespace LinuxSampler
42
43 #endif // LS_COREVMDYNVARS_H

  ViewVC Help
Powered by ViewVC