-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTHCCommand.h
More file actions
44 lines (30 loc) · 739 Bytes
/
THCCommand.h
File metadata and controls
44 lines (30 loc) · 739 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
#ifndef THCCommand_h
#define THCCommand_h
#include <string>
#include "THCEvent.h"
#include "THCManager.h"
namespace ThreadCommand {
class THCEvent;
class THCCommand {
protected:
std::string tag;
std::string category;
THCEvent* event;
bool inited;
bool completed;
public:
THCCommand();
virtual ~THCCommand();
std::string GetTag();
std::string GetCategory();
void Regist(std::string _category, std::string _tag, THCEvent* _event);
void UnRegist();
bool Command(void* _ptr = NULL);
virtual void Update();
virtual bool Init(void* _ptr = NULL) = 0;
virtual bool Run(void* _ptr = NULL) = 0;
virtual bool Clean(void* _ptr = NULL) = 0;
friend class THCManager;
};
}
#endif