CmdArgs class
          #include <eckit/option/CmdArgs.h>
        
        
Base classes
Public types
- using usage_proc = void(*)(const std::string&name)
Constructors, destructors, conversion operators
- CmdArgs(usage_proc usage, int args_count = -1, int minimum_args = 0, bool throw_on_error = false)
- 
              CmdArgs(usage_proc usage,
              std::vector<Option*>& options, int args_count = -1, int minimum_args = 0, bool throw_on_error = false) 
- 
              CmdArgs(std::function<void(const std:: string&)> usage, std:: vector<Option*>& options, int args_count = -1, int minimum_args = 0, bool throw_on_error = false) 
- ~CmdArgs()
Public functions
- 
              auto operator()(size_t) const -> const std::string& 
- 
              auto tool() const -> const std::string& 
- auto count() const -> size_t
- void configure(Configured&) const
- 
              auto begin() const -> std::vector<std:: string>::const_iterator 
- 
              auto begin() -> std::vector<std:: string>::iterator 
- 
              auto end() const -> std::vector<std:: string>::const_iterator 
- 
              auto end() -> std::vector<std:: string>::iterator 
- auto set(const Configuration& other) -> LocalConfiguration&
- 
              auto set(const std::string& name, const std:: string& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const char* value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, bool value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, int value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, long value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, long long value) -> LocalConfiguration& 
- 
              auto set(const std::string& name, size_t value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, float value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, double value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const std:: vector<int>& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const std:: vector<long>& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const std:: vector<long long>& value) -> LocalConfiguration& 
- 
              auto set(const std::string& name, const std:: vector<size_t>& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const std:: vector<float>& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const std:: vector<double>& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const std:: vector<std:: string>& value) -> LocalConfiguration& override 
- 
              auto set(const std::string& name, const Configuration& value) -> LocalConfiguration& 
- 
              template<typename ConfigurationT, typename = std::auto set(const std::enable_if_t<std:: is_base_of_v<Configuration, std:: decay_t<ConfigurationT>>>> string& name, const std:: vector<ConfigurationT>& value) -> LocalConfiguration& 
- 
              template<typename ConfigurationT, typename = std::auto set(const std::enable_if_t<std:: is_base_of_v<Configuration, std:: decay_t<ConfigurationT>>>> string& name, std:: initializer_list<ConfigurationT>&& value) -> LocalConfiguration& 
- 
              auto remove(const std::string& name) -> LocalConfiguration& 
- 
              auto getBool(const std::string& name) const -> bool 
- 
              auto getBool(const std::string& name, const bool& defaultValue) const -> bool 
- 
              auto getInt(const std::string& name) const -> int 
- 
              auto getInt(const std::string& name, const int& defaultValue) const -> int 
- 
              auto getLong(const std::string& name) const -> long 
- 
              auto getLong(const std::string& name, const long& defaultValue) const -> long 
- 
              auto getUnsigned(const std::string& name) const -> std:: size_t 
- 
              auto getUnsigned(const std::string& name, const std:: size_t& defaultValue) const -> std:: size_t 
- 
              auto getInt32(const std::string& name) const -> std:: int32_t 
- 
              auto getInt32(const std::string& name, const std:: int32_t& defaultValue) const -> std:: int32_t 
- 
              auto getInt64(const std::string& name) const -> std:: int64_t 
- 
              auto getInt64(const std::string& name, const std:: int64_t& defaultValue) const -> std:: int64_t 
- 
              auto getFloat(const std::string& name) const -> float 
- 
              auto getFloat(const std::string& name, const float& defaultValue) const -> float 
- 
              auto getDouble(const std::string& name) const -> double 
- 
              auto getDouble(const std::string& name, const double& defaultValue) const -> double 
- 
              auto getString(const std::string& name) const -> std:: string 
- 
              auto getString(const std::string& name, const std:: string& defaultValue) const -> std:: string 
- 
              auto getIntVector(const std::string& name) const -> std:: vector<int> 
- 
              auto getIntVector(const std::string& name, const std:: vector<int>& defaultValue) const -> std:: vector<int> 
- 
              auto getLongVector(const std::string& name) const -> std:: vector<long> 
- 
              auto getLongVector(const std::string& name, const std:: vector<long>& defaultValue) const -> std:: vector<long> 
- 
              auto getUnsignedVector(const std::string& name) const -> std:: vector<std:: size_t> 
- 
              auto getUnsignedVector(const std::string& name, const std:: vector<std:: size_t>& defaultValue) const -> std:: vector<std:: size_t> 
- 
              auto getInt32Vector(const std::string& name) const -> std:: vector<std:: int32_t> 
