Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::editor::app::RenderSessionRepl Class Reference

Line-oriented command interface for inspecting and controlling a render session. More...

#include "donner/editor/app/EditorRepl.h"

Public Member Functions

 RenderSessionRepl (RenderSession &app, std::istream &in, std::ostream &out, RenderSessionReplOptions options={})
 Connect a rendering session to line-oriented command input and output.
int run ()
 Runs the command loop until EOF or a quit/exit command. Returns the number of commands successfully dispatched.
bool dispatch (const std::string &line)
 Dispatches a single pre-tokenized command line. Exposed for tests that want to skip the input stream entirely.

Detailed Description

Line-oriented command interface for inspecting and controlling a render session.

Constructor & Destructor Documentation

◆ RenderSessionRepl()

donner::editor::app::RenderSessionRepl::RenderSessionRepl ( RenderSession & app,
std::istream & in,
std::ostream & out,
RenderSessionReplOptions options = {} )

Connect a rendering session to line-oriented command input and output.

Parameters
appSession to control; it must outlive the REPL.
inBorrowed command input stream; it must outlive the REPL.
outBorrowed response output stream; it must outlive the REPL.
optionsREPL behavior and output options.

The documentation for this class was generated from the following file: