GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
toml_directory_exporter.cpp
[詳解]
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
9
10#include <filesystem>
11
12
13namespace designlab
14{
15
16const char TomlDirectoryExporter::kTomlFileDirPath[] = "./simulation_condition/";
17
18
20{
21 // ディレクトリが存在しない場合は作成.
22 if (!std::filesystem::exists(kTomlFileDirPath))
23 {
24 std::filesystem::create_directory(kTomlFileDirPath);
25 }
26}
27
28} // namespace designlab
static const char kTomlFileDirPath[]
TOMLファイルを入れるディレクトリのパス.
void Export()
TOMLファイルを入れるディレクトリを作成し, TOMLファイル読み込みの準備をする.