Cbeam
Loading...
Searching...
No Matches
version.hpp
Go to the documentation of this file.
1/*
2Copyright (c) 2025 acrion innovations GmbH
3Authors: Stefan Zipproth, s.zipproth@acrion.ch
4
5This file is part of Cbeam, see https://github.com/acrion/cbeam and https://cbeam.org
6
7Cbeam is offered under a commercial and under the AGPL license.
8For commercial licensing, contact us at https://acrion.ch/sales. For AGPL licensing, see below.
9
10AGPL licensing:
11
12Cbeam is free software: you can redistribute it and/or modify
13it under the terms of the GNU Affero General Public License as published by
14the Free Software Foundation, either version 3 of the License, or
15(at your option) any later version.
16
17Cbeam is distributed in the hope that it will be useful,
18but WITHOUT ANY WARRANTY; without even the implied warranty of
19MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20GNU Affero General Public License for more details.
21
22You should have received a copy of the GNU Affero General Public License
23along with Cbeam. If not, see <https://www.gnu.org/licenses/>.
24*/
25
26#pragma once
27
28#ifdef USING_CMAKE
29 #include "version_generated.hpp"
30#endif
31
32#include <string>
33
34namespace cbeam
35{
47 inline std::string get_version()
48 {
49#ifdef USING_CMAKE
50 return CBEAM_VERSION;
51#else
52 return "0.0.0";
53#endif
54 }
55}
The root namespace for the Cbeam library. This namespace unifies cross-platform utilities for concurr...
Definition message_manager.hpp:47
std::string get_version()
Returns the library version string, for example "1.2.3".
Definition version.hpp:47