OPAL (Object Oriented Parallel Accelerator Library) 2024.2
OPAL
version.hpp
Go to the documentation of this file.
1//
2// Struct version
3//
4// Copyright (c) 2015, Christof Metzger-Kraus, Helmholtz-Zentrum Berlin
5// All rights reserved
6//
7// This file is part of OPAL.
8//
9// OPAL is free software: you can redistribute it and/or modify
10// it under the terms of the GNU General Public License as published by
11// the Free Software Foundation, either version 3 of the License, or
12// (at your option) any later version.
13//
14// You should have received a copy of the GNU General Public License
15// along with OPAL. If not, see <https://www.gnu.org/licenses/>.
16//
17#ifndef VERSION_HPP_
18#define VERSION_HPP_
19
20#include <ostream>
21
22namespace SDDS {
23 struct version {
24 short layoutVersion_m { 0 };
25 };
26
27 inline std::ostream& operator<<(std::ostream& out, const version& head) {
28 out << "layout version is " << head.layoutVersion_m;
29 return out;
30 }
31}
32
33#endif /* VERSION_HPP_ */
std::ostream & operator<<(std::ostream &out, const array &)
Definition array.hpp:72
short layoutVersion_m
Definition version.hpp:24