diff options
author | Devtools Arcadia <arcadia-devtools@yandex-team.ru> | 2022-02-07 18:08:42 +0300 |
---|---|---|
committer | Devtools Arcadia <arcadia-devtools@mous.vla.yp-c.yandex.net> | 2022-02-07 18:08:42 +0300 |
commit | 1110808a9d39d4b808aef724c861a2e1a38d2a69 (patch) | |
tree | e26c9fed0de5d9873cce7e00bc214573dc2195b7 /contrib/libs/poco/Foundation/include/Poco/File_VX.h | |
download | ydb-1110808a9d39d4b808aef724c861a2e1a38d2a69.tar.gz |
intermediate changes
ref:cde9a383711a11544ce7e107a78147fb96cc4029
Diffstat (limited to 'contrib/libs/poco/Foundation/include/Poco/File_VX.h')
-rw-r--r-- | contrib/libs/poco/Foundation/include/Poco/File_VX.h | 84 |
1 files changed, 84 insertions, 0 deletions
diff --git a/contrib/libs/poco/Foundation/include/Poco/File_VX.h b/contrib/libs/poco/Foundation/include/Poco/File_VX.h new file mode 100644 index 0000000000..3d66f96647 --- /dev/null +++ b/contrib/libs/poco/Foundation/include/Poco/File_VX.h @@ -0,0 +1,84 @@ +// +// File_VX.h +// +// Library: Foundation +// Package: Filesystem +// Module: File +// +// Definition of the FileImpl class for VxWorks. +// +// Copyright (c) 2004-2011, Applied Informatics Software Engineering GmbH. +// and Contributors. +// +// SPDX-License-Identifier: BSL-1.0 +// + + +#ifndef Foundation_File_VX_INCLUDED +#define Foundation_File_VX_INCLUDED + + +#include "Poco/Foundation.h" + + +namespace Poco { + + +class FileImpl +{ +protected: + typedef UInt64 FileSizeImpl; + + FileImpl(); + FileImpl(const std::string& path); + virtual ~FileImpl(); + void swapImpl(FileImpl& file); + void setPathImpl(const std::string& path); + const std::string& getPathImpl() const; + bool existsImpl() const; + bool canReadImpl() const; + bool canWriteImpl() const; + bool canExecuteImpl() const; + bool isFileImpl() const; + bool isDirectoryImpl() const; + bool isLinkImpl() const; + bool isDeviceImpl() const; + bool isHiddenImpl() const; + Timestamp createdImpl() const; + Timestamp getLastModifiedImpl() const; + void setLastModifiedImpl(const Timestamp& ts); + FileSizeImpl getSizeImpl() const; + void setSizeImpl(FileSizeImpl size); + void setWriteableImpl(bool flag = true); + void setExecutableImpl(bool flag = true); + void copyToImpl(const std::string& path) const; + void renameToImpl(const std::string& path); + void linkToImpl(const std::string& path, int type) const; + void removeImpl(); + bool createFileImpl(); + bool createDirectoryImpl(); + FileSizeImpl totalSpaceImpl() const; + FileSizeImpl usableSpaceImpl() const; + FileSizeImpl freeSpaceImpl() const; + static void handleLastErrorImpl(const std::string& path); + +private: + std::string _path; + + friend class DirectoryIteratorImpl; +}; + + +// +// inlines +// +inline const std::string& FileImpl::getPathImpl() const +{ + return _path; +} + + +} // namespace Poco + + +#endif // Foundation_File_VX_INCLUDED |