diff options
Diffstat (limited to 'traveler/Traveler.hh')
| -rw-r--r-- | traveler/Traveler.hh | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/traveler/Traveler.hh b/traveler/Traveler.hh index 09f8d0d..92f5b99 100644 --- a/traveler/Traveler.hh +++ b/traveler/Traveler.hh @@ -19,9 +19,13 @@ enum class TravelPart { LAST_CHILD_END, END }; + +class BaseNode; + class Traveler { public: Traveler(std::ostream& out); + void Travel(std::shared_ptr<BaseNode> root); virtual Traveler& operator<<(TravelPart part) = 0; Traveler& operator<<(std::shared_ptr<Type> type); Traveler& operator<<(std::shared_ptr<TypeIdentifier> identifier); @@ -33,6 +37,8 @@ class Traveler { } protected: + virtual void PreTravel(); + virtual void PostTravel(); std::ostream& out_; }; } // namespace pcc |
