-
Notifications
You must be signed in to change notification settings - Fork 9
/
bpt_writer_text.cpp
57 lines (45 loc) · 1.16 KB
/
bpt_writer_text.cpp
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
51
52
53
54
55
56
57
#include "bpt_writer_text.hpp"
#include "bpt_events.hpp"
namespace bpt {
writer_text::writer_text(const std::string& file,
int argc, char* argv[], char* env[])
: out(file.c_str(), std::ofstream::out) {
for (int i=0; i < argc; ++i) {
out << argv[i];
}
out << std::endl;
while(*env) {
out << *env++ << std::endl;
}
}
void writer_text::visit(const event& e) {
out << e << std::endl;
}
void writer_text::visit(const modload_event& e) {
out << e << std::endl;
}
void writer_text::visit(const syscall_event& e) {
out << e << std::endl;
}
void writer_text::visit(const operation_event& e) {
out << e << std::endl;
}
void writer_text::visit(const read_event& e) {
out << e << std::endl;
}
void writer_text::visit(const write_event& e) {
out << e << std::endl;
}
void writer_text::visit(const read_flags_event& e) {
out << e << std::endl;
}
void writer_text::visit(const write_flags_event& e) {
out << e << std::endl;
}
void writer_text::visit(const load_event& e) {
out << e << std::endl;
}
void writer_text::visit(const store_event& e) {
out << e << std::endl;
}
} //namespace bpt