CFugue
TimeToken.h
1 /*
2  This is part of CFugue, a C++ Runtime for MIDI Score Programming
3  Copyright (C) 2009 Gopalakrishna Palem
4 
5  For links to further information, or to contact the author,
6  see <http://cfugue.sourceforge.net/>.
7 
8  $LastChangedDate: 2013-12-18 10:59:57 +0530 (Wed, 18 Dec 2013) $
9  $Rev: 197 $
10  $LastChangedBy: krishnapg $
11 */
12 
13 #ifndef _TIME_H__AB00FD0B_E6BC_40cf_B86B_796212E2FA47__
14 #define _TIME_H__AB00FD0B_E6BC_40cf_B86B_796212E2FA47__
15 
16 namespace CFugue
17 {
18  /// <Summary>
19  /// Represents a timing value. Useful for indicating when certain events are played.
20  /// </Summary>
21  class Time
22  {
23  unsigned long m_nTime;
24  public:
25  inline Time(unsigned long nTime) : m_nTime(nTime) { }
26 
27  /// Returns the Time value the current object represents
28  inline unsigned long GetTime() const { return m_nTime; }
29  };
30 
31 } // namespace CFugue
32 
33 #endif // _TIME_H__AB00FD0B_E6BC_40cf_B86B_796212E2FA47__
unsigned long GetTime() const
Returns the Time value the current object represents.
Definition: TimeToken.h:28

CFugue, the C++ Music Programming Library © Copyright 2009 Cenacle Research India Private Limited Gopalakrishna Palem