]> git.saurik.com Git - apple/system_cmds.git/blob - msa/ReadTraceFileAction.hpp
system_cmds-643.30.1.tar.gz
[apple/system_cmds.git] / msa / ReadTraceFileAction.hpp
1 //
2 // ReadTraceFileAction.hpp
3 // msa
4 //
5 // Created by James McIlree on 4/15/13.
6 // Copyright (c) 2014 Apple. All rights reserved.
7 //
8
9 #ifndef __kdprof__TraceFileAction__
10 #define __kdprof__TraceFileAction__
11
12 class ReadTraceFileAction : public Action {
13 protected:
14 std::string _path;
15
16 public:
17 ReadTraceFileAction(const char* path) : _path(path) {
18 ASSERT(Path::is_file(_path, TRUE), "File must exist");
19 }
20
21 virtual void execute(Globals& globals);
22 };
23
24 #endif /* defined(__msa__TraceFileAction__) */