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
moConsoleState.cpp
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moConsoleState.cpp
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 #include "moConsoleState.h"
33 
35 
38  finish = MO_FALSE;
39  reinit = MO_FALSE;
41 
42  fps = 30;
43  fps0 = 0;
44  fps1 = 1;
45 
48  frame = 0;
49 
51  m_RenderFrameQuality = "JPGGOOD";
52 }
53 
55  Finish();
56 }
57 
60 
63  finish = MO_FALSE;
64  reinit = MO_FALSE;
66 
67  fps = 30;
68  fps0 = 0;
69  fps1 = 1;
70 
72 
73  return true;
74 }
75 
78 
81  finish = MO_FALSE;
82  reinit = MO_FALSE;
84 
85  fps = 30;
86  fps0 = 0;
87  fps1 = 1;
88 /*
89  m_nEffects = 0;
90  m_nPreEffects = 0;
91  m_nPostEffects = 0;
92  m_nMasterEffects = 0;
93  m_nAllEffects = 0;
94 */
95  return true;
96 }
97 
98 const moText&
100 
101  moText fieldSeparation = ",";
103  moText tmode = "";
104  if (m_Mode==MO_CONSOLE_MODE_LIVE) tmode = "live";
105  if (m_Mode==MO_CONSOLE_MODE_PLAY_SESSION) tmode = "playsession";
106  if (m_Mode==MO_CONSOLE_MODE_RECORD_SESSION) tmode = "recordsession";
107  if (m_Mode==MO_CONSOLE_MODE_RENDER_SESSION) tmode = "rendersession";
108 
109  moText json = "{";
110  json+= "'mode': '"+tmode+"'";
111  json+= fieldSeparation + "'effectstate':"+fullJSON;
112  json+= "}";
113 
114  fullJSON = json;
115  return fullJSON;
116 }
117 
118 
119 
120 
MOswitch automatic
#define MOboolean
Definition: moTypes.h:385
MOboolean Finish()
Finaliza el objeto, libera recursos.
const moText & ToJSON()
clase de para manejar textos
Definition: moText.h:75
virtual ~moConsoleState()
#define MO_DEACTIVATED
Definition: moTypes.h:368
MOswitch savescreen
moConsoleMode m_Mode
moText m_RenderFrameQuality
MOboolean Init()
Inicializa el objeto.
#define MO_FALSE
Definition: moTypes.h:369
MOswitch stereooutput
virtual const moText & ToJSON()