Real Time Open Sound Control librtosc
|
Class to modify and dispatch messages loaded from savefiles. More...
#include <savefile.h>
Protected Types | |
enum | proceed { abort = -2, discard = -1 } |
enum | dependency_t { no_dependencies, has_dependencies, not_specified } |
Protected Member Functions | |
bool | 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 | |
Friends | |
int | dispatch_printed_messages (const char *messages, const struct Ports &ports, void *runtime, savefile_dispatcher_t *dispatcher) |
Scan OSC messages from human readable format and dispatch them. More... | |
int | load_from_file (const char *file_content, const struct Ports &ports, void *runtime, const char *appname, rtosc_version appver, savefile_dispatcher_t *dispatcher) |
Read save file and dispatch contained parameters. More... | |
Class to modify and dispatch 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 |
|
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 |