OSDN Git Service

Allow NUL and \\.\NUL in paths specified as command line arguments (#2056)
[winmerge-jp/winmerge-jp.git] / Src / TFile.h
1 #pragma once
2
3 #define POCO_NO_UNWINDOWS 1
4 #include <Poco/File.h>
5 #include <Poco/Exception.h>
6 #include "UnicodeString.h"
7 #include "unicoder.h"
8
9 class TFile : public Poco::File
10 {
11 public:
12         explicit TFile(const String& path) : File(ucr::toUTF8(path)) {}
13         void copyTo(const String& path) const { File::copyTo(ucr::toUTF8(path)); }
14         void moveTo(const String& path) { File::moveTo(ucr::toUTF8(path)); }
15         void renameTo(const String& path) { File::renameTo(ucr::toUTF8(path)); }
16 };