ATLAS Offline Software
Loading...
Searching...
No Matches
Version.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2021 CERN for the benefit of the ATLAS collaboration
3*/
4
6// Version.h
8// (c) ATLAS Detector software
10
11#ifndef INDETREADOUTGEOMETRY_VERSION
12#define INDETREADOUTGEOMETRY_VERSION
13
14#include <string>
15
16namespace InDetDD {
17
23
24 class Version {
25
26 public:
27
29 Version(const std::string & tag,
30 const std::string & name,
31 const std::string & layout,
32 const std::string & description,
33 int major,
34 int minor,
35 int patch);
36
38 Version();
39
41 const std::string & tag() const;
42
44 const std::string & name() const;
45
47 const std::string & layout() const;
48
50 const std::string & description() const;
51
53 int majorNum() const;
54
56 int minorNum() const;
57
59 int patchNum() const;
60
62 std::string versionNumber() const;
63
67 std::string fullDescription() const;
68
69
70 private:
71
72 std::string m_tag;
73 std::string m_name;
74 std::string m_layout;
75 std::string m_description;
79 };
80
81} // namespace InDetDD
82
83#endif // INDETREADOUTGEOMETRY_VERSION
std::string fullDescription() const
Full Description For example, Version: SCT-DC1-00, Name: DC1, Layout: Final, Code Version: 2....
Definition Version.cxx:90
int minorNum() const
Minor version number.
Definition Version.cxx:68
Version()
Empty Constructor.
Definition Version.cxx:31
std::string versionNumber() const
Print out version number (eg.
Definition Version.cxx:80
const std::string & layout() const
Layout (eg Initial, Final, TestBeam)
Definition Version.cxx:50
std::string m_name
Definition Version.h:73
std::string m_layout
Definition Version.h:74
std::string m_description
Definition Version.h:75
const std::string & name() const
Version label.
Definition Version.cxx:44
int majorNum() const
Major version number.
Definition Version.cxx:62
const std::string & tag() const
Version tag.
Definition Version.cxx:38
int patchNum() const
Patch version number.
Definition Version.cxx:74
std::string m_tag
Definition Version.h:72
const std::string & description() const
Description or comment.
Definition Version.cxx:56
Version(const std::string &tag, const std::string &name, const std::string &layout, const std::string &description, int major, int minor, int patch)
Constructor.
Definition Version.cxx:13
Message Stream Member.