/***************************************************************************
*                                                                          *
*  Copyright (C) Golaem S.A.  All Rights Reserved.                         *
*                                                                          *
***************************************************************************/

#pragma once

#include "glmSDKAPI.h"
#include "glmAbstractSpatialEnvironmentCreator.h"

#include "glmGseIStream.h"

//golaem core includes
#include <glmProgress.h>

namespace glm
{
	class Simulation;
	class AbstractGround;

	/**
	* \brief SpatialEnvironmentGseLoader comments
	*/
	class GLM_SDK_API SpatialEnvironmentGseLoader : public AbstractSpatialEnvironmentCreator
	{
	public:

		SpatialEnvironmentGseLoader(const glm::GlmString& filename);
		virtual ~SpatialEnvironmentGseLoader() ;

		/**
		* \brief Progress
		*/
		//@{
		const Progress::SP getProgress() const;
		Progress::SP touchProgress();
		//@}

	protected:

		/**
		* \brief file name
		*/
		glm::GlmString _fileName;

		/**
		* \brief Computes the spatial environment
		*/
		virtual GseComputationErrorCode::Value doComputation(bool& cancel);

		Progress::SP _progress;
	private:
		GLM_DISALLOW_COPY_AND_ASSIGN(SpatialEnvironmentGseLoader);
	} ;
}
