锘??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲爆乳少妇无,国产69精品久久久久APP下载,色欲综合久久躁天天躁http://www.shnenglu.com/bujiwu/category/12374.htmlzh-cnThu, 03 Dec 2009 13:28:17 GMTThu, 03 Dec 2009 13:28:17 GMT60boost::filestream緇勪歡灝佽http://www.shnenglu.com/bujiwu/archive/2009/11/23/101692.htmlbujiwubujiwuMon, 23 Nov 2009 05:44:00 GMThttp://www.shnenglu.com/bujiwu/archive/2009/11/23/101692.htmlhttp://www.shnenglu.com/bujiwu/comments/101692.htmlhttp://www.shnenglu.com/bujiwu/archive/2009/11/23/101692.html#Feedback0http://www.shnenglu.com/bujiwu/comments/commentRss/101692.htmlhttp://www.shnenglu.com/bujiwu/services/trackbacks/101692.html
/*
 * @file FileSystem.h
 * @brief Operation file or diretory
 * @author Jiwu Bu
 * @version 1.0.0
 * @date 2009-11-23
 
*/
#ifndef FILESYSTEM_H_H
#define FILESYSTEM_H_H

#include 
<iostream>
#include 
<vector>

using namespace std;

class CFileSystem
{
public:
    
/*
     * @brief Gets an array of dirctories from current direcoty,
     *        using Recur value to determine whether to search 
     *        subdirectories.
     * @param SubDirVec Ouput parameter, return the search result
     * @param DirPath
     * @param Recur  Whether search subdirectories.
     * 
     * @return 
     
*/
    
static bool GetDirectories(vector<string>& SubDirVec, 
        
const string& DirPath, bool Recur = false);

    
/*
     * @brief Get the names of files in the specified directory that 
     *        match the specified extensive name, using a value to 
     *        determine whether to search subdirectories.
     * 
     * @param FileVec Ouput parameter, return the search result
     * @param DirPath
     * @param ExeName Extensive name, if ExeName equal  "*.*"  search all file
     * @param Recur   Whether search subdirectories
     * 
     * @return 
     
*/
    
static bool GetFiles(vector<string>& FileVec, const string& DirPath, 
        
const string& ExeName, bool Recur = false);

    
/*
     * @brief Create a new directory.
     * 
     * @param Dir  New directory path. Example:/home/bujiwu/test
     * 
     * @return  true, if success
     *          false, if failed
     
*/
    
static bool CreateDirectory(const string & Dir);

    
/*
     * @brief Judge whether this file or diretory exists.
     * 
     * @param Path
     * 
     * @return  true, if exists
     *          false, if not exists
     
*/
    
static bool Exists(const string& Path);

    
/*
     * @brief Delete this file or directory
     * 
     * @param Path
     
*/
    
static void Delete(const string& Path);

    
/*
     * @brief Move file or directory from FromPath to ToPath.
     * 
     * @param FromPath
     * @param ToPath
     
*/
    
static void Move(const string& FromPath, const string& ToPath);

    
/*
     * @brief Copy file or directory from FromPath to ToPath.
     * 
     * @param FromPath
     * @param ToPath
     
*/
    
static void Copy(const string& FromPath, const string& ToPath);

    
/*
     * @brief Get file size
     * 
     * @param FilePath
     * 
     * @return 
     
*/
    
static unsigned long GetFileSize(const string& FilePath);
};

#endif

嫻嬭瘯鐢ㄤ緥錛?br>
#include "../FileSystem/FileSystem.h"
#include 
<algorithm>
#include 
<iterator>
#include 
<string>

using namespace std;

int main(int argc, char* argv[])
{
    vector
<string> MyVec;

    
string Path = "/home/bujiwu/EncapDirectory";
    
    CFileSystem::Copy(
"/home/bujiwu/epoll", Path);

    CFileSystem::GetFiles(MyVec, Path, 
"*.*"true);

    copy(MyVec.begin(), MyVec.end(), ostream_iterator
<string>(cout , "\n") );

    
return 0;
}

