mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-15 17:27:57 -05:00
Add Tests for ZCG cpp
This commit is contained in:
46
src/ZoneCodeGeneratorLib/ZoneCodeGeneratorArguments.h
Normal file
46
src/ZoneCodeGeneratorLib/ZoneCodeGeneratorArguments.h
Normal file
@ -0,0 +1,46 @@
|
||||
#pragma once
|
||||
|
||||
#include "Utils/ClassUtils.h"
|
||||
#include "Utils/Arguments/ArgumentParser.h"
|
||||
|
||||
#include <vector>
|
||||
|
||||
class ZoneCodeGeneratorArguments
|
||||
{
|
||||
ArgumentParser m_argument_parser;
|
||||
|
||||
/**
|
||||
* \brief Prints a command line usage help text for the Unlinker tool to stdout.
|
||||
*/
|
||||
static void PrintUsage();
|
||||
|
||||
public:
|
||||
static constexpr unsigned FLAG_TASK_GENERATE = 1 << 0;
|
||||
static constexpr unsigned FLAG_TASK_PRINT = 1 << 1;
|
||||
|
||||
class GenerationTask
|
||||
{
|
||||
public:
|
||||
std::string m_asset_name;
|
||||
std::string m_preset_name;
|
||||
|
||||
GenerationTask();
|
||||
GenerationTask(std::string assetName, std::string presetName);
|
||||
};
|
||||
|
||||
bool m_verbose;
|
||||
|
||||
std::vector<std::string> m_header_paths;
|
||||
std::vector<std::string> m_command_paths;
|
||||
std::string m_output_directory;
|
||||
|
||||
unsigned m_task_flags;
|
||||
std::vector<GenerationTask> m_generation_tasks;
|
||||
|
||||
ZoneCodeGeneratorArguments();
|
||||
|
||||
bool Parse(int argc, const char** argv);
|
||||
|
||||
_NODISCARD bool ShouldGenerate() const;
|
||||
_NODISCARD bool ShouldPrint() const;
|
||||
};
|
Reference in New Issue
Block a user