2 * Copyright (c) 2023 Philippe Proulx <pproulx@efficios.com>
4 * SPDX-License-Identifier: MIT
7 #ifndef BABELTRACE_CPP_COMMON_BT2_PRIVATE_QUERY_EXECUTOR_HPP
8 #define BABELTRACE_CPP_COMMON_BT2_PRIVATE_QUERY_EXECUTOR_HPP
10 #include <babeltrace2/babeltrace.h>
12 #include "logging.hpp"
14 #include "borrowed-object.hpp"
18 class PrivateQueryExecutor final : public BorrowedObject<bt_private_query_executor>
21 explicit PrivateQueryExecutor(const _LibObjPtr libObjPtr) noexcept :
22 _ThisBorrowedObject {libObjPtr}
26 bt2::LoggingLevel loggingLevel() const noexcept
28 return static_cast<bt2::LoggingLevel>(bt_query_executor_get_logging_level(
29 bt_private_query_executor_as_query_executor_const(this->libObjPtr())));
32 bool isInterrupted() const noexcept
34 return static_cast<bool>(bt_query_executor_is_interrupted(
35 bt_private_query_executor_as_query_executor_const(this->libObjPtr())));
41 #endif /* BABELTRACE_CPP_COMMON_BT2_PRIVATE_QUERY_EXECUTOR_HPP */