http://www.shnenglu.com/Files/bujiwu/FileSystem.rar



bujiwu 2009-11-23 13:44 鍙戣〃璇勮
]]>
鍦↙inux涓嶹inodws涓嬬紪璇慴oosthttp://www.shnenglu.com/bujiwu/archive/2009/11/23/101689.htmlbujiwubujiwuMon, 23 Nov 2009 05:31:00 GMThttp://www.shnenglu.com/bujiwu/archive/2009/11/23/101689.htmlhttp://www.shnenglu.com/bujiwu/comments/101689.htmlhttp://www.shnenglu.com/bujiwu/archive/2009/11/23/101689.html#Feedback0http://www.shnenglu.com/bujiwu/comments/commentRss/101689.htmlhttp://www.shnenglu.com/bujiwu/services/trackbacks/101689.htmldate_time
filesystem
function_types
graph
iostreams
math
mpi
program_options
python
regex
serialization
signals
system
test
thread
wave


Windows:
1銆佸紑濮嬭彍鍗?-Microsoft Visual Studio 2008--Visual Studio Tools---Open Visual Studio 2008 Command Prompt 鎵撳紑鍛戒護琛岀獥鍙?br>3銆佸埄鐢╟d鍛戒護榪涘叆鍒幫細boost->toos->jam->src鐩綍
4銆佺紪璇戯紝vc 2008杈撳叆鍛戒護錛歜uild vc9
5銆佹妸鐢熸垚鐨刡jam.exe(bin.ntx86鐩綍涓?鎷瘋礉鍒癇oost鏍圭洰褰曚笅錛岃緭鍏ュ懡浠わ細
6銆乥jam --with-regex

Linux:
 $cd path/to/boost_1_40_0
 $ ./bootstrap.sh
 浜х敓bjam鏂囦歡
 
 $ ./bjam install  瀹夎鎵鏈?br> $./bjam --with-regex  瀹夎鐗瑰畾鐨勫簱
 $./bjam --with-filesystem

 #./bjam --with-filesystem "-sTOOLS=gcc" "--includedir=/usr/include" "--libdir=/usr/lib/boost" install



bujiwu 2009-11-23 13:31 鍙戣〃璇勮
]]>
久久99这里只有精品国产| 青青国产成人久久91网| 日日狠狠久久偷偷色综合96蜜桃 | 久久国产精品免费| 久久最新免费视频| 久久九九精品99国产精品| 久久精品国产影库免费看| 久久久国产精华液| 国产福利电影一区二区三区久久久久成人精品综合 | 精品久久久无码人妻中文字幕| 亚洲欧洲久久av| 久久青青草原精品国产| 亚洲国产精品久久久久婷婷软件 | 欧美一级久久久久久久大片| 亚洲av伊人久久综合密臀性色 | 四虎国产精品免费久久久| 青青草国产97免久久费观看| 日韩人妻无码一区二区三区久久 | 一本色道久久88综合日韩精品 | A狠狠久久蜜臀婷色中文网| 国产精品乱码久久久久久软件 | 模特私拍国产精品久久| 国产成人无码精品久久久免费 | 狠狠色综合网站久久久久久久高清| 国产精品99精品久久免费| 精品人妻伦九区久久AAA片69| 精品久久久久久无码人妻蜜桃| 精品久久人妻av中文字幕| 亚洲国产另类久久久精品小说| 久久久久久亚洲精品不卡 | 热久久这里只有精品| 久久精品国产亚洲AV电影| 蜜桃麻豆WWW久久囤产精品| 亚洲国产成人精品91久久久 | 久久久精品人妻无码专区不卡 | 国内高清久久久久久| 亚洲欧美日韩久久精品| 婷婷久久综合九色综合九七| 精品熟女少妇aⅴ免费久久| 国内精品久久久久久麻豆| 久久国产精品免费|