ArchiveReaderFactory.h 1.3 KB

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Archive/Clients/ArchiveReaderAPI.h>
  10. namespace Archive
  11. {
  12. // Implements a factory that is registered with an
  13. // AZ::Interface<IArchiveReaderFactory> in the Archive.Clients
  14. // gem module ArchiveModule class
  15. // This allows users of the Archive.Clients.API to create an ArchiveReader
  16. class ArchiveReaderFactory
  17. : public IArchiveReaderFactory
  18. {
  19. public:
  20. AZ_TYPE_INFO_WITH_NAME_DECL(ArchiveReaderFactory);
  21. AZ_RTTI_NO_TYPE_INFO_DECL();
  22. AZ_CLASS_ALLOCATOR_DECL;
  23. AZStd::unique_ptr<IArchiveReader> Create() const override;
  24. AZStd::unique_ptr<IArchiveReader> Create(const ArchiveReaderSettings& readerSettings) const override;
  25. AZStd::unique_ptr<IArchiveReader> Create(AZ::IO::PathView archivePath,
  26. const ArchiveReaderSettings& readerSettings) const override;
  27. AZStd::unique_ptr<IArchiveReader> Create(IArchiveReader::ArchiveStreamPtr archiveStream,
  28. const ArchiveReaderSettings& readerSettings) const override;
  29. };
  30. } // namespace Archive