summaryrefslogtreecommitdiff
path: root/inc/dum.h
diff options
context:
space:
mode:
Diffstat (limited to 'inc/dum.h')
-rw-r--r--inc/dum.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/inc/dum.h b/inc/dum.h
new file mode 100644
index 0000000..da64b9d
--- /dev/null
+++ b/inc/dum.h
@@ -0,0 +1,28 @@
+#ifndef DUM_H
+#define DUM_H
+#include "instrDTO.h"
+#include "response.h"
+#include "stage.h"
+
+/**
+ * Don't underestimate mocks (the DUM pipe stage).
+ */
+class DUM : public Stage
+{
+ public:
+ /**
+ * Constructor.
+ * @param The next stage in the pipeline.
+ * @return A newly allocated DUM object.
+ */
+ DUM(Stage *next);
+
+ InstrDTO *advance(Response p) override;
+
+ void set_curr_instr(InstrDTO *);
+
+ private:
+ void advance_helper() override;
+};
+
+#endif /* DUM_H_INCLUDED */