]> git.saurik.com Git - apple/system_cmds.git/blobdiff - msa/ReadTraceFileAction.hpp
system_cmds-643.30.1.tar.gz
[apple/system_cmds.git] / msa / ReadTraceFileAction.hpp
diff --git a/msa/ReadTraceFileAction.hpp b/msa/ReadTraceFileAction.hpp
new file mode 100644 (file)
index 0000000..3577bfb
--- /dev/null
@@ -0,0 +1,24 @@
+//
+//  ReadTraceFileAction.hpp
+//  msa
+//
+//  Created by James McIlree on 4/15/13.
+//  Copyright (c) 2014 Apple. All rights reserved.
+//
+
+#ifndef __kdprof__TraceFileAction__
+#define __kdprof__TraceFileAction__
+
+class ReadTraceFileAction : public Action {
+    protected:
+       std::string _path;
+       
+    public:
+       ReadTraceFileAction(const char* path) : _path(path) {
+               ASSERT(Path::is_file(_path, TRUE), "File must exist");
+       }
+
+       virtual void execute(Globals& globals);
+};
+
+#endif /* defined(__msa__TraceFileAction__) */