OpenMS
Software.h
Go to the documentation of this file.
1 // Copyright (c) 2002-present, The OpenMS Team -- EKU Tuebingen, ETH Zurich, and FU Berlin
2 // SPDX-License-Identifier: BSD-3-Clause
3 //
4 // --------------------------------------------------------------------------
5 // $Maintainer: Timo Sachsenberg $
6 // $Authors: Marc Sturm $
7 // --------------------------------------------------------------------------
8 
9 #pragma once
10 
14 
15 namespace OpenMS
16 {
22  class OPENMS_DLLAPI Software :
23  public CVTermList
24  {
25 public:
27  explicit Software(const String& name = "", const String& version = "");
29  Software(const Software&) = default;
31  Software(Software&&) = default;
33  ~Software() override;
34 
36  Software& operator=(const Software&) = default;
38  Software& operator=(Software&&)& = default;
39 
41  bool operator==(const Software& rhs) const;
43  bool operator!=(const Software& rhs) const;
45  bool operator<(const Software& rhs) const;
46 
48  const String& getName() const;
50  void setName(const String& name);
51 
53  const String& getVersion() const;
55  void setVersion(const String& version);
56 
57 protected:
60  };
61 } // namespace OpenMS
62 
Representation of controlled vocabulary term list.
Definition: CVTermList.h:28
Description of the software used for processing.
Definition: Software.h:24
bool operator==(const Software &rhs) const
Equality operator.
Software(Software &&)=default
Move constructor.
Software(const String &name="", const String &version="")
Constructor.
String name_
Definition: Software.h:58
const String & getVersion() const
Returns the software version.
String version_
Definition: Software.h:59
void setName(const String &name)
Sets the name of the software.
bool operator<(const Software &rhs) const
Less-than operator (for sorting)
bool operator!=(const Software &rhs) const
Inequality operator.
const String & getName() const
Returns the name of the software.
Software & operator=(Software &&) &=default
Move assignment operator.
Software & operator=(const Software &)=default
Assignment operator.
~Software() override
Destructor.
Software(const Software &)=default
Copy constructor.
void setVersion(const String &version)
Sets the software version.
A more convenient string class.
Definition: String.h:34
Main OpenMS namespace.
Definition: openswathalgo/include/OpenMS/OPENSWATHALGO/DATAACCESS/ISpectrumAccess.h:19