RequestFileGetAbstract.h 1.01 KB
#ifndef REQUESTFILEGETABSTRACT_H
#define REQUESTFILEGETABSTRACT_H

#include <string>

#include "RequestAbstract.h"
#include "../File/FileLoaderManager.h"
#include "../DataRecord/DataRecord.h"

using namespace TREPS::File;
using namespace TREPS::DataRecord;

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

				~RequestFileGetAbstractClass(void);

				//load reequest 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 result XML file
				string getXMLFilePath(void);

				//get string result
				string getStringResult(void);

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

			private:
				DataRecordListClass data;
				int start, limit, total;

				string errorMsg;
		}; 

	}
}

#endif