Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
CheckForUpdates::Version Struct Reference

#include <CheckForUpdates.hpp>

Public Member Functions

 Version ()
 
 Version (const std::string &tag_name)
 
void Parse (const std::string &tag_name)
 
constexpr bool operator> (const Version &other) const noexcept
 
constexpr bool operator< (const Version &other) const noexcept
 
constexpr bool operator== (const Version &other) const noexcept
 

Public Attributes

std::uint16_t major
 
std::uint16_t minor
 
std::uint16_t patch
 

Friends

std::ostream & operator<< (std::ostream &os, const Version &v) noexcept
 

Detailed Description

Comparable Version struct, an instance can be made from a version string e.g "1.0.0"

Definition at line 25 of file CheckForUpdates.hpp.

Constructor & Destructor Documentation

◆ Version() [1/2]

CheckForUpdates::Version::Version ( )
inline

Definition at line 30 of file CheckForUpdates.hpp.

◆ Version() [2/2]

CheckForUpdates::Version::Version ( const std::string &  tag_name)
inline

Definition at line 31 of file CheckForUpdates.hpp.

Member Function Documentation

◆ operator<()

constexpr bool CheckForUpdates::Version::operator< ( const Version other) const
inlineconstexprnoexcept

Definition at line 63 of file CheckForUpdates.hpp.

◆ operator==()

constexpr bool CheckForUpdates::Version::operator== ( const Version other) const
inlineconstexprnoexcept

Definition at line 73 of file CheckForUpdates.hpp.

◆ operator>()

constexpr bool CheckForUpdates::Version::operator> ( const Version other) const
inlineconstexprnoexcept

Definition at line 53 of file CheckForUpdates.hpp.

◆ Parse()

void CheckForUpdates::Version::Parse ( const std::string &  tag_name)
inline

Definition at line 35 of file CheckForUpdates.hpp.

Friends And Related Function Documentation

◆ operator<<

std::ostream& operator<< ( std::ostream &  os,
const Version v 
)
friend

Definition at line 77 of file CheckForUpdates.hpp.

Member Data Documentation

◆ major

std::uint16_t CheckForUpdates::Version::major

Definition at line 26 of file CheckForUpdates.hpp.

◆ minor

std::uint16_t CheckForUpdates::Version::minor

Definition at line 27 of file CheckForUpdates.hpp.

◆ patch

std::uint16_t CheckForUpdates::Version::patch

Definition at line 28 of file CheckForUpdates.hpp.


The documentation for this struct was generated from the following file: