X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fruntime.hpp;fp=src%2Fruntime.hpp;h=01f6cdd2c9b51df11afd0c453bc3d3a1e76939c4;hb=bd6bd2c875f4b6baef913e5315aa9f7e7cd7da7a;hp=0000000000000000000000000000000000000000;hpb=774253e509ce13881229efda8849bf6f3c47b665;p=blank.git diff --git a/src/runtime.hpp b/src/runtime.hpp new file mode 100644 index 0000000..01f6cdd --- /dev/null +++ b/src/runtime.hpp @@ -0,0 +1,37 @@ +#ifndef BLANK_RUNTIME_HPP_ +#define BLANK_RUNTIME_HPP_ + +#include + + +namespace blank { + +class Runtime { + +public: + enum Mode { + NORMAL, + FRAME_LIMIT, + TIME_LIMIT, + FIXED_FRAME_LIMIT, + ERROR, + }; + + Runtime(); + + void ReadArgs(int argc, const char *const *argv); + + int Execute(); + +private: + const char *name; + Mode mode; + std::size_t n; + std::size_t t; + unsigned int seed; + +}; + +} + +#endif