|
GaitGeneration by Graph Search
|
ファイルツリーを作成するクラス. [詳解]
#include <file_tree.h>
公開メンバ関数 | |
| void | DisplayFileTree (const std::string &path, int max_depth) const |
| ファイルツリーを表示する. | |
| bool | SelectFile (const std::string &path, int max_depth, const std::string &extension, const std::string keyword, std::string *output) const |
| ディレクトリの中から,ファイルを一つ選択する. | |
ファイルツリーを作成するクラス.
file_tree.h の 18 行目に定義があります。
| void designlab::FileTree::DisplayFileTree | ( | const std::string & | path, |
| int | max_depth | ||
| ) | const |
ファイルツリーを表示する.
| [in] | path | ファイルツリーを作成するディレクトリのパス. |
| [in] | max_depth | ファイルツリーの深さ,-1ならば無限に行う. |
file_tree.cpp の 17 行目に定義があります。
| bool designlab::FileTree::SelectFile | ( | const std::string & | path, |
| int | max_depth, | ||
| const std::string & | extension, | ||
| const std::string | keyword, | ||
| std::string * | output | ||
| ) | const |
ディレクトリの中から,ファイルを一つ選択する.
| [in] | path | ファイルツリーを作成するディレクトリのパス. |
| [in] | max_depth | ファイルツリーの深さ,-1ならば無限に行う. |
| [in] | extension | ファイルの拡張子( ".txt" ".csv" など). 空文字ならば全てのファイルを対象とする. |
| [in] | keyword | ファイル名に含まれるキーワード. 空文字ならば全てのファイルを対象とする. |
| [out] | output | 選択されたファイルのパス. |
| true | ファイルが選択された. |
| false | ファイルが選択されなかった. |
file_tree.cpp の 24 行目に定義があります。

