mirror of
https://github.com/Laupetin/OpenAssetTools.git
synced 2025-06-10 23:08:05 -05:00
54 lines
1.4 KiB
C++
54 lines
1.4 KiB
C++
#pragma once
|
|
#include "Utils/Arguments/ArgumentParser.h"
|
|
#include "Zone/Zone.h"
|
|
|
|
#include <vector>
|
|
#include <set>
|
|
|
|
class UnlinkerArgs
|
|
{
|
|
ArgumentParser m_argument_parser;
|
|
|
|
/**
|
|
* \brief Prints a command line usage help text for the Unlinker tool to stdout.
|
|
*/
|
|
static void PrintUsage();
|
|
|
|
/**
|
|
* \brief Splits a path string as user input into a list of paths.
|
|
* \param pathsString The path string that was taken as user input.
|
|
* \param output A set for strings to save the output to.
|
|
* \return \c true if the user input was valid and could be processed successfully, otherwise \c false.
|
|
*/
|
|
static bool ParsePathsString(const std::string& pathsString, std::set<std::string>& output);
|
|
|
|
void SetVerbose(bool isVerbose);
|
|
bool SetImageDumpingMode();
|
|
|
|
public:
|
|
enum class ProcessingTask
|
|
{
|
|
DUMP,
|
|
LIST
|
|
};
|
|
|
|
std::vector<std::string> m_zones_to_load;
|
|
std::set<std::string> m_user_search_paths;
|
|
|
|
ProcessingTask m_task;
|
|
std::string m_output_folder;
|
|
bool m_minimal_zone_def;
|
|
|
|
bool m_verbose;
|
|
|
|
UnlinkerArgs();
|
|
bool ParseArgs(int argc, const char** argv);
|
|
|
|
/**
|
|
* \brief Converts the output path specified by command line arguments to a path applies for the specified zone.
|
|
* \param zone The zone to resolve the path input for.
|
|
* \return An output path for the zone based on the user input.
|
|
*/
|
|
std::string GetOutputFolderPathForZone(Zone* zone) const;
|
|
};
|