GaitGeneration by Graph Search
読み取り中…
検索中…
一致する文字列を見つけられません
クラス | 公開メンバ関数 | 全メンバ一覧
designlab::FileTree クラスfinal

ファイルツリーを作成するクラス. [詳解]

#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.h20 行目に定義があります。

関数詳解

◆ DisplayFileTree()

void designlab::FileTree::DisplayFileTree ( const std::string &  path,
int  max_depth 
) const

ファイルツリーを表示する.

引数
[in]pathファイルツリーを作成するディレクトリのパス.
[in]max_depthファイルツリーの深さ,-1ならば無限に行う.

file_tree.cpp19 行目に定義があります。

◆ SelectFile()

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.cpp27 行目に定義があります。

呼び出し関係図:
被呼び出し関係図:

このクラス詳解は次のファイルから抽出されました: