RequestVersionGet.cpp
992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#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;
}
}
}