memgraph/include/communication/bolt/v1/states/state.hpp
2016-08-30 20:52:46 +01:00

31 lines
386 B
C++

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