ParameterGroup.hpp
Go to the documentation of this file.
Definition: AnisotropicEikonal.hpp:43 ParameterGroup() Definition: ParameterGroup.hpp:109 bool isOutputEnabled() const Returs true if and only if output from get, getDefault and getGroup is enabled. void disableOutput() Disables the output from get, getDefault and getGroup. By default, such output is enabled... Definition: ParameterGroup.hpp:113 void readXML(const std::string &xml_filename) Reads the contents of the xml file specified by xml_filename into this ParameterGroup. void displayUsage(bool used_params=false) const Shows which parameters which are used or unused. void enableOutput() Enables the output from get, getDefault and getGroup. By default, such output 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:226 Definition: ParameterGroup.hpp:111 bool anyUnused() const Return true if any parameters are unused. Definition: ParameterMapItem.hpp:48 ParameterGroup getGroup(const std::string &name) const This method returns the parameter group given by name, i.e. it is an alias of get void insert(const std::string &name, const std::shared_ptr< ParameterMapItem > &data) Insert a new item into the group. void writeParam(const std::string ¶m_filename) const Writes this ParameterGroup into a param file specified by param_filename. void readParam(const std::string ¶m_filename) Reads the contents of the param file specified by param_filename into this ParameterGroup. bool has(const std::string &name) const This method checks if there is something with name name in the parameter gropup. std::string path() const Returns the path of the parameter group. Definition: ParameterGroup.hpp:112 Definition: ParameterGroup.hpp:116 const std::vector< std::string > & unhandledArguments() const Unhandled arguments from command line parsing. virtual std::string getTag() const This function returns a string describing the ParameterMapItem. virtual ~ParameterGroup() 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. |