memgraph/include/communication/bolt/v1/states/state.hpp

31 lines
386 B
C++
Raw Normal View History

2016-08-02 05:14:09 +08:00
#pragma once
#include <cstdlib>
#include <cstdint>
#include <memory>
#include "logging/default.hpp"
2016-08-02 05:14:09 +08:00
namespace bolt
{
class Session;
class State
{
public:
using uptr = std::unique_ptr<State>;
State() = default;
State(Logger logger) : logger(logger) {}
2016-08-02 05:14:09 +08:00
virtual ~State() = default;
virtual State* run(Session& session) = 0;
protected:
Logger logger;
2016-08-02 05:14:09 +08:00
};
}