2021-04-25 11:57:33 +00:00
|
|
|
#ifndef SDLPP_HPP_VISITOR
|
|
|
|
#define SDLPP_HPP_VISITOR
|
|
|
|
|
|
|
|
#include "sdlpp_common.hpp"
|
|
|
|
|
|
|
|
namespace SDLPP {
|
|
|
|
|
|
|
|
class SDLPPSCOPE RenderObject;
|
|
|
|
|
|
|
|
class SDLPPSCOPE Visitor {
|
|
|
|
public:
|
2021-08-07 10:13:03 +00:00
|
|
|
Visitor() = default;
|
2021-04-25 14:07:46 +00:00
|
|
|
virtual void visit( const RenderObject &obj ) = 0;
|
2021-05-02 12:03:43 +00:00
|
|
|
virtual void setFromId( uint64_t id ) = 0;
|
2021-08-07 10:13:03 +00:00
|
|
|
virtual uint64_t getFromId() const = 0;
|
2021-05-02 12:03:43 +00:00
|
|
|
virtual void setVisitorType( uint64_t type ) = 0;
|
2021-08-07 10:13:03 +00:00
|
|
|
virtual uint64_t getVisitorType() const = 0;
|
2021-04-25 11:57:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace SDLPP
|
|
|
|
|
|
|
|
#endif
|