-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEchoTos.h
41 lines (40 loc) · 931 Bytes
/
EchoTos.h
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
#pragma once
#include "CommandBase.h"
#include "AppSession.h"
#include "RequestInfo.h"
#include "ManagerClass.h"
namespace CamCommon
{
class EchoTos :public CommandBase<AppSession, RequestBodyInfo<char>>, public Object
{
public:
DECLARE_CLASS(EchoTos)
SYNTHESIZE(EchoTos, int*, _pValue)
EchoTos(Object *obj) :Object(obj){}
EchoTos(){}
virtual ~EchoTos(){
DELETE_CLASS(EchoTos);
}
static void* createInstance()
{
return new EchoTos(&ManagerClass::Instance());
}
virtual void registProperty()
{
_propertyMap.insert(pair<string, setValue>("set_pValue", set_pValue));
}
virtual void display()
{
cout << *get_pValue() << endl;
}
void ExecuteCommand(AppSession session, RequestBodyInfo<char> requestInfo){
cout << "ExecuteCommand" << endl;
}
void ExecuteCommand(void* p, void* pp){
cout << "ExecuteCommand" << endl;
}
private:
int* _pValue;
};
IMPLEMENT_CLASS(EchoTos)
}