GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
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"
16
17
18namespace designlab
19{
20
24template <typename T>
26{
27public:
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_
static void InfoOutput(const std::string &str)
コマンドラインに文字を出力する関数.Info用の出力.
Definition cmdio_util.h:84
TOMLファイルのデータの検証を行う処理のインターフェース.
常に trueを返す ITomlDataValidator の実装クラス.
std::tuple< bool, std::string > Validate(const T &toml_data) const override
TOMLファイルのデータの検証を行う.