Motion Master 6.0.0-alpha.111
Next-generation motion control software
Loading...
Searching...
No Matches
capture_runner.h File Reference

Runs the capture program for the POST /api/captures route. More...

#include <expected>
#include <filesystem>
#include <string>
Include dependency graph for capture_runner.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mm
 

Functions

std::filesystem::path mm::captureBinaryName ()
 The file name of the capture program beside the server binary, with the platform's executable suffix.
 
std::expected< std::filesystem::path, std::string > mm::runCapture (const std::filesystem::path &binary, const std::string &adapter, int seconds, const std::filesystem::path &dir)
 Runs binary to record adapter for seconds into a new file under dir, and waits for it to exit.
 

Detailed Description

Runs the capture program for the POST /api/captures route.