- 
              auto getInt32Vector(const std::string& name, const std:: vector<std:: int32_t>& defaultValue) const -> std:: vector<std:: int32_t> 
- 
              auto getInt64Vector(const std::string& name) const -> std:: vector<std:: int64_t> 
- 
              auto getInt64Vector(const std::string& name, const std:: vector<std:: int64_t>& defaultValue) const -> std:: vector<std:: int64_t> 
- 
              auto getFloatVector(const std::string& name) const -> std:: vector<float> 
- 
              auto getFloatVector(const std::string& name, const std:: vector<float>& defaultValue) const -> std:: vector<float> 
- 
              auto getDoubleVector(const std::string& name) const -> std:: vector<double> 
- 
              auto getDoubleVector(const std::string& name, const std:: vector<double>& defaultValue) const -> std:: vector<double> 
- 
              auto getStringVector(const std::string& name) const -> std:: vector<std:: string> 
- 
              auto getStringVector(const std::string& name, const std:: vector<std:: string>& defaultValue) const -> std:: vector<std:: string> 
- auto empty() const -> bool
- 
              auto keys() const -> std::vector<std:: string> 
- 
              auto getSubConfigurations(const std::string& name) const -> std:: vector<LocalConfiguration> 
- 
              auto getSubConfigurations() const -> std::vector<LocalConfiguration> 
- 
              auto getSubConfiguration(const std::string& name) const -> LocalConfiguration 
- auto separator() const -> char
- 
              auto has(const std::string& name) const -> bool override 
- 
              auto get(const std::string& name, std:: string& value) const -> bool override 
- 
              auto get(const std::string& name, bool& value) const -> bool override 
- 
              auto get(const std::string& name, int& value) const -> bool override 
- 
              auto get(const std::string& name, long& value) const -> bool override 
- 
              auto get(const std::string& name, long long& value) const -> bool override 
- 
              auto get(const std::string& name, std:: size_t& value) const -> bool override 
- 
              auto get(const std::string& name, float& value) const -> bool override 
- 
              auto get(const std::string& name, double& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<int>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<long>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<long long>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<std:: size_t>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<float>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<double>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<std:: string>& value) const -> bool override 
- 
              auto get(const std::string& name, std:: vector<LocalConfiguration>&) const -> bool 
- 
              auto get(const std::string& name, LocalConfiguration&) const -> bool 
- auto get() const -> const Value&
- 
              auto get(const std::string& name, size_t& value) const -> bool pure virtual 
- 
              auto get(const std::string& name, std:: vector<size_t>& value) const -> bool pure virtual 
- 
              void hash(eckit::Hash&) const virtual 
- 
              auto isSubConfiguration(const std::string& name) const -> bool 
- 
              auto isIntegral(const std::string& name) const -> bool 
- 
              auto isBoolean(const std::string& name) const -> bool 
- 
              auto isFloatingPoint(const std::string& name) const -> bool 
- 
              auto isString(const std::string& name) const -> bool 
- 
              auto isList(const std::string& name) const -> bool 
- 
              auto isSubConfigurationList(const std::string& name) const -> bool 
- 
              auto isIntegralList(const std::string& name) const -> bool 
- 
              auto isBooleanList(const std::string& name) const -> bool 
- 
              auto isFloatingPointList(const std::string& name) const -> bool 
- 
              auto isStringList(const std::string& name) const -> bool 
- 
              auto isNull(const std::string& name) const -> bool 
- 
              template<typename T>auto isConvertible(const std::string& name) const -> bool 
- 
              template<typename T>auto isConvertible(const std::string& name, T&) const -> bool 
Private functions
- 
              void print(std::ostream&) const override 
Function documentation
               CmdArgs::
Initialise argument parser with a list of options
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              LocalConfiguration& CmdArgs::
            
              #include <eckit/config/LocalConfiguration.h>
              
                template<typename ConfigurationT, typename = std::
            
              #include <eckit/config/LocalConfiguration.h>
              
                template<typename ConfigurationT, typename = std::
            
              LocalConfiguration& CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              int CmdArgs::
            
              int CmdArgs::
            
              long CmdArgs::
            
              long CmdArgs::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              float CmdArgs::
            
              float CmdArgs::
            
              double CmdArgs::
            
              double CmdArgs::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              std::
            
              bool CmdArgs::
            
              std::
            
              std::
            
              std::
            
              LocalConfiguration CmdArgs::
            
              char CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              const Value& CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              void CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              bool CmdArgs::
            
              #include <eckit/config/Configuration.h>
              
                template<typename T>
              
              bool CmdArgs::
            
              #include <eckit/config/Configuration.h>
              
                template<typename T>
              
              bool CmdArgs::