Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::VersionInfo Class Reference

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

Detailed Description

Information about a version.

This class contains information about an object's version. The version number comprises 3 integer values:

  • the major version number,
  • the minor version number,
  • the patch version number,

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.

Note
the sub-version number is no longer used.

Definition at line 46 of file VersionInfo.h.

Constructor & Destructor Documentation

◆ VersionInfo() [1/3]

Arcane::VersionInfo::VersionInfo ( )

Constructs a null version.

Definition at line 30 of file VersionInfo.cc.

◆ VersionInfo() [2/3]

Arcane::VersionInfo::VersionInfo ( int vmajor,
int vminor,
int vpatch )

Constructs a version information.

Definition at line 41 of file VersionInfo.cc.

◆ VersionInfo() [3/3]

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().

Member Function Documentation

◆ versionAsString()

String Arcane::VersionInfo::versionAsString ( ) const

Version number in string format.

Definition at line 93 of file VersionInfo.cc.

References versionMajor(), versionMinor(), and versionPatch().

◆ versionMajor()

int Arcane::VersionInfo::versionMajor ( ) const
inline

Returns the major version number.

Definition at line 65 of file VersionInfo.h.

Referenced by versionAsString().

◆ versionMinor()

int Arcane::VersionInfo::versionMinor ( ) const
inline

Returns the minor version number.

Definition at line 68 of file VersionInfo.h.

Referenced by versionAsString().

◆ versionPatch()

int Arcane::VersionInfo::versionPatch ( ) const
inline

Returns the patch version number.

Definition at line 71 of file VersionInfo.h.

Referenced by versionAsString().

◆ write()

void Arcane::VersionInfo::write ( std::ostream & o) const

Definition at line 84 of file VersionInfo.cc.


The documentation for this class was generated from the following files: