ChimeraTK-DeviceAccess
03.18.00
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
6
namespace
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 */
VersionNumber.h
ChimeraTK::operator<<
std::ostream & operator<<(std::ostream &stream, const DataDescriptor::FundamentalType &fundamentalType)
Definition:
DataDescriptor.cpp:195
ChimeraTK::VersionNumber
Class for generating and holding version numbers without exposing a numeric representation.
Definition:
VersionNumber.h:23
ChimeraTK
Definition:
DummyBackend.h:16
ChimeraTK::to_string
std::string to_string(Boolean &value)
Definition:
SupportedUserTypes.h:59
sources
ChimeraTK-DeviceAccess
src
VersionNumber.cc
Generated by
1.8.17