openMSX
win32-arggen.hh
Go to the documentation of this file.
1#ifndef WIN32_ARG_GEN_HH
2#define WIN32_ARG_GEN_HH
3
4#ifdef _WIN32
5
6#include "dynarray.hh"
7
8#include <span>
9
10namespace openmsx {
11
12class ArgumentGenerator
13{
14public:
15 ArgumentGenerator(const ArgumentGenerator&) = delete;
16 ArgumentGenerator(ArgumentGenerator&&) = delete;
17 ArgumentGenerator& operator=(const ArgumentGenerator&) = delete;
18 ArgumentGenerator& operator=(ArgumentGenerator&&) = delete;
19
20 ArgumentGenerator();
21 ~ArgumentGenerator();
22
23 [[nodiscard]] std::span<char*> getArgs() {
24 return {args.data(), args.size()};
25 }
26
27private:
28 dynarray<char*> args;
29};
30
31#endif
32
33} // namespace openmsx
34
35#endif // WIN32_ARG_GEN_HH
This file implemented 3 utility functions:
Definition Autofire.cc:11