// Copyright Epic Games, Inc. All Rights Reserved. #pragma once #include #include #include #include namespace zen { class ProjectStore; class ZenCacheStore; /** Virtual File System service Implements support for exposing data via a virtual file system interface. Currently this is primarily used to surface various data stored in the local storage service to users for debugging and exploration purposes. Currently, it surfaces information from the structured cache service and from the project store. */ class VfsService : public HttpService { public: VfsService(); ~VfsService(); void Mount(std::string_view MountPoint); void Unmount(); void AddService(Ref&&); void AddService(Ref&&); protected: virtual const char* BaseUri() const override; virtual void HandleRequest(HttpServerRequest& HttpServiceRequest) override; private: struct Impl; Impl* m_Impl = nullptr; HttpRequestRouter m_Router; friend struct VfsServiceDataSource; }; } // namespace zen