Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::Version Struct Reference

#include <catch_version.h>

Public Member Functions

 Version (Version const &)=delete
 
Versionoperator= (Version const &)=delete
 
 Version (unsigned int _majorVersion, unsigned int _minorVersion, unsigned int _patchNumber, char const *const _branchName, unsigned int _buildNumber)
 

Public Attributes

unsigned int const majorVersion
 
unsigned int const minorVersion
 
unsigned int const patchNumber
 
char const *const branchName
 
unsigned int const buildNumber
 

Friends

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

Detailed Description

Definition at line 16 of file catch_version.h.

Constructor & Destructor Documentation

◆ Version() [1/2]

Catch::Version::Version ( Version const & )
delete

◆ Version() [2/2]

Catch::Version::Version ( unsigned int _majorVersion,
unsigned int _minorVersion,
unsigned int _patchNumber,
char const *const _branchName,
unsigned int _buildNumber )

Definition at line 14 of file catch_version.cpp.

20 : majorVersion( _majorVersion ),
21 minorVersion( _minorVersion ),
22 patchNumber( _patchNumber ),
23 branchName( _branchName ),
24 buildNumber( _buildNumber )
25 {}
unsigned int const buildNumber
char const *const branchName
unsigned int const minorVersion
unsigned int const majorVersion
unsigned int const patchNumber

Member Function Documentation

◆ operator=()

Version & Catch::Version::operator= ( Version const & )
delete

Friends And Related Symbol Documentation

◆ operator<<

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

Definition at line 27 of file catch_version.cpp.

27 {
28 os << version.majorVersion << '.'
29 << version.minorVersion << '.'
30 << version.patchNumber;
31 // branchName is never null -> 0th char is \0 if it is empty
32 if (version.branchName[0]) {
33 os << '-' << version.branchName
34 << '.' << version.buildNumber;
35 }
36 return os;
37 }
os_t os

Member Data Documentation

◆ branchName

char const* const Catch::Version::branchName

Definition at line 30 of file catch_version.h.

◆ buildNumber

unsigned int const Catch::Version::buildNumber

Definition at line 31 of file catch_version.h.

◆ majorVersion

unsigned int const Catch::Version::majorVersion

Definition at line 25 of file catch_version.h.

◆ minorVersion

unsigned int const Catch::Version::minorVersion

Definition at line 26 of file catch_version.h.

◆ patchNumber

unsigned int const Catch::Version::patchNumber

Definition at line 27 of file catch_version.h.


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