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.h
Go to the documentation of this file.
1 /*******************************************************************************
2 
3  moActions.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 #ifndef __MOACTIONS_H
32 #define __MOACTIONS_H
33 
34 #include "moTypes.h"
35 #include "moValue.h"
36 
37 
38 #include <iostream>
39 #include <map>
40 #include <string>
41 using namespace std;
42 
43 #define MO_ACTION_LISTENER_HOST_UNDEFINED 127.0.0.1
44 #define MO_ACTION_LISTENER_PORT_UNDEFINED 7777
45 
46 #define MO_ACTION_MOLDEOAPI_EVENT_SEND 333
47 #define MO_ACTION_MOLDEOAPI_EVENT_RECEIVE 444
48 
49 
51 
65 
67 
68 
69 
70 
71 
72 
73  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
74  // VALUES
75  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
76 
78 
91 
101 
111 
123 
134 
144 
156 
165 
175 
194  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
195  // PRECONFIGS
196  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
197 
199 
208 
218 
228 
250  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
251  // OBJECTS
252  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
253 
255 
267 
269 
275 
277 
283 
285 
291 
293 
300 
302 
308 
310 
317 
319 
325 
327 
335 
344 
346 
353 
355 
364 
366 
372 
374 
380 
382 
388 
389 
390 
391 
392 
393 
394 
395 
396 
397 
398  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
399  // EFFECTS moEffect derived from moMoldeoObject
400  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
401 
403 
409 
411 
417 
419 
427 
429 
438 
440 
447 
449 
456 
458 
465 
466 
467 
468 
469 
470 
471 
472 
473 
474 
475 
476  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
477  // EVENTS
478  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
479 
481 
488 
489 
490 
491 
492 
493 
494 
495 
496 
497 
498 
499  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
500  // CONSOLE
501  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
502 
504 
509 
511 
516 
518 
523 
525 
530 
532 
537 
539 
544 
546 
551 
553 
558 
560 
567 
569 
577 
579 
589 
591 
596 
597 
599 
604 
606 
611 
613 
618 
620 
625 
627 
633 
635 
641 
643 
650 
651 
652 
653 
654 
655 
656 
657 
658 
659 
660  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
661  // CONSOLE PRESETS
662  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
663 
665 
673 
675 
682 
684 
692 
694 
702 
703 
704 
705 
706 
707 
708 
709 
710 
711  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
712  // ACTIONS - REACTIONS
713  //==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ==== ====
714 
723 };
724 
725 
727 
732 
736 
740 
744 };
745 
746 
747 
748 
749 
756 class moAction {
757 
758  public:
759  moAction();
760  moAction( moMoldeoActionType p_ActionType );
761  virtual ~moAction();
762 
765 };
766 
767 class moReaction {
768 
769  public:
770  moReaction();
771  moReaction( moMoldeoReactionType p_ReactionType );
772  virtual ~moReaction();
773 
775 
776 };
777 
778 
779 
784 
785  public:
787  moReactionListener( const moText &p_host, int p_port );
788  virtual ~moReactionListener();
789 
791  int m_port;
792 
793 };
794 
795 moDeclareExportedDynamicArray( moReactionListener*, moReactionListeners );
796 
797 typedef std::map< std::string, moAction > TMapStrToAction;
798 typedef std::map< std::string, int> TMapStrToActionType;
799 
801 
802  public:
804  virtual ~moReactionListenerManager();
805 
807  moReactionListeners m_ReactionListeners;
808  static moMoldeoActionType StrToActionType( const moText& p_action_type_str );
809 
812 
813 };
814 
815 #endif
816 
static TMapStrToActionType m_MapStrToActionType
Definition: moActions.h:811
"valueset" > MO_ACTION_VALUE_SET
Definition: moActions.h:132
1: config full file path
Definition: moActions.h:290
moDeclareExportedDynamicArray(moReactionListener *, moReactionListeners)
"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
moDatas moDataMessage
Definition: moValue.h:149
"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
Clase base abstracta de donde deben derivar los objetos [virtual pura].
Definition: moAbstract.h:191
"consolepause" : MO_ACTION_CONSOLE_PAUSE
Definition: moActions.h:543
"consolereset" : MO_ACTION_CONSOLE_RESET
Definition: moActions.h:624
"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
"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
std::map< std::string, moAction > TMapStrToAction
Definition: moActions.h:797
"objectset" : MO_ACTION_OBJECT_SET
Definition: moActions.h:343
"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
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
param 1: object name | object id
Definition: moActions.h:387
"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
static TMapStrToAction m_MapStrToAction
Definition: moActions.h:810
"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
moReactionListeners m_ReactionListeners
Definition: moActions.h:807
"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
moDataMessage m_Arguments
Definition: moActions.h:764
"effectstop" : MO_ACTION_EFFECT_STOP
Definition: moActions.h:455
"eventadd" : MO_ACTION_EVENT_ADD
Definition: moActions.h:487
"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