13#include <peak/dll_interface/peak_dll_interface_util.hpp>
92 friend ClassCreator<CommandNode>;
115 , m_backendHandle(commandNodeHandle)
120 return QueryNumericFromCInterfaceFunction<PEAK_BOOL8>([&](
PEAK_BOOL8* isDone) {
131 CallAndCheckCInterfaceFunction(
Represents a timeout value in milliseconds.
Definition peak_timeout.hpp:28
CommandNode & operator=(CommandNode &&other)=delete
std::false_type NodeHasRange
Definition peak_command_node.hpp:35
void ExecuteAndWait(Timeout waitTimeout_ms=500)
Executes the command associated with this node and waits for the executed command to be finished,...
Definition peak_command_node.hpp:135
static constexpr auto NodeType
Definition peak_command_node.hpp:33
void NodeDataType
Definition peak_command_node.hpp:34
void WaitUntilDone(Timeout waitTimeout_ms=500)
(Blocking) Wait for the executed command to be finished, i.e. until IsDone() is true.
Definition peak_command_node.hpp:129
CommandNode(const CommandNode &other)=delete
CommandNode(CommandNode &&other)=delete
~CommandNode() override=default
PEAK_COMMON_NO_DISCARD bool IsDone() const
Checks whether the command is done.
Definition peak_command_node.hpp:118
void Execute()
Executes the command associated with this node.
Definition peak_command_node.hpp:124
CommandNode & operator=(const CommandNode &other)=delete
@ Command
Definition peak_node.hpp:91
The "nodes" namespace contains all GenAPI node types.
Definition peak_utils.hpp:31
The "core" namespace contains the direct GenAPI and GenTL wrapper.
Definition peak_buffer.hpp:32
The "peak" namespace directly contains convenience functionality like the DeviceManager as well as th...
Definition peak_buffer.hpp:29
PEAK_C_API PEAK_CommandNode_ToNode(PEAK_COMMAND_NODE_HANDLE commandNodeHandle, PEAK_NODE_HANDLE *nodeHandle)
Casts the given command node to a node.
struct PEAK_COMMAND_NODE * PEAK_COMMAND_NODE_HANDLE
Definition peak_backend.h:439
struct PEAK_NODE * PEAK_NODE_HANDLE
Definition peak_backend.h:427
PEAK_C_API PEAK_CommandNode_Execute(PEAK_COMMAND_NODE_HANDLE commandNodeHandle)
Tells the given command node to execute its associated command.
int8_t PEAK_BOOL8
Definition peak_backend.h:41
PEAK_C_API PEAK_CommandNode_WaitUntilDone(PEAK_COMMAND_NODE_HANDLE commandNodeHandle, uint64_t waitTimeout_ms)
Waits (blocking) until the previously executed command is finished, i.e. PEAK_CommandNode_GetIsDone()...
PEAK_C_API PEAK_CommandNode_GetIsDone(PEAK_COMMAND_NODE_HANDLE commandNodeHandle, PEAK_BOOL8 *isDone)
Asks the given command node whether its associated command is done.
#define PEAK_COMMON_NO_DISCARD
Definition peak_common_defines.h:89
#define PEAK_C_ABI_PREFIX
Definition peak_dll_defines.h:13