YARP
Yet Another Robot Platform
 
Loading...
Searching...
No Matches
filesystem.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2006-2021 Istituto Italiano di Tecnologia (IIT)
3 * SPDX-License-Identifier: BSD-3-Clause
4 */
5
6
7#ifndef YARP_CONF_FILESYSTEM_H
8#define YARP_CONF_FILESYSTEM_H
9
11#if (defined _WIN32)
12# if (_MSC_VER >= 1920)
13typedef wchar_t value_type;
14static constexpr value_type preferred_separator = L'\\';
15# else
16typedef char value_type;
17static constexpr value_type preferred_separator = '\\';
18# endif
19#else
20typedef char value_type;
21static constexpr value_type preferred_separator = '/';
22#endif
23
24
25#ifndef YARP_NO_DEPRECATED // since YARP 3.5.0
26#include <yarp/conf/api.h> // For YARP_DEPRECATED_TYPEDEF_MSG
27YARP_DEPRECATED_MSG("Use yarp::conf::environment::path_separator instead")
28#if (defined _WIN32)
29# if (_MSC_VER >= 1920)
30static constexpr value_type path_separator = L';';
31# else
32static constexpr value_type path_separator = ';';
33# endif
34#else
35static constexpr value_type path_separator = ':';
36#endif
37#endif // YARP_NO_DEPRECATED
38
39
40} // namespace yarp::conf::filesystem
41
42
43#endif // YARP_CONF_FILESYSTEM_H
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
Definition compiler.h:2885
static constexpr value_type preferred_separator
Definition filesystem.h:21
static constexpr value_type path_separator
Definition filesystem.h:35