AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FileSystemUtils.h
1
5#pragma once
6#include <aws/core/Core_EXPORTS.h>
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/platform/FileSystem.h>
10
11#include <fstream>
12
13namespace Aws
14{
15 namespace Utils
16 {
17
18 class AWS_CORE_API FStreamWithFileName : public Aws::FStream
19 {
20 public:
21 FStreamWithFileName(const Aws::String& fileName, std::ios_base::openmode openFlags) :
22 Aws::FStream(fileName.c_str(), openFlags), m_fileName(fileName) {}
23
24 virtual ~FStreamWithFileName() = default;
25
26 const Aws::String& GetFileName() const { return m_fileName; }
27 protected:
29 };
30
34 class AWS_CORE_API TempFile : public Aws::Utils::FStreamWithFileName
35 {
36 public:
41 TempFile(const char* prefix, const char* suffix, std::ios_base::openmode openFlags);
46 TempFile(const char* prefix, std::ios_base::openmode openFlags);
50 TempFile(std::ios_base::openmode openFlags);
51
53 };
54
55 class AWS_CORE_API PathUtils
56 {
57 public:
58
63
68 };
69 }
70}
FStreamWithFileName(const Aws::String &fileName, std::ios_base::openmode openFlags)
virtual ~FStreamWithFileName()=default
const Aws::String & GetFileName() const
static Aws::String GetFileNameFromPathWithoutExt(const Aws::String &path)
static Aws::String GetFileNameFromPathWithExt(const Aws::String &path)
TempFile(const char *prefix, const char *suffix, std::ios_base::openmode openFlags)
TempFile(const char *prefix, std::ios_base::openmode openFlags)
TempFile(std::ios_base::openmode openFlags)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition AWSString.h:97
std::basic_fstream< char, std::char_traits< char > > FStream