ParameterGroup.hpp
Go to the documentation of this file.
Definition: ParameterGroup.hpp:81 void insert(const std::string &name, const std::shared_ptr< ParameterMapItem > &data) Insert a new item into the group. void get(const char *name, T &value, const T &default_value) const vki param interface - deprecated Definition: ParameterGroup.hpp:216 ParameterGroup getGroup(const std::string &name) const This method returns the parameter group given by name, i.e. it is an alias of get<ParameterGroup>(). const std::vector< std::string > & unhandledArguments() const Unhandled arguments from command line parsing. void writeParam(const std::string ¶m_filename) const Writes this ParameterGroup into a param file specified by param_filename. void disableOutput() Disables the output from get, getDefault and getGroup. By default, such output is enabled. void insertParameter(const std::string &name, const std::string &value) Insert a new parameter item into the group. void writeParamToStream(std::ostream &stream) const Writes this ParameterGroup to a stream. void enableOutput() Enables the output from get, getDefault and getGroup. By default, such output is enabled. virtual ~ParameterGroup() ParameterGroup(const std::string &path, const ParameterGroup *parent, const bool enable_output) void get(const char *name, T &value) const vki param interface - deprecated Definition: ParameterGroup.hpp:222 void displayUsage(bool used_params=false) const Shows which parameters which are used or unused. bool has(const std::string &name) const This method checks if there is something with name name in the parameter gropup. bool isOutputEnabled() const Returs true if and only if output from get, getDefault and getGroup is enabled. T getDefault(const std::string &name, const T &default_value) const This method is used to read a parameter from the parameter group. Definition: ParameterGroup_impl.hpp:214 void readParam(const std::string ¶m_filename) Reads the contents of the param file specified by param_filename into this ParameterGroup. ParameterGroup() T get(const std::string &name) const This method is used to read a parameter from the parameter group. Definition: ParameterGroup_impl.hpp:170 virtual std::string getTag() const This function returns a string describing the ParameterMapItem. Definition: A.hpp:4 Definition: ParameterGroup.hpp:85 Definition: ParameterGroup.hpp:83 Definition: ParameterGroup.hpp:88 Definition: ParameterGroup.hpp:84 Definition: ParameterMapItem.hpp:47 |