mirror of
https://github.com/brunoherbelin/vimix.git
synced 2025-12-17 21:29:59 +01:00
Cleanup source tree
Move all C++ source files in the src subfolder. Adapted the cmake process accordingly and cleanup.
This commit is contained in:
42
src/InfoVisitor.h
Normal file
42
src/InfoVisitor.h
Normal file
@@ -0,0 +1,42 @@
|
||||
#ifndef INFOVISITOR_H
|
||||
#define INFOVISITOR_H
|
||||
|
||||
#include "Visitor.h"
|
||||
|
||||
class InfoVisitor : public Visitor
|
||||
{
|
||||
std::string information_;
|
||||
bool brief_;
|
||||
uint64_t current_id_;
|
||||
|
||||
public:
|
||||
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;
|
||||
void visit (Node& n) override;
|
||||
void visit (Group& n) override;
|
||||
void visit (Switch& n) override;
|
||||
void visit (Primitive& n) override;
|
||||
|
||||
// Elements with attributes
|
||||
void visit (Stream& n) override;
|
||||
void visit (MediaPlayer& n) override;
|
||||
void visit (MediaSource& s) override;
|
||||
void visit (SessionFileSource& s) override;
|
||||
void visit (SessionGroupSource& s) override;
|
||||
void visit (RenderSource& s) override;
|
||||
void visit (CloneSource& s) override;
|
||||
void visit (PatternSource& s) override;
|
||||
void visit (DeviceSource& s) override;
|
||||
void visit (NetworkSource& s) override;
|
||||
void visit (MultiFileSource& s) override;
|
||||
void visit (GenericStreamSource& s) override;
|
||||
void visit (SrtReceiverSource& s) override;
|
||||
};
|
||||
|
||||
#endif // INFOVISITOR_H
|
||||
Reference in New Issue
Block a user