TRTParsedArgs is returned by getOptions after it has parsed a command line argument list (argv). More...
Public Attributes | |
std::string | errMsg |
std::vector< std::pair< int, std::vector< std::string > > > | values |
std::vector< std::string > | positionalArgs |
TRTParsedArgs is returned by getOptions after it has parsed a command line argument list (argv).
errMsg is a string containing an error message if any errors occurred. If it is empty, no errors occurred.
values stores a vector of pairs for each option (ordered by order in the input). Each pair contains an int (the number of occurrences) and a vector of strings (a list of values). The user should know which of these to use, and which options required values. For non-value options, only occurrences is populated. For value-required options, occurrences == # of values. Values do not need to be unique.
positionalArgs stores additional arguments that are passed in without an option (these must not start with a hyphen).
std::string nvinfer1::utility::TRTParsedArgs::errMsg |
std::vector<std::pair<int, std::vector<std::string> > > nvinfer1::utility::TRTParsedArgs::values |
std::vector<std::string> nvinfer1::utility::TRTParsedArgs::positionalArgs |