Initial test bootstrap.

This commit is contained in:
jmsgrogan 2023-12-18 10:16:31 +00:00
parent 6c618749f1
commit 4b308f6c32
94 changed files with 2543 additions and 681 deletions

View file

@ -1,33 +1,31 @@
#pragma once
#include <memory>
#include <vector>
#include <string>
#include <filesystem>
#include "Pointer.h"
#include "Vector.h"
#include "String.h"
#include "FileSystemPath.h"
class CommandLineArgs
{
public:
CommandLineArgs();
static std::unique_ptr<CommandLineArgs> Create();
static Ptr<CommandLineArgs> Create();
std::filesystem::path getLaunchPath();
FileSystemPath getLaunchPath();
const std::vector<std::string> getArgs() const;
const Vector<String> getArgs() const;
std::vector<std::string> getUserArgs() const;
Vector<String> getUserArgs() const;
static void initialize(CommandLineArgs* args);
void process(int argc, char *argv[]);
void process(const std::vector<std::string>& args);
void process(const Vector<String>& args);
void recordLaunchPath();
private:
std::vector<std::string> mArugments;
std::filesystem::path mLaunchPath;
};
using CommandLineArgsUPtr = std::unique_ptr<CommandLineArgs>;
Vector<String> mArugments;
FileSystemPath mLaunchPath;
};