RequestVersionGet.cpp 992 Bytes
#include "RequestVersionGet.h"

#include "../Common/TREPS_kernel_config.h"

namespace TREPS
{
	namespace RequestManager
	{
		RequestVersionGetClass::RequestVersionGetClass(void):RequestAbstractClass()
		{
			this->outputType = OUTPUT_STRING;
		}

		string RequestVersionGetClass::getRequestId(void)
		{
			return "version_get";
		}

		bool RequestVersionGetClass::load(RequestLoaderClass *loader)
		{
			//nothing to do

			return true;
		}

		bool RequestVersionGetClass::run(void)
		{
			LOG4CXX_INFO(this->app->getLog()->getPtr(),"Run request " << this->getRequestId());

			//nothing to do
			return true;
		}
		
		void RequestVersionGetClass::writeResult(ResultWriterClass *writer)
		{
			//No result file for this request
		}

		string RequestVersionGetClass::getResultFileSuffix(void)
		{
			return "";
		}

		string RequestVersionGetClass::getXMLFilePath(void)
		{
			return "";
		}

		string RequestVersionGetClass::getStringResult(void)
		{
			return TREPS_KERNEL_VERSION;
		}
	}
}