summaryrefslogtreecommitdiff
path: root/traveler/DotTraveler.hh
diff options
context:
space:
mode:
Diffstat (limited to 'traveler/DotTraveler.hh')
-rw-r--r--traveler/DotTraveler.hh22
1 files changed, 22 insertions, 0 deletions
diff --git a/traveler/DotTraveler.hh b/traveler/DotTraveler.hh
new file mode 100644
index 0000000..c80b15e
--- /dev/null
+++ b/traveler/DotTraveler.hh
@@ -0,0 +1,22 @@
+#ifndef PCC_DOTTRAVELER_HH
+#define PCC_DOTTRAVELER_HH
+
+#include <stack>
+
+#include "Traveler.hh"
+
+namespace pcc {
+class DotTraveler : public Traveler {
+ public:
+ DotTraveler(std::ostream& out);
+ virtual Traveler& operator<<(TravelPart part) override;
+
+ protected:
+ virtual void PreTravel() override;
+ virtual void PostTravel() override;
+ std::stack<int> NodeIndex_;
+ int CurrentIndex_;
+};
+} // namespace pcc
+
+#endif // !PCC_DOTTRAVELER_HH