Bugfix and cleanup Info on source in UI

This commit is contained in:
Bruno
2021-05-25 09:09:23 +02:00
parent 6ebcf49758
commit bcdc94c3b9
8 changed files with 53 additions and 32 deletions

View File

@@ -10,8 +10,11 @@ class InfoVisitor : public Visitor
uint64_t current_id_;
public:
InfoVisitor(bool brief = true);
inline std::string str() const { return information_; }
InfoVisitor();
inline void setBriefStringMode () { brief_ = true; current_id_ = 0; }
inline void setExtendedStringMode () { brief_ = false; current_id_ = 0; }
inline void reset () { current_id_ = 0; }
inline std::string str () const { return information_; }
// Elements of Scene
void visit (Scene& n) override;