-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcess.h
More file actions
executable file
·50 lines (31 loc) · 911 Bytes
/
Process.h
File metadata and controls
executable file
·50 lines (31 loc) · 911 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
// Copyright 2006-12 HumaNature Studios Inc.
#ifndef __PROCESS_H__
#define __PROCESS_H__
#include "Event/EventDispatcher.h"
namespace core {
class Process
: public EventDispatcher
, public MemoryObject
{
public:
Process(const char* name=nullptr);
virtual ~Process();
bool hasBegun();
bool hasEnded();
void begin();
void end(const char* additionalEvent=nullptr);
void reset();
protected:
bool mBegun;
bool mEnded;
bool mDeleteOnEnd;
std::string mName;
virtual const char* getReportName();
virtual void onBegin();
virtual void onEnd();
protected:
void dispatch(const CompactString& event);
friend class ProcessManager;
};
} // namespace core
#endif // __PROCESS_H__