-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProcessTraverserCallback.h
More file actions
executable file
·36 lines (25 loc) · 1.03 KB
/
ProcessTraverserCallback.h
File metadata and controls
executable file
·36 lines (25 loc) · 1.03 KB
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
// Copyright 2006-12 HumaNature Studios Inc.
#ifndef __PROCESSTRAVERSERCALLBACK_H__
#define __PROCESSTRAVERSERCALLBACK_H__
#include "DependencyGraphTraverser.h"
#include "Process/DummyProcess.h"
#include "Process/ProcessEvent.h"
namespace core {
class ProcessTraverserCallback
: public DependencyGraphTraverser::ICallback
{
public:
virtual ~ProcessTraverserCallback();
void registerProcess(const CompactString& processName, Process* process);
protected:
typedef std::map<CompactString, Process*> StringProcessMap;
typedef std::map<const Process*, CompactString> ProcessStringMap;
typedef std::map<const Process*, DependencyGraphNode*> NodeMap;
StringProcessMap mStringProcessMap;
ProcessStringMap mProcessStringMap;
NodeMap mNodeMap;
virtual void traverseNode(DependencyGraphNode* node);
void handleProcessEnded(const Event* event);
};
} // namespace core
#endif // __PROCESSTRAVERSERCALLBACK_H__