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
moActions.cpp
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moActions.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 #include "moActions.h"
32 #include <moArray.h>
33 moDefineDynamicArray( moReactionListeners )
34 
35 
37 moAction::moAction() {
38  m_ActionType = MO_ACTION_UNDEFINED;
39 }
40 
42  m_ActionType = p_ActionType;
43 }
44 
46 
47 }
48 
53 }
54 
56  m_ReactionType = p_ReactionType;
57 }
58 
60 
61 }
62 
66  m_hostname = "MO_ACTION_LISTENER_HOST_UNDEFINED";
68 }
69 
70 moReactionListener::moReactionListener( const moText &p_host, int p_port) {
71  m_hostname = p_host;
72  m_port = p_port;
73 }
74 
76 
77 }
78 
79 
80 
84 
87  //m_MapStrToActionType
88  std::string skey = (char*)p_action_type_str;
90 }
92  //m_ReactionListeners
93 
103 
109 
114 
115 
125  m_MapStrToActionType["objectgetpreconfig"] = MO_ACTION_OBJECT_GETPRECONFIG;
126  m_MapStrToActionType["objectgetpreconfigs"] = MO_ACTION_OBJECT_GETPRECONFIGS;
131 
140 
144  m_MapStrToActionType["consolerecordsession"] = MO_ACTION_CONSOLE_RECORD_SESSION;
145  m_MapStrToActionType["consolerendersession"] = MO_ACTION_CONSOLE_RENDER_SESSION;
151  m_MapStrToActionType["consolescreenshot"] = MO_ACTION_CONSOLE_SCREENSHOT;
153  m_MapStrToActionType["consolepresentation"] = MO_ACTION_CONSOLE_PRESENTATION;
154  m_MapStrToActionType["consolefullscreen"] = MO_ACTION_CONSOLE_FULLSCREEN;
155  m_MapStrToActionType["consolefullscreensecondary"] = MO_ACTION_CONSOLE_FULLSCREEN_SECONDARY;
162  m_MapStrToActionType["consolepresetdelete"] = MO_ACTION_CONSOLE_PRESET_DELETE;
165 
166 }
167 
169 
170 }
static TMapStrToActionType m_MapStrToActionType
Definition: moActions.h:811
"valueset" > MO_ACTION_VALUE_SET
Definition: moActions.h:132
static moMoldeoActionType StrToActionType(const moText &p_action_type_str)
Definition: moActions.cpp:86
1: config full file path
Definition: moActions.h:290
"objectgetstate" : OBJECT_GETSTATE
Definition: moActions.h:299
"effectplay" : MO_ACTION_EFFECT_PLAY
Definition: moActions.h:446
"consolescreenshot" : MO_ACTION_CONSOLE_SCREENSHOT
Definition: moActions.h:576
"consolepresentation" : MO_ACTION_CONSOLE_PRESENTATION
Definition: moActions.h:595
"consolesetstate" : MO_ACTION_CONSOLE_SETSTATE
Definition: moActions.h:649
"objetenable" : MO_ACTION_OBJECT_ENABLE
Definition: moActions.h:371
param 1: event info
Definition: moActions.h:508
"paramsave" > MO_ACTION_PARAM_SAVE
Definition: moActions.h:182
moMoldeoReactionType
Definition: moActions.h:726
param 1: object name | object id
Definition: moActions.h:363
"consolerendersession" : MO_ACTION_CONSOLE_RECORD_SESSION
Definition: moActions.h:529
param 1: effect label name | effect id
Definition: moActions.h:416
1: father object name | id, 2: object info
Definition: moActions.h:274
"preconfigadd" > MO_ACTION_PRECONFIG_ADD
Definition: moActions.h:206
"consolepresetdelete" : MO_ACTION_CONSOLE_PRESET_DELETE
Definition: moActions.h:681
Señal de cambiar de modo de presentación: fullscreen, fullscreen_secondary, windowed.
Definition: moActions.h:603
"consolepresetset" : MO_ACTION_CONSOLE_PRESET_SET
Definition: moActions.h:701
moMoldeoActionType m_ActionType
Definition: moActions.h:763
"consolepause" : MO_ACTION_CONSOLE_PAUSE
Definition: moActions.h:543
virtual ~moReactionListener()
Definition: moActions.cpp:75
"objectgetpreconfig" : MO_ACTION_OBJECT_GETPRECONFIG
Definition: moActions.h:316
"valueget" > MO_ACTION_VALUE_GET
Definition: moActions.h:142
clase de para manejar textos
Definition: moText.h:75
"consolewindowed" : MO_ACTION_CONSOLE_WINDOWED
Definition: moActions.h:617
virtual ~moReactionListenerManager()
Definition: moActions.cpp:168
"consolesaves" : MO_ACTION_CONSOLE_SAVEAS
Definition: moActions.h:566
"consolefullscreensecondary" : MO_ACTION_CONSOLE_FULLSCREEN_SECONDARY
Definition: moActions.h:610
"consolerecordsession" : MO_ACTION_CONSOLE_RECORD_SESSION
Definition: moActions.h:522
"objectset" : MO_ACTION_OBJECT_SET
Definition: moActions.h:343
moDefineDynamicArray(moReactionListeners) moAction
Definition: moActions.cpp:33
"valueget" > MO_ACTION_VALUE_GET
Definition: moActions.h:152
"consolepreviewshot" : MO_ACTION_CONSOLE_PREVIEW_SHOT
Definition: moActions.h:588
"effectpause" : MO_ACTION_EFFECT_PAUSE
Definition: moActions.h:464
"preconfigset" > MO_ACTION_PRECONFIG_SET
Definition: moActions.h:237
"objectgetpreconfig" : MO_ACTION_OBJECT_GETPRECONFIG
Definition: moActions.h:324
"objetdisable" : MO_ACTION_OBJECT_DISABLE
Definition: moActions.h:379
moMoldeoActionType
moMoldeoActionType
Definition: moActions.h:64
virtual ~moAction()
Definition: moActions.cpp:45
1: object name | id
Definition: moActions.h:282
moMoldeoReactionType m_ReactionType
Definition: moActions.h:774
"consoleplaysession" : MO_ACTION_CONSOLE_PLAY_SESSION
Definition: moActions.h:515
"valuedelete" > MO_ACTION_VALUE_DELETE
Definition: moActions.h:99
param 1: effect label name | effect id
Definition: moActions.h:426
"preconfigsave" > MO_ACTION_PRECONFIG_SAVE
Definition: moActions.h:226
"valueadd" > MO_ACTION_VALUE_ADD
Definition: moActions.h:88
"paramset" > MO_ACTION_PARAM_SET
Definition: moActions.h:173
param 1: object name | object id
Definition: moActions.h:408
"paramget" > MO_ACTION_PARAM_GET
Definition: moActions.h:163
"consolesavesessionas" : MO_ACTION_CONSOLE_SAVE_SESSION_AS
Definition: moActions.h:536
"consolepresetsave" : MO_ACTION_CONSOLE_PRESET_SAVE
Definition: moActions.h:691
#define MO_ACTION_LISTENER_PORT_UNDEFINED
Definition: moActions.h:44
"objectget" : MO_ACTION_OBJECT_GETCONFIG
Definition: moActions.h:307
"preconfigdelete" > MO_ACTION_PRECONFIG_DELETE
Definition: moActions.h:216
"effectgetstate" : MO_ACTION_EFFECT_SETSTATE
Definition: moActions.h:437
"consolestop" : MO_ACTION_CONSOLE_STOP
Definition: moActions.h:550
"objects add" > MO_ACTION_OBJECTS_ADD
Definition: moActions.h:266
"consolegetstate" : MO_ACTION_CONSOLE_GETSTATE
Definition: moActions.h:640
"consolepresetadd" : MO_ACTION_CONSOLE_PRESET_ADD
Definition: moActions.h:672
"consoleget" : MO_ACTION_CONSOLE_GET
Definition: moActions.h:632
"valuerefresh" > MO_ACTION_VALUE_REFRESH
Definition: moActions.h:121
std::map< std::string, int > TMapStrToActionType
Definition: moActions.h:798
virtual ~moReaction()
Definition: moActions.cpp:59
"effectstop" : MO_ACTION_EFFECT_STOP
Definition: moActions.h:455
"consolesave" : MO_ACTION_CONSOLE_SAVE
Definition: moActions.h:557
"objectsave" : MO_ACTION_OBJECT_SAVE
Definition: moActions.h:333
"valuesave" > MO_ACTION_VALUE_SAVE
Definition: moActions.h:109