DataRetriever.h 718 Bytes
#ifndef DATARETRIEVER_H
#define DATARETRIEVER_H

#include <string>

#include "../Application/Application.h"

using namespace TREPS::Application;

namespace TREPS
{
	namespace DataRetriever
	{
		class DataRetrieverClass
		{
			public :
				DataRetrieverClass(void);

				//copy a local file
				bool copyLocalFile(const char *file_path, const char *dest_dir, const char *dest_name, bool checkSize = false);

				//copy a web file
				bool copyWebFile(const char *file_url, const char *dest_dir, const char *dest_name, bool checkSize = false);

				//get last error message
				string getErrorMsg();

			private :
				ApplicationClass *app;

				string errorMsg;
		};
	}
}

#endif