GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
simulation_map_parameter_validator.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_SIMULATION_MAP_PARAMETER_VALIDATOR_H_
9#define DESIGNLAB_SIMULATION_MAP_PARAMETER_VALIDATOR_H_
10
11#include <string>
12#include <tuple>
13
16
17
18namespace designlab
19{
20
23class SimulationMapParameterValidator final : public ITomlDataValidator<SimulationMapParameter>
24{
25public:
26 std::tuple<bool, std::string> Validate(const SimulationMapParameter& toml_data) const override;
27
28private:
29 const std::string kErrMesPerforatedRange{ "確率は0 ~ 100 %の範囲にする必要があります." };
30 const std::string kErrMesRoughnessMaxMin{ "粗さの最大値は最小値以上にする必要があります." };
31 const std::string kErrMesStripeGtZero{ "ストライプの数は0より大きい必要があります." };
32 const std::string kErrMesStepLengthGtZero{ "階段の奥行は0より大きい必要があります." };
33};
34
35} // namespace designlab
36
37
38#endif // DESIGNLAB_SIMULATION_MAP_PARAMETER_VALIDATOR_H_
TOMLファイルのデータの検証を行う処理のインターフェース.
SimulationMapParameter のバリデータ.
std::tuple< bool, std::string > Validate(const SimulationMapParameter &toml_data) const override
TOMLファイルのデータの検証を行う.
マップ生成時のモードとオプションを指定する構造体.