struct utils::Version — HIRO 0.7.0 documentation

# struct utils::Version

## Overview

Holder for project version. More…

    #include <Version.h>

    struct Version {
        // fields

        uint32_t major { 0u };
        uint32_t minor { 0u };
        uint32_t patch { 0u };

        // construction

        Version();
        Version(uint32_t maj, uint32_t min = 0, uint32_t pat = 0);
        Version(const std::string& version_str);

        // methods

        std::string ToString() const;
    };

## Detailed Documentation

Holder for project version.

### Methods

    std::string ToString() const

Returns version in string form. Major, minor and patch numbers separated by dots.