Skip to content

Commit

Permalink
Improved A::File and A::Folder interface
Browse files Browse the repository at this point in the history
  • Loading branch information
Epixu committed Mar 6, 2024
1 parent 7d8f3a2 commit a8469e3
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions source/External.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -340,6 +340,9 @@ namespace Langulus::A
NOD() Size GetBytesize() const noexcept;

NOD() virtual Any ReadAs(DMeta) const = 0;

NOD() virtual Ref<File> RelativeFile (const Path&) const = 0;
NOD() virtual Ref<Folder> RelativeFolder(const Path&) const = 0;

template<class T>
NOD() T ReadAs() const;
Expand Down Expand Up @@ -399,8 +402,8 @@ namespace Langulus::A
NOD() bool IsReadOnly() const noexcept;
NOD() const Path& GetFolderPath() const noexcept;

NOD() virtual Ref<File> GetFile (const Path&) const = 0;
NOD() virtual Ref<Folder> GetFolder(const Path&) const = 0;
NOD() virtual Ref<File> RelativeFile (const Path&) const = 0;
NOD() virtual Ref<Folder> RelativeFolder(const Path&) const = 0;
};

///
Expand Down

0 comments on commit a8469e3

Please sign in to comment.