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.
20
#include <
mochi_core/mochi_platform.h
>
21
#include <
mochi_core/utils/reflection.h
>
22
23
namespace
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
35
enum 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
44
MOCHI_ENUM_BEGIN
(
superdex::VerbosityLevel
)
45
MOCHI_ENUM_ITEM
(Silent)
46
MOCHI_ENUM_ITEM
(Error)
47
MOCHI_ENUM_ITEM
(Warning)
48
MOCHI_ENUM_ITEM
(Verbose)
49
MOCHI_ENUM_COUNT
(Count)
50
MOCHI_ENUM_END
()
superdex::Error
Definition
error.h:65
mochi_platform.h
superdex
Definition
mochi_prefab.h:32
superdex::VerbosityLevel
VerbosityLevel
Verbosity levels for solvers and optimizers.
Definition
verbosity_params.h:35
superdex::VerbosityLevel::Silent
@ Silent
No output.
Definition
verbosity_params.h:36
superdex::LogChannel::Warning
@ Warning
Definition
log.h:37
superdex::LogChannel::Verbose
@ Verbose
Definition
log.h:37
superdex::ActorType::Count
@ Count
Number of actor type enum values.
Definition
mochi_enums.h:38
reflection.h
MOCHI_ENUM_COUNT
#define MOCHI_ENUM_COUNT(name)
Definition
reflection.h:275
MOCHI_ENUM_END
#define MOCHI_ENUM_END()
Definition
reflection.h:276
MOCHI_ENUM_BEGIN
#define MOCHI_ENUM_BEGIN(name)
Definition
reflection.h:273
MOCHI_ENUM_ITEM
#define MOCHI_ENUM_ITEM(name)
Definition
reflection.h:274
mochi
mochi_core
include
mochi_core
utils
verbosity_params.h
Generated by
1.16.1