ONE - On-device Neural Engine
|
interface for Option class More...
#include <CommandLine.h>
Public Types | |
enum class | Group { none = 0 , caffe2 = 1 , onnx = 2 } |
Public Member Functions | |
virtual void | setValue (const std::string &val)=0 |
set option value | |
virtual const std::vector< std::string > & | getNames () const =0 |
get all names of option | |
virtual const std::string & | getOverview () const =0 |
get description of option | |
virtual bool | isOptional () const =0 |
may option be optional? | |
virtual const std::vector< std::string > & | getValidVals () const =0 |
get valid values for given option | |
virtual const std::vector< char > & | getSeparators () const =0 |
get separators for option | |
virtual void | runCheckerFunc ()=0 |
function for option verification | |
virtual bool | isDisabled () const =0 |
is option disabled? | |
virtual bool | canHaveSeveralVals () const =0 |
can option have several values? | |
virtual bool | isGrouped () const =0 |
virtual IOption::Group | getGroup () const =0 |
virtual std::string | getGroupName () const =0 |
name of option group | |
Static Protected Attributes | |
static constexpr const char *const | _groupNames [] = {nullptr, "caffe2", "onnx"} |
interface for Option class
Definition at line 129 of file CommandLine.h.
|
strong |
Enumerator | |
---|---|
none | |
caffe2 | |
onnx |
Definition at line 187 of file CommandLine.h.
|
pure virtual |
can option have several values?
Implemented in nnc::cli::Option< T >.
Referenced by nnc::cli::CommandLine::parseCommandLine().
|
pure virtual |
Implemented in nnc::cli::Option< T >.
Referenced by nnc::cli::CommandLine::registerOption().
|
pure virtual |
name of option group
Implemented in nnc::cli::Option< T >.
|
pure virtual |
get all names of option
Implemented in nnc::cli::Option< T >.
Referenced by nnc::cli::CommandLine::parseCommandLine(), and nnc::cli::CommandLine::registerOption().
|
pure virtual |
get description of option
Implemented in nnc::cli::Option< T >.
|
pure virtual |
get separators for option
Implemented in nnc::cli::Option< T >.
|
pure virtual |
get valid values for given option
Implemented in nnc::cli::Option< T >.
|
pure virtual |
is option disabled?
Implemented in nnc::cli::Option< T >.
|
pure virtual |
Implemented in nnc::cli::Option< T >.
Referenced by nnc::cli::CommandLine::registerOption().
|
pure virtual |
may option be optional?
Implemented in nnc::cli::Option< T >.
|
pure virtual |
function for option verification
this | function throws exception of BadOption type if verification is not passed |
Implemented in nnc::cli::Option< T >.
|
pure virtual |
set option value
val | - value of option in string format |
Implemented in nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, nnc::cli::Option< T >, and nnc::cli::Option< T >.
Referenced by nnc::cli::CommandLine::parseCommandLine().
|
staticconstexprprotected |
Definition at line 206 of file CommandLine.h.
Referenced by nnc::cli::Option< T >::getGroupName().