|
hydrogen 1.2.3
|
The MidiActionManager cares for the execution of MidiActions. More...
#include <MidiAction.h>
Public Member Functions | |
| MidiActionManager () | |
| ~MidiActionManager () | |
| QStringList | getActionList () |
| int | getParameterNumber (const QString &sActionType) const |
| bool | handleAction (std::shared_ptr< Action > action) |
| The handleAction method is the heart of the MidiActionManager class. | |
| bool | handleActions (std::vector< std::shared_ptr< Action > > actions) |
| Handles multiple actions at once and calls handleAction() on them. | |
Public Member Functions inherited from Object< MidiActionManager > | |
| Object () | |
| Object (const Object< MidiActionManager > &other) | |
Public Member Functions inherited from Base | |
| Base () | |
| Base (const Base &other) | |
| virtual const char * | class_name () const |
| void | Print (bool bShort=true) const |
| Prints content of toQString() via DEBUGLOG. | |
| virtual QString | toQString (const QString &sPrefix="", bool bShort=true) const |
| Formatted string version for debugging purposes. | |
Static Public Member Functions | |
| static void | create_instance () |
| If __instance equals 0, a new MidiActionManager singleton will be created and stored in it. | |
| static MidiActionManager * | get_instance () |
| Returns a pointer to the current MidiActionManager singleton stored in __instance. | |
Static Public Member Functions inherited from Base | |
| static const char * | _class_name () |
| return the class name | |
| static QString | base_clock (const QString &sMsg) |
| Measures the current time and stores it in __last_clock. | |
| static QString | base_clock_in (const QString &sMsg) |
| static int | bootstrap (Logger *logger, bool count=false) |
| must be called before any Object instantiation ! | |
| static bool | count_active () |
| static int | getAliveObjectCount () |
| static object_map_t | getObjectMap () |
| static Logger * | logger () |
| return the logger instance | |
| static int | objects_count () |
| static void | printObjectMapDiff (object_map_t map) |
| Creates the difference between a snapshot of the object map and its current state and prints it to std::cout. | |
| static void | set_count (bool flag) |
| enable/disable class instances counting | |
| static void | write_objects_map_to (std::ostream &out, object_map_t *map=nullptr) |
| output the full objects map to a given ostream | |
| static void | write_objects_map_to_cerr () |
| output objects map to stderr | |
Private Types | |
| typedef bool(MidiActionManager::* | action_f) (std::shared_ptr< Action >, H2Core::Hydrogen *) |
Private Attributes | |
| QStringList | m_actionList |
| Holds the names of all Action identifiers which Hydrogen is able to interpret. | |
| std::map< QString, std::pair< action_f, int > > | m_actionMap |
| Holds all Action identifiers which Hydrogen is able to interpret. | |
| int | m_nLastBpmChangeCCParameter |
Static Private Attributes | |
| static MidiActionManager * | __instance = nullptr |
| Object holding the current MidiActionManager singleton. | |
Additional Inherited Members | |
Static Public Attributes inherited from Base | |
| static QString | sPrintIndention = " " |
| String used to format the debugging string output of some core classes. | |
Protected Member Functions inherited from Object< MidiActionManager > | |
| ~Object () | |
Protected Member Functions inherited from Base | |
| ~Base () | |
Static Protected Member Functions inherited from Base | |
| static void | registerClass (const char *name, const atomic_obj_cpt_t *counters) |
Static Protected Attributes inherited from Base | |
| static bool | __count = false |
| should we count class instances | |
| static timeval | __last_clock = { 0, 0 } |
| static Logger * | __logger = nullptr |
The MidiActionManager cares for the execution of MidiActions.
The MidiActionManager handles the execution of midi actions. The class includes the names and implementations of all possible actions.
Definition at line 141 of file MidiAction.h.
|
private |
Definition at line 159 of file MidiAction.h.
Definition at line 139 of file MidiAction.cpp.
| ~MidiActionManager | ( | ) |
Definition at line 204 of file MidiAction.cpp.
|
private |
Definition at line 356 of file MidiAction.cpp.
|
private |
Definition at line 931 of file MidiAction.cpp.
|
private |
Definition at line 1054 of file MidiAction.cpp.
|
private |
Definition at line 983 of file MidiAction.cpp.
|
private |
Definition at line 1029 of file MidiAction.cpp.
|
static |
If __instance equals 0, a new MidiActionManager singleton will be created and stored in it.
It is called in H2Core::Hydrogen::create_instance().
Definition at line 209 of file MidiAction.cpp.
|
private |
Definition at line 503 of file MidiAction.cpp.
|
private |
Definition at line 538 of file MidiAction.cpp.
|
private |
Definition at line 892 of file MidiAction.cpp.
|
private |
Definition at line 798 of file MidiAction.cpp.
|
inlinestatic |
Returns a pointer to the current MidiActionManager singleton stored in __instance.
Definition at line 252 of file MidiAction.h.
|
inline |
Definition at line 254 of file MidiAction.h.
| int getParameterNumber | ( | const QString & | sActionType | ) | const |
Definition at line 1231 of file MidiAction.cpp.
| bool handleAction | ( | std::shared_ptr< Action > | action | ) |
The handleAction method is the heart of the MidiActionManager class.
It executes the operations that are needed to carry the desired action.
Definition at line 1257 of file MidiAction.cpp.
| bool handleActions | ( | std::vector< std::shared_ptr< Action > > | actions | ) |
Handles multiple actions at once and calls handleAction() on them.
Definition at line 1242 of file MidiAction.cpp.
|
private |
Definition at line 576 of file MidiAction.cpp.
|
private |
Definition at line 598 of file MidiAction.cpp.
|
private |
Definition at line 280 of file MidiAction.cpp.
|
private |
Definition at line 300 of file MidiAction.cpp.
|
private |
Definition at line 1079 of file MidiAction.cpp.
|
private |
Definition at line 394 of file MidiAction.cpp.
|
private |
Definition at line 431 of file MidiAction.cpp.
|
private |
Definition at line 699 of file MidiAction.cpp.
|
private |
Definition at line 730 of file MidiAction.cpp.
|
private |
Definition at line 762 of file MidiAction.cpp.
|
private |
Definition at line 228 of file MidiAction.cpp.
|
private |
Definition at line 845 of file MidiAction.cpp.
|
private |
Definition at line 215 of file MidiAction.cpp.
|
private |
Definition at line 250 of file MidiAction.cpp.
|
private |
Definition at line 1136 of file MidiAction.cpp.
|
private |
Definition at line 1141 of file MidiAction.cpp.
|
private |
Definition at line 1130 of file MidiAction.cpp.
|
private |
Definition at line 1094 of file MidiAction.cpp.
|
private |
Definition at line 1193 of file MidiAction.cpp.
|
private |
Definition at line 1146 of file MidiAction.cpp.
|
private |
Definition at line 1180 of file MidiAction.cpp.
|
private |
Definition at line 1164 of file MidiAction.cpp.
|
private |
Definition at line 1226 of file MidiAction.cpp.
|
private |
Definition at line 463 of file MidiAction.cpp.
|
private |
Definition at line 481 of file MidiAction.cpp.
|
private |
Definition at line 377 of file MidiAction.cpp.
|
private |
Definition at line 389 of file MidiAction.cpp.
|
private |
Definition at line 383 of file MidiAction.cpp.
|
private |
Definition at line 421 of file MidiAction.cpp.
|
private |
Definition at line 426 of file MidiAction.cpp.
|
private |
Definition at line 1106 of file MidiAction.cpp.
|
private |
Definition at line 239 of file MidiAction.cpp.
|
private |
Definition at line 310 of file MidiAction.cpp.
|
private |
Definition at line 333 of file MidiAction.cpp.
|
private |
Definition at line 624 of file MidiAction.cpp.
|
private |
Definition at line 658 of file MidiAction.cpp.
|
private |
Definition at line 366 of file MidiAction.cpp.
|
private |
Definition at line 1206 of file MidiAction.cpp.
|
private |
Definition at line 1221 of file MidiAction.cpp.
|
private |
Definition at line 290 of file MidiAction.cpp.
|
staticprivate |
Object holding the current MidiActionManager singleton.
It is initialized with NULL, set with create_instance(), and accessed with get_instance().
Definition at line 151 of file MidiAction.h.
|
private |
Holds the names of all Action identifiers which Hydrogen is able to interpret.
Definition at line 157 of file MidiAction.h.
|
private |
Holds all Action identifiers which Hydrogen is able to interpret.
It holds a pair consisting of a pointer to member function performing the desired action and an integer specifying how many additional Action parameters are required to do so.
Definition at line 168 of file MidiAction.h.
|
private |
Definition at line 216 of file MidiAction.h.