BAOS SDK v2  1.2.1
An SDK providing access to IP-BAOS devices through BAOS binary protocol version 2.x
Loading...
Searching...
No Matches
Format.h
Go to the documentation of this file.
1//
2// Copyright (c) 2002-2026 WEINZIERL ENGINEERING GmbH
3// All rights reserved.
4//
5// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
6// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
7// FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT. IN NO EVENT
8// SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DAMAGES OR OTHER LIABILITY,
9// WHETHER IN CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
10// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
11//
12
13#ifndef __BAOSLIB_FORMAT_H__
14#define __BAOSLIB_FORMAT_H__
15
16#include "baos/config.h"
17
23#if defined(__has_include)
24# if __has_include(<version>)
25# include <version>
26# endif
27#endif
28
29/******************************************************************************
30 ** Format
31 *****************************************************************************/
32
33// Use std::format when available (C++20) or thirdparty library fmt
34#ifndef __cpp_lib_format
35#include <fmt/format.h>
36#include <fmt/ostream.h>
37#else
38#include <format>
39#endif
40
47namespace wz::baos
48{
49#ifndef __cpp_lib_format
50using fmt::format;
51#else
52using std::format;
53#endif
54} // end namespace wz::baos
55
56
57#endif // __BAOSLIB_FORMAT_H__
Global types and configuration for the whole SDK.
Global BAOS sdk namespace.
Definition config.h:69