ChimeraTK-DeviceAccess 03.25.00
Loading...
Searching...
No Matches
VersionNumber.cc
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Deutsches Elektronen-Synchrotron DESY, MSK, ChimeraTK Project <chimeratk-support@desy.de>
2// SPDX-License-Identifier: LGPL-3.0-or-later
3
4#include "VersionNumber.h"
5
6namespace ChimeraTK {
7
8 /********************************************************************************************************************/
9
10 std::atomic<uint64_t> VersionNumber::_lastGeneratedVersionNumber{0};
11
12 /********************************************************************************************************************/
13
14 VersionNumber::operator std::string() const {
15 return std::string("v") + std::to_string(_value);
16 }
17
18 /********************************************************************************************************************/
19
20 std::ostream& operator<<(std::ostream& stream, const VersionNumber& version) {
21 stream << std::string(version);
22 return stream;
23 }
24
25 /********************************************************************************************************************/
26
27} /* namespace ChimeraTK */
Class for generating and holding version numbers without exposing a numeric representation.
std::ostream & operator<<(std::ostream &stream, const DataDescriptor::FundamentalType &fundamentalType)
std::string to_string(const std::string &v)