AWS SDK for C++  1.9.175
AWS SDK for C++
FileSystemUtils.h
Go to the documentation of this file.
1 
5 #pragma once
10 
11 #include <fstream>
12 
13 namespace Aws
14 {
15  namespace Utils
16  {
17 
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 
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 
56  {
57  public:
58 
63 
68  };
69  }
70 }
Aws::Utils::PathUtils
Definition: FileSystemUtils.h:56
Aws::Utils::TempFile::TempFile
TempFile(const char *prefix, std::ios_base::openmode openFlags)
AWS_CORE_API
#define AWS_CORE_API
Definition: Core_EXPORTS.h:25
Aws::Utils::FStreamWithFileName::m_fileName
Aws::String m_fileName
Definition: FileSystemUtils.h:28
Aws::Utils::FStreamWithFileName
Definition: FileSystemUtils.h:19
AWSStreamFwd.h
Aws::Utils::FStreamWithFileName::~FStreamWithFileName
virtual ~FStreamWithFileName()=default
FileSystem.h
Aws::Utils::TempFile::~TempFile
~TempFile()
AWSString.h
Aws::Utils::FStreamWithFileName::FStreamWithFileName
FStreamWithFileName(const Aws::String &fileName, std::ios_base::openmode openFlags)
Definition: FileSystemUtils.h:21
Aws::Utils::PathUtils::GetFileNameFromPathWithExt
static Aws::String GetFileNameFromPathWithExt(const Aws::String &path)
Aws::Utils::PathUtils::GetFileNameFromPathWithoutExt
static Aws::String GetFileNameFromPathWithoutExt(const Aws::String &path)
Core_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Utils::FStreamWithFileName::GetFileName
const Aws::String & GetFileName() const
Definition: FileSystemUtils.h:26
Aws::Utils::TempFile::TempFile
TempFile(std::ios_base::openmode openFlags)
Aws::Utils::TempFile
Definition: FileSystemUtils.h:35
Aws::Utils::TempFile::TempFile
TempFile(const char *prefix, const char *suffix, std::ios_base::openmode openFlags)
Aws::FStream
std::basic_fstream< char, std::char_traits< char > > FStream
Definition: AWSStreamFwd.h:19