Information about a version. More...
#include <arcane/utils/VersionInfo.h>
Public Member Functions | |
| VersionInfo () | |
| Constructs a null version. | |
| VersionInfo (int vmajor, int vminor, int vpatch) | |
| Constructs a version information. | |
| VersionInfo (const Arccore::String &version_str) | |
| Constructs a version information version_str must be in the format "M.m.p.b" where M is the major version, \m is the minor version, p is the patch number, and b is the beta number. | |
| int | versionMajor () const |
| Returns the major version number. | |
| int | versionMinor () const |
| Returns the minor version number. | |
| int | versionPatch () const |
| Returns the patch version number. | |
| String | versionAsString () const |
| Version number in string format. | |
| void | write (std::ostream &o) const |
Private Attributes | |
| int | m_major |
| Major version number. | |
| int | m_minor |
| Minor version number. | |
| int | m_patch |
| Patch version number. | |
Information about a version.
This class contains information about an object's version. The version number comprises 3 integer values:
The major version number corresponds to a fundamental evolution of the object. The minor version number corresponds to less significant evolutions. A major or minor version evolution implies that binary compatibility is not maintained.
Definition at line 46 of file VersionInfo.h.
| Arcane::VersionInfo::VersionInfo | ( | ) |
Constructs a null version.
Definition at line 30 of file VersionInfo.cc.
| Arcane::VersionInfo::VersionInfo | ( | int | vmajor, |
| int | vminor, | ||
| int | vpatch ) |
Constructs a version information.
Definition at line 41 of file VersionInfo.cc.
| Arcane::VersionInfo::VersionInfo | ( | const Arccore::String & | version_str | ) |
Constructs a version information version_str must be in the format "M.m.p.b" where M is the major version, \m is the minor version, p is the patch number, and b is the beta number.
Definition at line 69 of file VersionInfo.cc.
References Arcane::String::localstr(), m_major, m_minor, and m_patch.
| String Arcane::VersionInfo::versionAsString | ( | ) | const |
Version number in string format.
Definition at line 93 of file VersionInfo.cc.
References versionMajor(), versionMinor(), and versionPatch().
|
inline |
Returns the major version number.
Definition at line 65 of file VersionInfo.h.
References m_major.
Referenced by Arcane::Application::build(), Arcane::Application::initialize(), and versionAsString().
|
inline |
Returns the minor version number.
Definition at line 68 of file VersionInfo.h.
References m_minor.
Referenced by Arcane::Application::build(), Arcane::Application::initialize(), and versionAsString().
|
inline |
Returns the patch version number.
Definition at line 71 of file VersionInfo.h.
References m_patch.
Referenced by Arcane::Application::build(), Arcane::Application::initialize(), and versionAsString().
| void Arcane::VersionInfo::write | ( | std::ostream & | o | ) | const |
Definition at line 84 of file VersionInfo.cc.
|
private |
Major version number.
Definition at line 83 of file VersionInfo.h.
Referenced by VersionInfo(), VersionInfo(), VersionInfo(), and versionMajor().
|
private |
Minor version number.
Definition at line 84 of file VersionInfo.h.
Referenced by VersionInfo(), VersionInfo(), VersionInfo(), and versionMinor().
|
private |
Patch version number.
Definition at line 85 of file VersionInfo.h.
Referenced by VersionInfo(), VersionInfo(), VersionInfo(), and versionPatch().