24 #ifndef ARM_COMPUTE_UTILS_OPTIONBASE 25 #define ARM_COMPUTE_UTILS_OPTIONBASE 60 virtual bool parse(std::string value) = 0;
66 virtual std::string
help()
const = 0;
72 std::string
name()
const;
100 bool _is_required{
false };
101 bool _is_set{
false };
106 : _name{ std::move(name) }
127 _help = std::move(help);
Abstract base class for a command line option.
virtual bool parse(std::string value)=0
Parses the given string.
virtual std::string help() const =0
Help message for the option.
Copyright (c) 2017-2021 Arm Limited.
std::string name() const
Name of the option.
virtual ~Option()=default
Default destructor.
void set_required(bool is_required)
Set whether the option is required.
Option(std::string name)
Constructor.
bool is_required() const
Is the option required?
bool is_set() const
Has a value been assigned to the option?
void set_help(std::string help)
Set the help message for the option.