|
hydrogen 1.2.6
|
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 | logBacktrace () const |
| Print the current stack at point into the debug log. | |
| 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 |
| static bool | bLogColors = true |
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 140 of file MidiAction.cpp.
| ~MidiActionManager | ( | ) |
Definition at line 211 of file MidiAction.cpp.
|
private |
Definition at line 363 of file MidiAction.cpp.
|
private |
Definition at line 957 of file MidiAction.cpp.
|
private |
Definition at line 1080 of file MidiAction.cpp.
|
private |
Definition at line 1009 of file MidiAction.cpp.
|
private |
Definition at line 1055 of file MidiAction.cpp.
|
private |
Definition at line 1285 of file MidiAction.cpp.
|
private |
Definition at line 1268 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 216 of file MidiAction.cpp.
|
private |
Definition at line 510 of file MidiAction.cpp.
|
private |
Definition at line 545 of file MidiAction.cpp.
|
private |
Definition at line 918 of file MidiAction.cpp.
|
private |
Definition at line 805 of file MidiAction.cpp.
|
inlinestatic |
Returns a pointer to the current MidiActionManager singleton stored in __instance.
Definition at line 255 of file MidiAction.h.
|
inline |
Definition at line 257 of file MidiAction.h.
| int getParameterNumber | ( | const QString & | sActionType | ) | const |
Definition at line 1257 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 1325 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 1310 of file MidiAction.cpp.
|
private |
Definition at line 901 of file MidiAction.cpp.
|
private |
Definition at line 583 of file MidiAction.cpp.
|
private |
Definition at line 605 of file MidiAction.cpp.
|
private |
Definition at line 287 of file MidiAction.cpp.
|
private |
Definition at line 307 of file MidiAction.cpp.
|
private |
Definition at line 1105 of file MidiAction.cpp.
|
private |
Definition at line 401 of file MidiAction.cpp.
|
private |
Definition at line 438 of file MidiAction.cpp.
|
private |
Definition at line 706 of file MidiAction.cpp.
|
private |
Definition at line 737 of file MidiAction.cpp.
|
private |
Definition at line 769 of file MidiAction.cpp.
|
private |
Definition at line 235 of file MidiAction.cpp.
|
private |
Definition at line 852 of file MidiAction.cpp.
|
private |
Definition at line 222 of file MidiAction.cpp.
|
private |
Definition at line 257 of file MidiAction.cpp.
|
private |
Definition at line 1162 of file MidiAction.cpp.
|
private |
Definition at line 1167 of file MidiAction.cpp.
|
private |
Definition at line 1156 of file MidiAction.cpp.
|
private |
Definition at line 1120 of file MidiAction.cpp.
|
private |
Definition at line 1219 of file MidiAction.cpp.
|
private |
Definition at line 1172 of file MidiAction.cpp.
|
private |
Definition at line 1206 of file MidiAction.cpp.
|
private |
Definition at line 1190 of file MidiAction.cpp.
|
private |
Definition at line 1252 of file MidiAction.cpp.
|
private |
Definition at line 470 of file MidiAction.cpp.
|
private |
Definition at line 488 of file MidiAction.cpp.
|
private |
Definition at line 384 of file MidiAction.cpp.
|
private |
Definition at line 396 of file MidiAction.cpp.
|
private |
Definition at line 390 of file MidiAction.cpp.
|
private |
Definition at line 428 of file MidiAction.cpp.
|
private |
Definition at line 433 of file MidiAction.cpp.
|
private |
Definition at line 1132 of file MidiAction.cpp.
|
private |
Definition at line 246 of file MidiAction.cpp.
|
private |
Definition at line 317 of file MidiAction.cpp.
|
private |
Definition at line 340 of file MidiAction.cpp.
|
private |
Definition at line 631 of file MidiAction.cpp.
|
private |
Definition at line 665 of file MidiAction.cpp.
|
private |
Definition at line 373 of file MidiAction.cpp.
|
private |
Definition at line 1232 of file MidiAction.cpp.
|
private |
Definition at line 1247 of file MidiAction.cpp.
|
private |
Definition at line 297 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 219 of file MidiAction.h.