libmoldeo (Moldeo 1.0 Core)  1.0
libmoldeo is the group of objects and functions that executes the basic operations of Moldeo 1.0 Platform.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
moTimeManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moTimeManager.h
4 
5  ****************************************************************************
6  * *
7  * This source is free software; you can redistribute it and/or modify *
8  * it under the terms of the GNU General Public License as published by *
9  * the Free Software Foundation; either version 2 of the License, or *
10  * (at your option) any later version. *
11  * *
12  * This code is distributed in the hope that it will be useful, but *
13  * WITHOUT ANY WARRANTY; without even the implied warranty of *
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *
15  * General Public License for more details. *
16  * *
17  * A copy of the GNU General Public License is available on the World *
18  * Wide Web at <http://www.gnu.org/copyleft/gpl.html>. You can also *
19  * obtain it by writing to the Free Software Foundation, *
20  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
21  * *
22  ****************************************************************************
23 
24  Copyright(C) 2006 Fabricio Costa
25 
26  Authors:
27  Fabricio Costa
28 
29 
30 *******************************************************************************/
31 
32 #ifndef __MO_TIMEMANAGER_H__
33 #define __MO_TIMEMANAGER_H__
34 
35 #include "moTimer.h"
36 
37 #include "moText.h"
38 #include "moConfig.h"
39 #include "moLock.h"
40 #include "moResourceManager.h"
41 
42 
43 
45 
65 {
66  public:
67 
69 
72  moTimeManager();
73 
75 
78  virtual ~moTimeManager();
79 
81 
84  virtual MOboolean Init();
85 
87 
90  virtual MOboolean Finish();
91 
92  //static MOuint StartTicks();
94 
97  static MOuint GetTicks();
98 
100 
103  moTimer* NewTimer();
104 
106 
109  void AddTimer( moTimer* pTimer );
110 
112 
115  void FixTimers();
116 
118 
122  void SetDuration( MOulong p_timecode );
123 
125 
129  void ClearByObjectId( long p_objectid );
130 
132 
136  void ClearByTimerId( long p_timerid );
137 
139 
143  void FixByObjectId( long p_objectid );
144 
146 
151  protected:
152 
153  //static m_StartTicks;
154  //moMathFunctionArray m_func_array;
155  moTimers m_Timers;
156 };
157 
158 #endif
159 
#define MOulong
Definition: moTypes.h:392
Recurso ( objeto para cargar y manipular objetos físicos de datos de imágenes, audio, video, 3d, 2d, fuentes, shaders y de cualquier otro tipo extendible por un plugin )
#define MOboolean
Definition: moTypes.h:385
#define LIBMOLDEO_API
Definition: moTypes.h:180
virtual MOboolean Init()
moTimers m_Timers
Devuelve el puntero al temporizador global.
virtual MOboolean Finish()
Clase para el manejo de los temporizadores en Moldeo.
Definition: moTimeManager.h:64
Clase para el control de un temporizador (relativo) con identificación
Definition: moTimer.h:321
#define MOuint
Definition: moTypes.h:387