-
Notifications
You must be signed in to change notification settings - Fork 21
/
FactoryOwner.h
37 lines (30 loc) · 1.22 KB
/
FactoryOwner.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
// FactoryOwner.h -- May 21, 2009
// by geohot
// part of "The Embedded Disassembler"
// released under GPLv3, see http://gplv3.fsf.org/
//
// Here's where all the command parsing stuff lives. It also owns the factories and Memory
#include <vector>
#include <string>
#include "InstructionFactoryARM.h"
#include "data_atomic.h"
#include "data_memory.h"
namespace eda {
class FactoryOwner {
public:
FactoryOwner();
bool HandleGetRequest(const std::vector<std::string>& argv, std::string* out);
bool HandlePostRequest(const std::vector<std::string>& argv, std::string* out);
bool HandleEvalRequest(const std::vector<std::string>& argv, std::string* out);
bool HandleReadRequest(const std::vector<std::string>& argv, std::string* out);
bool HandleStepRequest(const std::vector<std::string>& argv, std::string* out);
bool HandleRenameRequest(const std::vector<std::string>& argv, std::string* out);
bool HandleDisassembleRequest(const std::vector<string>& argv, std::string* out);
Memory memory_; // I also own the memory
ChangelistFactory changelist_factory_;
InstructionFactory* instruction_factory_;
private:
// Something has got to be done about the InstructionFactories
// REGISTER_ARCH macro or something
};
}