|
LMMS
|
#include <ports.h>
Protected Types | |
| enum | proceed { abort = -2 , discard = -1 } |
| enum | dependency_t { no_dependencies , has_dependencies , not_specified } |
Protected Member Functions | |
| void | operator() (const char *msg) |
| call this to dispatch a message | |
Static Protected Member Functions | |
| static int | default_response (size_t nargs, bool first_round, dependency_t dependency) |
Protected Attributes | |
| rtosc_version | rtosc_filever |
| rtosc versinon savefile was written with | |
| rtosc_version | rtosc_curver |
| rtosc version of this library | |
| rtosc_version | app_filever |
| app version savefile was written with | |
| rtosc_version | app_curver |
| current app version | |
Private Member Functions | |
| virtual int | on_dispatch (size_t portname_max, char *portname, size_t maxargs, size_t nargs, rtosc_arg_val_t *args, bool round2, dependency_t dependency) |
Private Attributes | |
| const Ports * | ports |
| void * | runtime |
| char | loc [1024] |
Friends | |
| int | dispatch_printed_messages (const char *messages, const Ports &ports, void *runtime, savefile_dispatcher_t *dispatcher=NULL) |
| int | load_from_file (const char *file_content, const Ports &ports, void *runtime, const char *appname, rtosc_version appver, savefile_dispatcher_t *dispatcher=NULL) |
Class to modify messages loaded from savefiles. Objects of this class shall be passed to savefile loading routines. You can inherit to change the behaviour, e.g. to modify or discard such messages.
|
protected |
|
protected |
|
staticprotected |
|
privatevirtual |
callback for when a message shall be dispatched implement this if you need to change a message
call this to dispatch a message
|
friend |
Scan OSC messages from human readable format and dispatch them.
| messages | The OSC messages, whitespace-separated |
| ports | The static ports structure |
| runtime | The runtime object |
| dispatcher | Object to modify messages prior to dispatching, or NULL. You can overwrite its virtual functions, and you should specify any of the version structs if needed. All other members shall not be initialized. |
|
friend |
Read save file and dispatch contained parameters.
| file_content | The file as a C string |
| ports | The static ports structure |
| runtime | The runtime object |
| appname | Name of the application calling this function; must match the file's application name |
| appver | Version of the application calling this function |
| dispatcher | Modifier for the messages; NULL if no modifiers are needed |
|
protected |
current app version
|
protected |
app version savefile was written with
|
private |
|
protected |
rtosc version of this library
|
protected |
rtosc versinon savefile was written with
|
private |