From a8469e320f2300333f11ab8afb3c0bece2566740 Mon Sep 17 00:00:00 2001 From: Epixu Date: Wed, 6 Mar 2024 20:47:13 +0200 Subject: [PATCH] Improved A::File and A::Folder interface --- source/External.hpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/source/External.hpp b/source/External.hpp index 623e1b7..5748132 100644 --- a/source/External.hpp +++ b/source/External.hpp @@ -340,6 +340,9 @@ namespace Langulus::A NOD() Size GetBytesize() const noexcept; NOD() virtual Any ReadAs(DMeta) const = 0; + + NOD() virtual Ref RelativeFile (const Path&) const = 0; + NOD() virtual Ref RelativeFolder(const Path&) const = 0; template NOD() T ReadAs() const; @@ -399,8 +402,8 @@ namespace Langulus::A NOD() bool IsReadOnly() const noexcept; NOD() const Path& GetFolderPath() const noexcept; - NOD() virtual Ref GetFile (const Path&) const = 0; - NOD() virtual Ref GetFolder(const Path&) const = 0; + NOD() virtual Ref RelativeFile (const Path&) const = 0; + NOD() virtual Ref RelativeFolder(const Path&) const = 0; }; ///