AWS SDK for C++  1.9.129
AWS SDK for C++
Public Member Functions | List of all members
Aws::Utils::TempFile Class Reference

#include <FileSystemUtils.h>

+ Inheritance diagram for Aws::Utils::TempFile:

Public Member Functions

 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)
 
 ~TempFile ()
 
- Public Member Functions inherited from Aws::Utils::FStreamWithFileName
 FStreamWithFileName (const Aws::String &fileName, std::ios_base::openmode openFlags)
 
virtual ~FStreamWithFileName ()=default
 
const Aws::StringGetFileName () const
 

Additional Inherited Members

- Protected Attributes inherited from Aws::Utils::FStreamWithFileName
Aws::String m_fileName
 

Detailed Description

Provides a fstream around a temporary file. This file gets deleted upon an instance of this class's destructor being called.

Definition at line 34 of file FileSystemUtils.h.

Constructor & Destructor Documentation

◆ TempFile() [1/3]

Aws::Utils::TempFile::TempFile ( const char *  prefix,
const char *  suffix,
std::ios_base::openmode  openFlags 
)

Creates a temporary file with [prefix][temp name][suffix] e.g. prefix of "foo" and suffix of ".bar" will generate foo[some random string].bar

◆ TempFile() [2/3]

Aws::Utils::TempFile::TempFile ( const char *  prefix,
std::ios_base::openmode  openFlags 
)

Creates a temporary file with [prefix][temp name] e.g. prefix of "foo" will generate foo[some random string]

◆ TempFile() [3/3]

Aws::Utils::TempFile::TempFile ( std::ios_base::openmode  openFlags)

Creates a temporary file with a randome string for the name.

◆ ~TempFile()

Aws::Utils::TempFile::~TempFile ( )

The documentation for this class was generated from the following file: