GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
DesignLab
toml_data_validator_always_true.h
[詳解]
1
3
4
// Copyright(c) 2023-2025 Design Engineering Laboratory, Saitama University
5
// Released under the MIT license
6
// https://opensource.org/licenses/mit-license.php
7
8
#ifndef DESIGNLAB_TOML_DATA_VALIDATOR_ALWAYS_TRUE_H_
9
#define DESIGNLAB_TOML_DATA_VALIDATOR_ALWAYS_TRUE_H_
10
11
#include <string>
12
#include <tuple>
13
14
#include "
cmdio_util.h
"
15
#include "
interface_toml_data_validator.h
"
16
17
18
namespace
designlab
19
{
20
24
template
<
typename
T>
25
class
TomlDataValidatorAlwaysTrue
final :
public
ITomlDataValidator
<T>
26
{
27
public
:
28
std::tuple<bool, std::string>
Validate
([[maybe_unused]]
const
T& toml_data)
const override
29
{
30
CmdIOUtil::InfoOutput
(
"(No validation is performed in the current configuration.)"
);
31
return
{
true
,
""
};
32
}
33
};
34
35
}
// namespace designlab
36
37
38
#endif
// DESIGNLAB_TOML_DATA_VALIDATOR_ALWAYS_TRUE_H_
designlab::CmdIOUtil::InfoOutput
static void InfoOutput(const std::string &str)
コマンドラインに文字を出力する関数.Info用の出力.
Definition
cmdio_util.h:84
designlab::ITomlDataValidator
TOMLファイルのデータの検証を行う処理のインターフェース.
Definition
interface_toml_data_validator.h:22
designlab::TomlDataValidatorAlwaysTrue
常に trueを返す ITomlDataValidator の実装クラス.
Definition
toml_data_validator_always_true.h:26
designlab::TomlDataValidatorAlwaysTrue::Validate
std::tuple< bool, std::string > Validate(const T &toml_data) const override
TOMLファイルのデータの検証を行う.
Definition
toml_data_validator_always_true.h:28
cmdio_util.h
interface_toml_data_validator.h
designlab
Definition
abstract_dxlib_gui.cpp:18
構築:
1.9.8