SuperDex Physics C++ API
Loading...
Searching...
No Matches
verbosity_params.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#pragma once
18
19// PLEASE DO NOT ADD OTHER INCLUDES HERE. This header is included in the mochi_physics public API.
22
23namespace superdex {
24// clang-format off
25/**
26 * @brief Verbosity levels for solvers and optimizers. Controls the amount of logging output during
27 * solver execution.
28 *
29 * @note VerbosityLevel relates to the global @ref LogChannel system through the following pattern:
30 * if (params.verbosity >= VerbosityLevel::Error) { MOCHI_LOG_ERROR(...); } // Logs to @ref LogChannel::Error
31 * if (params.verbosity >= VerbosityLevel::Warning) { MOCHI_LOG_WARNING(...); } // Logs to @ref LogChannel::Warning
32 * if (params.verbosity >= VerbosityLevel::Verbose) { MOCHI_LOG(...); } // Logs to @ref LogChannel::Info (NOT to @ref LogChannel::Verbose)
33 */
34// clang-format on
35enum struct VerbosityLevel {
36 Silent = 0, ///< No output.
37 Error = 1, ///< Only errors.
38 Warning = 2, ///< Errors and warnings.
39 Verbose = 3, ///< Detailed output including iteration info.
40 Count = 4 ///< Number of verbosity level enum values.
41};
42} // namespace superdex
43
45MOCHI_ENUM_ITEM(Silent)
46MOCHI_ENUM_ITEM(Error)
47MOCHI_ENUM_ITEM(Warning)
48MOCHI_ENUM_ITEM(Verbose)
VerbosityLevel
Verbosity levels for solvers and optimizers.
@ Count
Number of actor type enum values.
Definition mochi_enums.h:38
#define MOCHI_ENUM_COUNT(name)
Definition reflection.h:275
#define MOCHI_ENUM_END()
Definition reflection.h:276
#define MOCHI_ENUM_BEGIN(name)
Definition reflection.h:273
#define MOCHI_ENUM_ITEM(name)
Definition reflection.h:274