RequestFileInfoAbstract.h 1.01 KB
#ifndef REQUESTFILEINFOABSTRACT_H
#define REQUESTFILEINFOABSTRACT_H

#include <string>

#include "RequestAbstract.h"

#include "../Common/TREPSTypes.h"
#include "../File/FileLoaderManager.h"

using namespace TREPS::Common;
using namespace TREPS::File;

namespace TREPS
{
	namespace RequestManager
	{
		class RequestFileInfoAbstractClass : public RequestAbstractClass
		{
			public:
				RequestFileInfoAbstractClass(void);

				~RequestFileInfoAbstractClass(void);

				//load request inputs
				bool load(RequestLoaderClass *loader);

				//run request
				bool run(void);

				//write request result
				void writeResult(ResultWriterClass *writer);

				//get suffix used for result file
				string getResultFileSuffix(void);

				//get path to result XML file
				string getXMLFilePath(void);

				//get result string
				string getStringResult(void);

				//get path to file to load
				virtual string getFilePath(void) = 0;

			private:
				//information about file
				t_FileInfo info;

				string errorMsg;
		}; 

	}
}

#endif