亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? file.cpp

?? This software aims to create an applet and panel tools to manage a wireless interface card, such as
?? CPP
字號:
//
// File.cpp
//
// $Id: //poco/Main/Foundation/src/File.cpp#5 $
//
// Copyright (c) 2004, Guenter Obiltschnig/Applied Informatics.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions
// are met:
//
// 1. Redistributions of source code must retain the above copyright
//    notice, this list of conditions and the following disclaimer.
//
// 2. Redistributions in binary form must reproduce the above copyright
//    notice, this list of conditions and the following disclaimer in the
//    documentation and/or other materials provided with the distribution.
//
// 3. Redistributions in any form must be accompanied by information on
//    how to obtain complete source code for this software and any
//    accompanying software that uses this software.  The source code
//    must either be included in the distribution or be available for no
//    more than the cost of distribution plus a nominal fee, and must be
//    freely redistributable under reasonable conditions.  For an
//    executable file, complete source code means the source code for all
//    modules it contains.  It does not include source code for modules or
//    files that typically accompany the major components of the operating
//    system on which the executable file runs.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
// FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
// COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT,
// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
// BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
// CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
// LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
// ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
// POSSIBILITY OF SUCH DAMAGE.
//


#include "Foundation/File.h"
#include "Foundation/Path.h"
#include "Foundation/DirectoryIterator.h"


#if defined(POCO_OS_FAMILY_WINDOWS)
#include "File_WIN32.cpp"
#elif defined(POCO_OS_FAMILY_UNIX)
#include "File_UNIX.cpp"
#else
#include "File_VMS.cpp"
#endif


Foundation_BEGIN


File::File()
{
}


File::File(const std::string& path): FileImp(path)
{
}


File::File(const char* path): FileImp(std::string(path))
{
}


File::File(const Path& path): FileImp(path.toString())
{
}


File::File(const File& file): FileImp(file.getPathImp())
{
}


File::~File()
{
}


File& File::operator = (const File& file)
{
	setPathImp(file.getPathImp());
	return *this;
}


File& File::operator = (const std::string& path)
{
	setPathImp(path);
	return *this;
}


File& File::operator = (const char* path)
{
	poco_check_ptr (path);
	setPathImp(path);
	return *this;
}


File& File::operator = (const Path& path)
{
	setPathImp(path.toString());
	return *this;
}


bool File::exists() const
{
	return existsImp();
}

	
bool File::canRead() const
{
	return canReadImp();
}

	
bool File::canWrite() const
{
	return canWriteImp();
}

	
bool File::isFile() const
{
	return isFileImp();
}

	
bool File::isDirectory() const
{
	return isDirectoryImp();
}


Timestamp File::created() const
{
	return createdImp();
}

	
Timestamp File::getLastModified() const
{
	return getLastModifiedImp();
}

	
void File::setLastModified(const Timestamp& ts)
{
	setLastModifiedImp(ts);
}

	
File::FileSize File::getSize() const
{
	return getSizeImp();
}

	
void File::setSize(FileSizeImp size)
{
	setSizeImp(size);
}

	
void File::setWriteable(bool flag)
{
	setWriteableImp(flag);
}


void File::setReadOnly(bool flag)
{
	setWriteableImp(!flag);
}

	
void File::copyTo(const std::string& path) const
{
	Path src(getPathImp());
	File srcFile(src);
	if (srcFile.isDirectory()) 
		throw OpenFileException("cannot copy directory", src.toString());

	Path dest(path);
	if (dest.isDirectory())
	{
		dest.makeDirectory();
		dest.setFileName(src.getFileName());
	}
	copyToImp(dest.toString());
}


void File::moveTo(const std::string& path)
{
	copyToImp(path);
	removeImp();
	setPathImp(path);
}

	
void File::renameTo(const std::string& path)
{
	renameToImp(path);
	setPathImp(path);
}

	
void File::remove(bool recursive)
{
	if (recursive && isDirectory())
	{
		std::vector<File> files;
		list(files);
		for (std::vector<File>::iterator it = files.begin(); it != files.end(); ++it)
		{
			it->remove(true);
		}
	}
	removeImp();
}


