Skip to content

HdControllerAPI ​

cpp
#include <VAmiga.h>
cpp
class HdControllerAPI

Defined in VAmiga.h:1307

API of a hard drive controller.

Public Methods ​

ReturnNameDescription
const HdcInfo &getInfo constProvides details about the controller.
const HdcInfo &getCachedInfo constReturns the most recent state snapshot recorded by the emulator thread (see getInfo()).
const HdcMetrics &getMetrics constReturns statistical information about the components.
const HdcMetrics &getCachedMetrics constReturns the most recent metrics snapshot recorded by the emulator thread (see getMetrics()).

getInfo ​

const

cpp
const HdcInfo & getInfo() const

Defined in VAmiga.h:1328

Provides details about the controller.

Returns the component's current state.

getInfo() reads the live state on the calling thread. The result is only consistent if the emulator is paused or suspended. getCachedInfo() returns the snapshot the emulator thread has recorded most recently, which is the one to use while the emulator runs. Both return references that can be overwritten by a later call or by the emulator thread, so copy the data if you need to keep it.


getCachedInfo ​

const

cpp
const HdcInfo & getCachedInfo() const

Defined in VAmiga.h:1330

Returns the most recent state snapshot recorded by the emulator thread (see getInfo()).


getMetrics ​

const

cpp
const HdcMetrics & getMetrics() const

Defined in VAmiga.h:1341

Returns statistical information about the components.

getMetrics() reads the live state on the calling thread. The result is only consistent if the emulator is paused or suspended. getCachedMetrics() returns the snapshot the emulator thread has recorded most recently, which is the one to use while the emulator runs. Both return references that can be overwritten by a later call or by the emulator thread, so copy the data if you need to keep it.


getCachedMetrics ​

const

cpp
const HdcMetrics & getCachedMetrics() const

Defined in VAmiga.h:1343

Returns the most recent metrics snapshot recorded by the emulator thread (see getMetrics()).