23 lines
475 B
C++
23 lines
475 B
C++
#ifndef SDLPP_HPP_VISITOR
|
|
#define SDLPP_HPP_VISITOR
|
|
|
|
#include "sdlpp_common.hpp"
|
|
|
|
namespace SDLPP {
|
|
|
|
class SDLPPSCOPE RenderObject;
|
|
|
|
class SDLPPSCOPE Visitor {
|
|
public:
|
|
Visitor() = default;
|
|
virtual void visit( const RenderObject &obj ) = 0;
|
|
virtual void setFromId( uint64_t id ) = 0;
|
|
virtual uint64_t getFromId() const = 0;
|
|
virtual void setVisitorType( uint64_t type ) = 0;
|
|
virtual uint64_t getVisitorType() const = 0;
|
|
};
|
|
|
|
} // namespace SDLPP
|
|
|
|
#endif
|