#include <driver.h>
|
void | debug (const std::string &msg) override |
|
void | debug (const std::string &msg, size_t size, const char *data) |
|
Specialized parsing state for use by Driver.
◆ ParsingStateForDriver()
spicy::rt::driver::ParsingStateForDriver::ParsingStateForDriver |
( |
ParsingType |
type, |
|
|
const Parser * |
parser, |
|
|
std::string |
id, |
|
|
std::optional< std::string > |
cid, |
|
|
std::optional< UnitContext > |
context, |
|
|
Driver * |
driver |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
type | of parsing; this determines how subsequent chunks of input data are handled (stream-wise vs independent blocks) |
parser | parser to use; can be left unset to either not perform any parsing at all, or set it later through setParser() . |
id | textual ID to associate with state for use in debug messages |
cid | if the state is associated with one side of a connection, a textual ID representing that connection. |
driver | driver owning this state |
◆ debug()
void driver::ParsingStateForDriver::debug |
( |
const std::string & |
msg | ) |
|
|
overrideprotectedvirtual |
Virtual method to override by derived classed for recording debug output. Note that in a release mode compile the driver code will not actually call this (nor should user code probably).
Implements spicy::rt::driver::ParsingState.
◆ id()
const auto& spicy::rt::driver::ParsingStateForDriver::id |
( |
| ) |
const |
|
inline |
Returns the textual ID associated with the state.
The documentation for this class was generated from the following files:
- /home/docs/checkouts/readthedocs.org/user_builds/spicy-docs/checkouts/v1.7.0/spicy/runtime/include/driver.h
- /home/docs/checkouts/readthedocs.org/user_builds/spicy-docs/checkouts/v1.7.0/spicy/runtime/src/driver.cc