22.05
Filesystem.hpp
Go to the documentation of this file.
1
//
2
// Copyright © 2020 Arm Ltd and Contributors. All rights reserved.
3
// SPDX-License-Identifier: MIT
4
//
5
6
#pragma once
7
#if !defined(ARMNN_DISABLE_FILESYSTEM)
8
9
#if defined(_MSC_VER)
10
// ghc includes Windows.h directly, bringing in macros that we don't want (e.g. min/max).
11
// By including Windows.h ourselves first (with appropriate options), we prevent this.
12
#include <common/include/WindowsWrapper.hpp>
13
#endif
14
#include <ghc/filesystem.hpp>
15
namespace
fs = ghc::filesystem;
16
17
namespace
armnnUtils
18
{
19
namespace
Filesystem
20
{
21
22
/// Returns a path to a file in the system temporary folder. If the file existed it will be deleted.
23
fs::path
NamedTempFile
(
const
char
* fileName);
24
25
}
// namespace armnnUtils
26
}
// namespace Filesystem
27
28
#endif // !defined(ARMNN_DISABLE_FILESYSTEM)
armnnUtils
Definition:
CompatibleTypes.hpp:10
armnnUtils::Filesystem::NamedTempFile
fs::path NamedTempFile(const char *fileName)
Returns a path to a file in the system temporary folder. If the file existed it will be deleted...
Definition:
Filesystem.cpp:24
include
armnnUtils
Filesystem.hpp
Generated on Tue May 24 2022 11:26:32 for ArmNN by
1.8.13