2#ifndef WVSTREAMSDEBUGGER_H
3#define WVSTREAMSDEBUGGER_H
8#include "wvstringlist.h"
31 ResultCallback,
void*)> RunCallback;
33 typedef wv::function<void(
WvStringParm,
void*)> CleanupCallback;
37 typedef wv::function<void(
WvStringParm,
void*)> ForeachCallback;
45 CleanupCallback cleanup_cb;
47 Command(InitCallback _init_cb, RunCallback _run_cb,
48 CleanupCallback _cleanup_cb)
52 cleanup_cb = _cleanup_cb;
55 typedef std::map<WvString, Command> CommandMap;
56 static CommandMap *commands;
57 typedef std::map<WvString, void*> CommandDataMap;
58 CommandDataMap command_data;
60 void *get_command_data(
WvStringParm cmd, Command *command);
69 ResultCallback result_cb);
74 CleanupCallback cleanup_cb);
76 static bool foreach(
WvStringParm cmd, ForeachCallback foreach_cb);
82 ResultCallback result_cb,
void *);
A WvFastString acts exactly like a WvString, but can take (const char *) strings without needing to a...
This is a WvList of WvStrings, and is a really handy way to parse strings.
WvString is an implementation of a simple and efficient printable-string class.
Functions to handle "tcl-style" strings and lists.