  | 
  
    OpenMS
    2.6.0
    
   | 
 
 
 
  
  
 
Go to the documentation of this file.
   40 #include <OpenMS/OpenMSConfig.h> 
   48   template <
class Key, 
class T>
 
   97       bool isValid(
String& message) 
const;
 
  240       const std::vector<TraceInfo>& getTrace() 
const;
 
  248       std::vector<const Param::ParamNode*> 
stack_;
 
  314     bool exists(
const String& key) 
const;
 
  363     bool hasTag(
const String& key, 
const String& tag) 
const;
 
  377     void clearTags(
const String& key);
 
  399     void setSectionDescription(
const String& key, 
const String& description);
 
  406     const String& getSectionDescription(
const String& key) 
const;
 
  413     void addSection(
const String& key, 
const String& description);
 
  430     void insert(
const String& prefix, 
const Param& param);
 
  441     void remove(
const String& key);
 
  451     void removeAll(
const String& prefix);
 
  460     Param copy(
const String& prefix, 
bool remove_prefix = 
false) 
const;
 
  478     bool update(
const Param& p_outdated, 
const bool add_unknown = 
false);
 
  508     bool update(
const Param& p_outdated, 
bool verbose, 
bool add_unknown, 
bool fail_on_invalid_values, 
bool fail_on_unknown_parameters, 
Logger::LogStream& stream);
 
  515     void merge(
const Param& toMerge);
 
  531     void setDefaults(
const Param& defaults, 
const String& prefix = 
"", 
bool showMessage = 
false);
 
  552     void checkDefaults(
const String& name, 
const Param& defaults, 
const String& prefix = 
"") 
const;
 
  565     void setValidStrings(
const String& key, 
const std::vector<String>& strings);
 
  574     void setMinInt(
const String& key, 
Int min);
 
  583     void setMaxInt(
const String& key, 
Int max);
 
  592     void setMinFloat(
const String& key, 
double min);
 
  601     void setMaxFloat(
const String& key, 
double max);
 
  624     void parseCommandLine(
const int argc, 
const char** argv, 
const String& prefix = 
"");
 
  660   OPENMS_DLLAPI std::ostream& 
operator<<(std::ostream& os, 
const Param& param);
 
  
std::vector< ParamEntry > entries
Entries (leafs) in the node.
Definition: Param.h:189
 
TraceInfo(const String &n, const String &d, bool o)
Constructor with name, description, and open flag.
Definition: Param.h:204
 
Int min_int
Default: - std::numeric_limits<Int>::max()
Definition: Param.h:113
 
std::vector< String > valid_strings
Default: empty.
Definition: Param.h:115
 
std::vector< ParamEntry >::iterator EntryIterator
Iterator for entries.
Definition: Param.h:125
 
const Param::ParamNode * root_
Pointer to the root node.
Definition: Param.h:244
 
Parameter entry used to store the actual information inside of a Param entry.
Definition: Param.h:78
 
Int max_int
Default: std::numeric_limits<Int>::max()
Definition: Param.h:114
 
DPosition< D, TCoordinateType > operator*(DPosition< D, TCoordinateType > position, typename DPosition< D, TCoordinateType >::CoordinateType scalar)
Scalar multiplication (a bit inefficient)
Definition: DPosition.h:427
 
Param::ParamNode root_
Invisible root node that stores all the data.
Definition: Param.h:656
 
A more convenient string class.
Definition: String.h:59
 
bool operator!=(_Iterator< _Val, _Ref, _Ptr > const &, _Iterator< _Val, _Ref, _Ptr > const &)
Definition: KDTree.h:824
 
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
 
std::set< String > tags
Tags list, used e.g. for advanced parameter tag.
Definition: Param.h:108
 
String name
Name of the node.
Definition: Param.h:185
 
bool opened
If it was opened (true) or closed (false)
Definition: Param.h:216
 
DataValue value
Value associated with the entry.
Definition: Param.h:106
 
String name
Name of the entry.
Definition: Param.h:102
 
Forward const iterator for the Param class.
Definition: Param.h:197
 
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:46
 
std::vector< ParamNode >::iterator NodeIterator
Iterator for child nodes.
Definition: Param.h:123
 
double max_float
Default: std::numeric_limits<double>::max()
Definition: Param.h:112
 
double min_float
Default: - std::numeric_limits<double>::max()
Definition: Param.h:111
 
Class to hold strings, numeric values, lists of strings and lists of numeric values.
Definition: DataValue.h:56
 
Int current_
Index of the current ParamEntry (-1 means invalid)
Definition: Param.h:246
 
std::vector< ParamNode >::const_iterator ConstNodeIterator
Iterator for child nodes.
Definition: Param.h:127
 
std::vector< TraceInfo > trace_
Node traversal data during last ++ operation.
Definition: Param.h:250
 
std::vector< ParamEntry >::const_iterator ConstEntryIterator
Iterator for entries.
Definition: Param.h:129
 
std::ostream & operator<<(std::ostream &os, const AccurateMassSearchResult &amsr)
 
Log Stream Class.
Definition: LogStream.h:311
 
std::vector< String > StringList
Vector of String.
Definition: ListUtils.h:70
 
int verbose
Verbosity level ( "-v" is 1 and "-V" is 2 )
 
bool operator==(const IDBoostGraph::ProteinGroup &lhs, const IDBoostGraph::ProteinGroup &rhs)
 
Struct that captures information on entered / left nodes for ParamIterator.
Definition: Param.h:201
 
Management and storage of parameters / INI files.
Definition: Param.h:73
 
Node inside a Param object which is used to build the internal tree.
Definition: Param.h:120
 
Map class based on the STL map (containing several convenience functions)
Definition: Map.h:50
 
std::vector< const Param::ParamNode * > stack_
Pointers to the ParamNodes we are in.
Definition: Param.h:248
 
String name
name of the node
Definition: Param.h:212
 
String description
Description of the entry.
Definition: Param.h:104
 
std::vector< ParamNode > nodes
Subnodes.
Definition: Param.h:191
 
String description
Description of the node.
Definition: Param.h:187
 
String description
description of the node
Definition: Param.h:214