Sha256: 6bc074092cf515dc3aa630799aeb4a37b6efe3bfdbd4c9edee16a39a023466ff

Contents?: true

Size: 826 Bytes

Versions: 18

Compression:

Stored size: 826 Bytes

Contents

//
// Created by Alex Snaps on 2016-11-29.
//

#ifndef ENTERPRISE_SCRIPT_SERVICE_SCRIPT_RUNNER_HPP
#define ENTERPRISE_SCRIPT_SERVICE_SCRIPT_RUNNER_HPP


#include "mruby_engine.hpp"
#include "script_data.hpp"
#include "timer.hpp"
#include "data.hpp"

class script_runner {
public:
  script_runner(me_mruby_engine &engine, timer &timer);
  bool run(script_data &script, data_writer &writer, unsigned int instruction_quota_start = 0);

private:
  me_mruby_engine &engine_;
  timer &timer_;
};

class mruby_data_writer {
public:
  mruby_data_writer(data_writer &writer, me_mruby_engine &engine, std::uint64_t in = 0);
  virtual ~mruby_data_writer();
  void emit_output();
  void emit_stat();

private:
  data_writer &writer;
  me_mruby_engine &engine;
  std::uint64_t in;
};


#endif //ENTERPRISE_SCRIPT_SERVICE_SCRIPT_RUNNER_HPP

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
script_core-0.3.2 ext/enterprise_script_service/script_runner.hpp
script_core-0.3.0 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.7 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.6 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.5 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.4 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.3 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.2 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.1 ext/enterprise_script_service/script_runner.hpp
script_core-0.2.0 ext/enterprise_script_service/script_runner.hpp
script_core-0.1.1 ext/enterprise_script_service/script_runner.hpp
script_core-0.1.0 ext/enterprise_script_service/script_runner.hpp
script_core-0.0.6 ext/enterprise_script_service/script_runner.hpp
script_core-0.0.5 ext/enterprise_script_service/script_runner.hpp
script_core-0.0.4 ext/enterprise_script_service/script_runner.hpp
script_core-0.0.3 ext/enterprise_script_service/script_runner.hpp
script_core-0.0.2 ext/enterprise_script_service/script_runner.hpp
script_core-0.0.1 ext/enterprise_script_service/script_runner.hpp