// Copyright (C) Stichting Deltares 2021. All rights reserved.
//
// This file is part of Riskeer.
//
// Riskeer is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see .
//
// All names, logos, and references to "Deltares" are registered trademarks of
// Stichting Deltares and remain full property of Stichting Deltares at all times.
// All rights reserved.
using System;
using BruTile;
using Core.Components.BruTile.IO;
using Core.Components.Gis.Exceptions;
namespace Core.Components.BruTile.Configurations
{
///
/// Interface for all classes that can configure a BruTile layer.
///
///
/// Original source: https://github.com/FObermaier/DotSpatial.Plugins/blob/master/DotSpatial.Plugins.BruTileLayer/Configuration/IConfiguration.cs
/// Original license: http://www.apache.org/licenses/LICENSE-2.0.html
///
public interface IConfiguration : IDisposable
{
///
/// Gets the .
///
ITileSchema TileSchema { get; }
///
/// Gets the .
///
ITileFetcher TileFetcher { get; }
///
/// Gets a value indicating whether the configuration has been fully initialized
/// or not.
///
/// can be used to initialize the configuration
/// if needed.
bool Initialized { get; }
///
/// Gets a deep copy of the configuration.
///
/// The cloned configuration.
/// Thrown when calling this method while
/// this instance is disposed.
/// Thrown when creating the file
/// cache failed.
IConfiguration Clone();
///
/// Properly initialize the configuration, making it ready for tile fetching.
///
/// Thrown when the configured
/// cannot be found.
/// Thrown when the configured
/// tile cache cannot be created.
/// Thrown when
/// doesn't allow for tiles to be received.
/// Thrown when calling this method while
/// this instance is disposed.
void Initialize();
}
}