Sha256: 3055d32c5dcd43f577f06d65739bfe9c256dd288163192060a9d3934745b1965

Contents?: true

Size: 630 Bytes

Versions: 18

Compression:

Stored size: 630 Bytes

Contents

#ifndef ENTERPRISE_SCRIPT_SERVICE_OPTIONS_HPP
#define ENTERPRISE_SCRIPT_SERVICE_OPTIONS_HPP

#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sstream>
#include <iostream>

class options {
public:
  options();

  uint64_t instruction_quota();
  uint32_t instruction_quota_start();

  void read_from(int argc, char **argv, std::ostream &output = std::cerr);

  size_t memory_quota();

private:
  uint64_t instruction_quota_;
  uint32_t instruction_quota_start_;
  size_t memory_quota_;

  inline void parse(std::ostream &output, uint64_t &to, const std::string &option = "option");
};

#endif

Version data entries

18 entries across 18 versions & 1 rubygems

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