#include <motion_scrubber.hpp>
|
| static bool | owns_method (const std::string &method) |
| | True when at least one of the scrubber methods is the natural target for req.method.
|
◆ MotionScrubber() [1/2]
Construct with an optional event delivery callback.
When present, re-emitted events use the same Motion.start / .sample / .end wire shape as MotionInspector. Events always flow to sinks installed via add_sink.
◆ ~MotionScrubber()
| pulp::inspect::MotionScrubber::~MotionScrubber |
( |
| ) |
|
◆ MotionScrubber() [2/2]
| pulp::inspect::MotionScrubber::MotionScrubber |
( |
const MotionScrubber & | | ) |
|
|
delete |
◆ add_sink()
Install a sink that receives re-emitted events.
Returns a non-zero id usable with remove_sink.
◆ event_count()
| std::size_t pulp::inspect::MotionScrubber::event_count |
( |
| ) |
const |
◆ handle()
Handle a Motion.
- scrubber request. Returns response message. Caller (DomainHandler) decides routing — this method assumes the request is one of the scrubber methods.
◆ header()
◆ load_fixture()
| bool pulp::inspect::MotionScrubber::load_fixture |
( |
const std::string & | path | ) |
|
Load a fixture file.
Returns true on success (any event count is acceptable; an empty fixture is loaded as zero events). Resets the playhead to 0 and clears the previously-loaded events.
◆ loaded()
| bool pulp::inspect::MotionScrubber::loaded |
( |
| ) |
const |
◆ max_frame()
| std::uint64_t pulp::inspect::MotionScrubber::max_frame |
( |
| ) |
const |
◆ operator=()
◆ owns_method()
| bool pulp::inspect::MotionScrubber::owns_method |
( |
const std::string & | method | ) |
|
|
static |
◆ pause()
| void pulp::inspect::MotionScrubber::pause |
( |
| ) |
|
Clear the playing flag. No event emission. Playhead unchanged.
◆ play()
| std::size_t pulp::inspect::MotionScrubber::play |
( |
| ) |
|
Set playing flag, advance to the last loaded frame, emit everything.
Passive: no real-time pacing.
◆ play_bounded()
| std::size_t pulp::inspect::MotionScrubber::play_bounded |
( |
std::size_t | maximum_events, |
|
|
bool & | truncated, |
|
|
std::function< bool()> | continue_emission = {}, |
|
|
bool * | interrupted = nullptr ) |
◆ playhead_frame()
| std::uint64_t pulp::inspect::MotionScrubber::playhead_frame |
( |
| ) |
const |
◆ playing()
| bool pulp::inspect::MotionScrubber::playing |
( |
| ) |
const |
◆ remove_sink()
| void pulp::inspect::MotionScrubber::remove_sink |
( |
int | id | ) |
|
◆ scrub_to()
| std::size_t pulp::inspect::MotionScrubber::scrub_to |
( |
std::uint64_t | frame | ) |
|
Move the playhead to the given frame and re-emit the prefix of events with frame <= playhead.
Returns the number of events emitted (zero for an unloaded scrubber). Backwards scrubs are supported — each call re-emits from the start.
◆ scrub_to_bounded()
| std::size_t pulp::inspect::MotionScrubber::scrub_to_bounded |
( |
std::uint64_t | frame, |
|
|
std::size_t | maximum_events, |
|
|
bool & | truncated, |
|
|
std::function< bool()> | continue_emission = {}, |
|
|
bool * | interrupted = nullptr ) |
Canonical control variant: emits at most maximum_events from the selected prefix and reports whether more matching events existed.
The documentation for this class was generated from the following file: