#include <machine.h>
This class declares functions to access and manage machines. There is no difference when accessing the machines using the available rpc interfaces where the machine runs (local, remote, webbrowser).
公共成员函数 |
|
MAXON_OBSERVABLE_STATIC (void, ObservableMachineStateChanged,(const MachineRef &machine, MACHINESTATE oldState, MACHINESTATE newState), ObservableCombinerRunAllComponent) |
静态公共成员函数 |
|
static MAXON_METHOD MachineRef | GetLocal () |
static MAXON_METHOD Result < void > | GetRPCMachines ( WritableArrayInterface < MachineRef > &machines) |
static MAXON_METHOD Result < MachineRef > | FindRPCMachine (const String &machineUuid) |
static MAXON_METHOD Result < MachineRef > | FindOrAddRPCMachine (const String &machineUuid, MACHINESTATE state, const CreateNewMachineCallback &newMachineCallback, const CheckExistingMachineCallback &existingCallback) |
static MAXON_METHOD Result < void > | RemoveRPCMachine (const MachineRef &machine) |
私有成员函数 |
|
MAXON_INTERFACE_NONVIRTUAL ( MachinesInterface , MAXON_REFERENCE_NONE , "net.maxon.interface.machines") |
|
private |
|
static |
Returns the local machine. It can be used like every other machine in the network. The difference is that the functions for this machine are called directly not using rpc.
|
static |
Returns a list of all available machines in the application. The local machine is always the first entry in this list. it's guaranteed that at least one machine (the local) is returned in the array.
[out] | machines | Returns the list of machines. |
|
static |
|
static |
|
static |
MAXON_OBSERVABLE_STATIC | ( | void | , |
ObservableMachineStateChanged | , | ||
(const MachineRef &machine, MACHINESTATE oldState, MACHINESTATE newState) | , | ||
ObservableCombinerRunAllComponent | |||
) |
Signals that a machine state has been changed.