VitroIO SDK
Software development kit for Vitro Shard.
Loading...
Searching...
No Matches
vitroio::sdk::Version Struct Reference

Structure representing version in format major.minor.patch. More...

#include <types.h>

Public Member Functions

 Version (uint8_t amajor, uint8_t aminor, uint8_t apatch, uint8_t rc)
 Constructor initializes the structure. More...
 
 Version (const uint8_t *buffer)
 Constructor initializes the structure. More...
 
bool operator> (const Version &v)
 
int toInt ()
 

Public Attributes

uint8_t major
 
uint8_t minor
 
uint8_t patch
 
uint8_t rc
 

Detailed Description

Structure representing version in format major.minor.patch.

Constructor & Destructor Documentation

◆ Version() [1/2]

vitroio::sdk::Version::Version ( uint8_t  amajor,
uint8_t  aminor,
uint8_t  apatch,
uint8_t  rc 
)

Constructor initializes the structure.

Parameters
amajorValue of major part of version
aminorValue of minor part of version
apatchValue of patch part of version
rcValue of realase candidate part of version

◆ Version() [2/2]

vitroio::sdk::Version::Version ( const uint8_t *  buffer)

Constructor initializes the structure.

Parameters
bufferbuffer containing version as binary

Member Function Documentation

◆ operator>()

bool vitroio::sdk::Version::operator> ( const Version v)

◆ toInt()

int vitroio::sdk::Version::toInt ( )

Member Data Documentation

◆ major

uint8_t vitroio::sdk::Version::major

◆ minor

uint8_t vitroio::sdk::Version::minor

◆ patch

uint8_t vitroio::sdk::Version::patch

◆ rc

uint8_t vitroio::sdk::Version::rc