Browse Subversion Repository
Contents of /common/FindFiles.h
Parent Directory
| Revision Log
Revision 328 -
( show annotations)
( download)
( as text)
Tue Apr 1 21:18:59 2008 UTC
(16 years, 2 months ago)
by satofumi
File MIME type: text/x-chdr
File size: 680 byte(s)
change play method.
| 1 |
#ifndef FIND_FILES_H |
| 2 |
#define FIND_FILES_H |
| 3 |
|
| 4 |
/*! |
| 5 |
\file |
| 6 |
\brief ファイル探索 |
| 7 |
|
| 8 |
\author Satofumi KAMIMURA |
| 9 |
|
| 10 |
$Id$ |
| 11 |
*/ |
| 12 |
|
| 13 |
#include <boost/xpressive/xpressive.hpp> |
| 14 |
#include <string> |
| 15 |
#include <vector> |
| 16 |
|
| 17 |
|
| 18 |
namespace beego { |
| 19 |
|
| 20 |
/*! |
| 21 |
\brief ファイル探索を行う |
| 22 |
|
| 23 |
\param files [o] マッチしたファイルの追加先 |
| 24 |
\param findRootPath [i] 探索を開始するディレクトリ |
| 25 |
\param filePattern [i] 探索するファイルの正規表現 |
| 26 |
\param recursive [i] 再帰的に探索するか |
| 27 |
|
| 28 |
\return マッチしたファイル数 |
| 29 |
*/ |
| 30 |
size_t findFiles(std::vector<std::string>& files, const char* findRootPath, |
| 31 |
boost::xpressive::sregex pattern, bool recursive = false); |
| 32 |
}; |
| 33 |
|
| 34 |
#endif /* !FIND_FILES_H */ |
|