Using PathView to pass paths to APIs
This commit is contained in:
@@ -13,17 +13,17 @@ public:
|
||||
using SinkFlag = IFilesystem::SinkFlag;
|
||||
using SinkFlags = IFilesystem::SinkFlags;
|
||||
|
||||
virtual OpenSinkResult openSink(const AbsPath& i_path, Mode i_mode, SinkFlags i_flags = SinkFlags()) = 0;
|
||||
virtual OpenStreamSinkResult openStreamSink(const AbsPath& i_path, Mode i_mode, SinkFlags i_flags = SinkFlags()) = 0;
|
||||
virtual OpenMapSinkResult openMapSink(const AbsPath& i_path, Mode i_mode, size_t i_size, SinkFlags i_flags = SinkFlags()) = 0;
|
||||
virtual OpenSinkResult openSink(AbsPathView i_path, Mode i_mode, SinkFlags i_flags = SinkFlags()) = 0;
|
||||
virtual OpenStreamSinkResult openStreamSink(AbsPathView i_path, Mode i_mode, SinkFlags i_flags = SinkFlags()) = 0;
|
||||
virtual OpenMapSinkResult openMapSink(AbsPathView i_path, Mode i_mode, size_t i_size, SinkFlags i_flags = SinkFlags()) = 0;
|
||||
|
||||
virtual RemoveResult remove(const AbsPath& i_path) = 0;
|
||||
virtual RenameResult rename(const AbsPath& i_path, const AbsPath& i_newPath) = 0;
|
||||
virtual RemoveResult remove(AbsPathView i_path) = 0;
|
||||
virtual RenameResult rename(AbsPathView i_path, AbsPathView i_newPath) = 0;
|
||||
|
||||
virtual MakeFolderResult makeFolder(const AbsPath& i_path) = 0;
|
||||
virtual RemoveRecursivelyResult removeRecursively(const AbsPath& i_path) = 0;
|
||||
virtual MakeFolderResult makeFolder(AbsPathView i_path) = 0;
|
||||
virtual RemoveRecursivelyResult removeRecursively(AbsPathView i_path) = 0;
|
||||
|
||||
virtual SetWriteTimeResult setWriteTime(const AbsPath& i_path, time_t i_time) = 0;
|
||||
virtual SetWriteTimeResult setWriteTime(AbsPathView i_path, time_t i_time) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user