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
10
namespace
yarp::conf::filesystem
{
11
#if (defined _WIN32)
12
# if (_MSC_VER >= 1920)
13
typedef
wchar_t
value_type
;
14
static
constexpr
value_type
preferred_separator
= L
'\\'
;
15
# else
16
typedef
char
value_type
;
17
static
constexpr
value_type
preferred_separator
=
'\\'
;
18
# endif
19
#else
20
typedef
char
value_type
;
21
static
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
27
YARP_DEPRECATED_MSG
(
"Use yarp::conf::environment::path_separator instead"
)
28
#if (defined _WIN32)
29
# if (_MSC_VER >= 1920)
30
static
constexpr
value_type
path_separator
= L
';'
;
31
# else
32
static
constexpr
value_type
path_separator
=
';'
;
33
# endif
34
#else
35
static
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
YARP_DEPRECATED_MSG
#define YARP_DEPRECATED_MSG(MSG)
Expands to either the standard [[deprecated]] attribute or a compiler-specific decorator such as __at...
Definition
compiler.h:2885
yarp::conf::filesystem
Definition
filesystem.h:10
yarp::conf::filesystem::preferred_separator
static constexpr value_type preferred_separator
Definition
filesystem.h:21
yarp::conf::filesystem::path_separator
static constexpr value_type path_separator
Definition
filesystem.h:35
yarp::conf::filesystem::value_type
char value_type
Definition
filesystem.h:20
api.h
YARP
3.11.100+20250323.9+gitd6ea616a8
src
libYARP_conf
src
yarp
conf
filesystem.h
Generated on Sun Mar 23 2025 02:39:18 for YARP by
1.9.8