CPP-AP 2.7.0
Command-line argument parser for C++20
Loading...
Searching...
No Matches
ap::version Struct Reference

A helper structure used to represent a program's version. More...

#include <version.hpp>

Public Member Functions

std::string str () const noexcept
 Converts the structure into a string in the v{major}.{minor}.{path} format.
 

Public Attributes

std::uint32_t major
 The major version number.
 
std::uint32_t minor
 The minor version number.
 
std::uint32_t patch
 The patch number.
 

Friends

std::ostream & operator<< (std::ostream &os, const version &v)
 The stream insertion operator.
 

Detailed Description

A helper structure used to represent a program's version.

Definition at line 13 of file version.hpp.

Member Function Documentation

◆ str()

std::string ap::version::str ( ) const
inlinenoexcept

Converts the structure into a string in the v{major}.{minor}.{path} format.

Definition at line 19 of file version.hpp.

Friends And Related Symbol Documentation

◆ operator<<

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

The stream insertion operator.

Definition at line 24 of file version.hpp.

Member Data Documentation

◆ major

std::uint32_t ap::version::major

The major version number.

Definition at line 14 of file version.hpp.

◆ minor

std::uint32_t ap::version::minor

The minor version number.

Definition at line 15 of file version.hpp.

◆ patch

std::uint32_t ap::version::patch

The patch number.

Definition at line 16 of file version.hpp.


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