bool File::createFile()
{
	return createFileImp();
}


bool File::createDirectory()
{
	return createDirectoryImp();
}


void File::createDirectories()
{
	if (!exists())
	{
		Path p(getPathImp());
		p.makeParent();
		File f(p);
		f.createDirectory();
		createDirectoryImp();
	}
}


void File::list(std::vector<std::string>& files) const
{
	files.clear();
	DirectoryIterator it(*this);
	DirectoryIterator end;
	while (it != end)
	{
		files.push_back(it.name());
		++it;
	}
}


void File::list(std::vector<File>& files) const
{
	files.clear();
	DirectoryIterator it(*this);
	DirectoryIterator end;
	while (it != end)
	{
		files.push_back(*it);
		++it;
	}
}


Foundation_END

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色综合久久中文综合久久牛| 欧美视频你懂的| 色综合久久天天综合网| 在线成人小视频| 亚洲私人黄色宅男| 国产在线不卡一区| 91麻豆精品久久久久蜜臀| **性色生活片久久毛片| 韩国精品在线观看| 欧美久久一区二区| 亚洲欧美日韩在线播放| 国产成人精品免费| 日韩精品一区二| 日韩主播视频在线| 在线观看一区二区精品视频| 中文子幕无线码一区tr| 久久er精品视频| 欧美日本在线播放| 亚洲一区二区三区小说| www.欧美色图| 国产亚洲一区字幕| 国产在线播精品第三| 日韩一区二区在线观看| 亚洲国产毛片aaaaa无费看| 一本色道久久综合亚洲精品按摩| 国产午夜精品久久久久久免费视| 激情文学综合丁香| 精品欧美乱码久久久久久| 秋霞av亚洲一区二区三| 欧美精品v国产精品v日韩精品| 一二三四社区欧美黄| 色婷婷av一区二区三区软件| 中文字幕制服丝袜一区二区三区| 成人综合在线观看| 中文天堂在线一区| aaa亚洲精品一二三区| 中文字幕视频一区| 99精品欧美一区二区三区小说| 国产精品每日更新在线播放网址| 国产91丝袜在线观看| 国产欧美精品国产国产专区| 国产成人在线电影| 亚洲国产精品成人综合色在线婷婷 | 菠萝蜜视频在线观看一区| 久久精品夜色噜噜亚洲a∨| 国产伦精品一区二区三区视频青涩| 欧美xxxx在线观看| 处破女av一区二区| 夜夜嗨av一区二区三区四季av| 欧美偷拍一区二区| 奇米777欧美一区二区| 精品国产91久久久久久久妲己| 国产一区三区三区| 亚洲欧美在线高清| 欧美精品成人一区二区三区四区| 麻豆国产精品视频| 国产精品欧美一区二区三区| 91福利国产成人精品照片| 亚洲不卡在线观看| 久久久影院官网| 91网址在线看| 美女视频黄久久| ●精品国产综合乱码久久久久 | 欧美日韩aaaaaa| 激情综合色播激情啊| 中文字幕一区不卡| 91精品国产综合久久久蜜臀粉嫩| 国产成人在线观看免费网站| 亚洲欧美一区二区三区孕妇| 91精品久久久久久久91蜜桃| 国产黄色成人av| 一区二区三区电影在线播| 欧美成人乱码一区二区三区| 99久久精品费精品国产一区二区| 国产亚洲欧洲一区高清在线观看| 成人18视频日本| 亚洲精品国产a久久久久久| 91精品国产综合久久蜜臀| 高清beeg欧美| 视频一区在线视频| 1区2区3区精品视频| 日韩一区二区免费高清| 不卡视频在线观看| 久久国产尿小便嘘嘘尿| 亚洲欧美一区二区三区久本道91 | 国产女主播在线一区二区| 欧美性色综合网| 成人免费的视频| 久久精品国产亚洲aⅴ| 亚洲综合一区二区精品导航| 中文成人综合网| 日韩欧美国产午夜精品| 精品视频一区三区九区| 91在线视频观看| 粗大黑人巨茎大战欧美成人| 激情另类小说区图片区视频区| 亚洲va韩国va欧美va精品 | 在线影视一区二区三区| 国产成人午夜高潮毛片| 久草热8精品视频在线观看| 亚洲一区av在线| 亚洲美女偷拍久久| 一区二区中文视频| 中文欧美字幕免费| 国产亚洲成年网址在线观看| 日韩欧美美女一区二区三区| 88在线观看91蜜桃国自产| 欧美午夜片在线看| 欧美午夜精品理论片a级按摩| 91天堂素人约啪| 91在线一区二区| 99精品久久只有精品| eeuss鲁一区二区三区| 粉嫩绯色av一区二区在线观看 | 亚洲成人高清在线| 一区二区三区不卡视频在线观看 | 国产亚洲精品aa| 国产日韩欧美高清在线| 久久久久久久综合| 国产三级精品三级| 国产精品久久久久久一区二区三区 | 亚洲另类春色校园小说| 亚洲视频免费在线观看| 亚洲少妇中出一区| 樱桃视频在线观看一区| 亚洲成人综合在线| 青青草成人在线观看| 麻豆91在线播放免费| 国产中文字幕一区| 成人一级黄色片| 色综合天天在线| 欧美男男青年gay1069videost| 欧美精品第1页| 337p日本欧洲亚洲大胆色噜噜| 久久免费看少妇高潮| 国产精品久久久久久久裸模| 亚洲精品中文在线| 美女脱光内衣内裤视频久久影院| 精品亚洲porn| 99久久精品免费| 欧美日韩国产成人在线91| 亚洲精品一区在线观看| 国产精品福利av| 亚洲成人精品一区二区| 国产一区三区三区| 91蝌蚪porny九色| 欧美久久一二三四区| 欧美精品一区二区久久久| 国产精品美女久久久久久久久久久| 一区二区三区成人在线视频| 麻豆视频观看网址久久| 99精品国产一区二区三区不卡| 欧美日韩在线播放一区| 久久久久久久综合| 亚洲福利一区二区| 国产高清在线精品| 在线观看欧美黄色| 久久久精品国产免费观看同学| 亚洲精品乱码久久久久久 | 天堂久久一区二区三区| 九色porny丨国产精品| 一本色道久久加勒比精品| 精品国产乱码久久| 一区二区三区日本| 懂色中文一区二区在线播放| 91麻豆精品国产| 亚洲人123区| 国产成人在线电影| 日韩一区二区中文字幕| 亚洲综合av网| av日韩在线网站| www精品美女久久久tv| 天天操天天综合网| 日本丰满少妇一区二区三区| 久久精品一区二区三区不卡牛牛| 日韩专区欧美专区| 欧美怡红院视频| 亚洲人一二三区| 国产aⅴ综合色| 精品日韩成人av| 日日夜夜免费精品| 欧美无乱码久久久免费午夜一区 | 久久久噜噜噜久久中文字幕色伊伊 | 成人欧美一区二区三区在线播放| 激情五月激情综合网| 欧美一卡2卡3卡4卡| 亚洲一区在线观看视频| av一区二区不卡| 国产精品久久久久四虎| 国产精品影视网| 2023国产一二三区日本精品2022| 天天做天天摸天天爽国产一区| 99re视频这里只有精品| 国产精品久久久久天堂| 高清在线观看日韩| 国产日产欧产精品推荐色| 国产一区二区三区免费看| 精品日韩99亚洲| 精品一区二区三区免费视频| 日韩精品综合一本久道在线视频|