Provides the ability to override how the SettingsRegistry data is persisted. More...
#include <ViewBookmarkLoaderInterface.h>
Inherited by AzToolsFramework::LocalViewBookmarkLoader.
Public Types | |
using | StreamWriteFn = AZStd::function< bool(const AZ::IO::PathView &localBookmarksFileName, AZStd::string_view stringBuffer, AZStd::function< bool(AZ::IO::GenericStream &genericStream, const AZStd::string &stringBuffer)>)> |
using | StreamReadFn = AZStd::function< AZStd::vector< char >(const AZ::IO::PathView &localBookmarksFileName)> |
using | FileExistsFn = AZStd::function< bool(const AZ::IO::PathView &localBookmarksFileName)> |
Public Member Functions | |
virtual void | OverrideStreamWriteFn (StreamWriteFn streamWriteFn)=0 |
virtual void | OverrideStreamReadFn (StreamReadFn streamReadFn)=0 |
virtual void | OverrideFileExistsFn (FileExistsFn fileExistsFn)=0 |
Provides the ability to override how the SettingsRegistry data is persisted.
using AzToolsFramework::ViewBookmarkPersistInterface::StreamReadFn = AZStd::function<AZStd::vector<char>(const AZ::IO::PathView& localBookmarksFileName)> |
Readable interface Will load the file name provided (using project for full path) and return the contents of the file.
using AzToolsFramework::ViewBookmarkPersistInterface::StreamWriteFn = AZStd::function<bool( const AZ::IO::PathView& localBookmarksFileName, AZStd::string_view stringBuffer, AZStd::function<bool(AZ::IO::GenericStream& genericStream, const AZStd::string& stringBuffer)>)> |
Writable stream interface Accepts a filename and contents buffer, it will pass the buffer to the third parameter and output to the stream provided.
|
pure virtual |
Overrides the check for if the persistent View Bookmark Settings Registry exists or not.
Implemented in AzToolsFramework::LocalViewBookmarkLoader.
|
pure virtual |
Overrides the behavior of reading from a stream.
Implemented in AzToolsFramework::LocalViewBookmarkLoader.
|
pure virtual |
Overrides the behavior of writing to a stream.
Implemented in AzToolsFramework::LocalViewBookmarkLoader.