Class jac::Device
template <class Machine class Machine>
Inherits the following classes: jac::MachineCtrl
Public Functions
Type | Name |
---|---|
Device (std::filesystem::path rootDir, std::function< std::string()> getMemoryStats, std::function< std::string()> getStorageStats, std::vector< std::pair< std::string, std::string >> versionInfo, std::function< void(std::filesystem::path)> formatFS) |
|
Device (const Device &) = delete |
|
Device (Device &&) = delete |
|
virtual std::tuple< bool, int, std::string > | getMachineStatus () override |
TimeoutLock & | lock () |
MachineIO & | machineIO () |
void | onConfigureMachine (std::function< void(Machine &)> f) |
Device & | operator= (const Device &) = delete |
Device & | operator= (Device &&) = delete |
Router & | router () |
void | start () |
virtual bool | startMachine (std::string path) override |
virtual bool | stopMachine () override |
~Device () |
Public Functions inherited from jac::MachineCtrl
See jac::MachineCtrl
Type | Name |
---|---|
virtual std::tuple< bool, int, std::string > | getMachineStatus () = 0 |
virtual bool | startMachine (std::string path) = 0 |
virtual bool | stopMachine () = 0 |
Public Functions Documentation
function Device [1/3]
inline jac::Device::Device (
std::filesystem::path rootDir,
std::function< std::string()> getMemoryStats,
std::function< std::string()> getStorageStats,
std::vector< std::pair< std::string, std::string >> versionInfo,
std::function< void(std::filesystem::path)> formatFS
)
function Device [2/3]
function Device [3/3]
function getMachineStatus
Implements jac::MachineCtrl::getMachineStatus
function lock
function machineIO
function onConfigureMachine
function operator=
function operator=
function router
function start
function startMachine
Implements jac::MachineCtrl::startMachine
function stopMachine
Implements jac::MachineCtrl::stopMachine
function ~Device
The documentation for this class was generated from the following file src/jac/device/device.h