ParamList.hpp
1 #pragma once
2 
3 #include <opals/fwd.hpp>
4 #include <opals/List.hpp>
5 #include <opals/String.hpp>
6 
7 namespace opals {
8 
9  /**
10  \struct Parameter
11 
12  \brief Parameter stores a single parameter for file I/O in parameter files.
13 
14  \author wk
15  \date 27.02.2011
16  */
17  struct OPALS_API Parameter
18  {
19  class Impl;
20  Impl *pimpl_;
21  public:
22  Parameter();
23  Parameter( const Parameter &ref );
24  ~Parameter();
25  Parameter &operator=( const Parameter &ref );
26 
27  bool operator==( const Parameter &ref ) const;
28  bool operator<( const Parameter &ref ) const;
29 
30  const String &path() const;
31  void path( const String& );
32 
33  const String &type() const;
34  void type( const String& );
35 
36  const String &source() const;
37  void source( const String& );
38 
39  const List<String> &values() const;
40  void values( const List<String>& );
41 
42  };
43 
44  /// \class ParamList
45  /// \brief Contains several parameters in their string representation.
46  class OPALS_API ParamList : public List< Parameter >
47  {};
48 }
49 
Contains several parameters in their string representation.
Definition: ParamList.hpp:46
Parameter stores a single parameter for file I/O in parameter files.
Definition: ParamList.hpp:17
Contains the public interface of OPALS.
Definition: AbsValueOrQuantile.hpp:8
A template class representing an STL-conforming (doubly linked) std::list<T>
Definition: fwd.hpp:16
A dynamic character string whose interface conforms to STL's std::string.
Definition: String.hpp:35