NCBI C++ ToolKit
Public Member Functions | Private Attributes | List of all members
CTmpStreamGuard Class Reference

Search Toolkit Book for CTmpStreamGuard

Public Member Functions

 CTmpStreamGuard (const string &tmp_dir, const string &name, CNcbiOstream &orig_stream, bool cache_std_out_err)
 
 ~CTmpStreamGuard ()
 
CNcbiOstreamGetOStream ()
 
void Close ()
 

Private Attributes

CNcbiOstreamm_OrigStream
 
unique_ptr< CFileReaderWriterm_ReaderWriter
 
unique_ptr< CNcbiOstreamm_StreamGuard
 
CNcbiOstreamm_Stream
 
string m_Name
 

Detailed Description

Definition at line 824 of file exec_helpers.cpp.

Constructor & Destructor Documentation

◆ CTmpStreamGuard()

CTmpStreamGuard::CTmpStreamGuard ( const string tmp_dir,
const string name,
CNcbiOstream orig_stream,
bool  cache_std_out_err 
)
inline

◆ ~CTmpStreamGuard()

CTmpStreamGuard::~CTmpStreamGuard ( )
inline

Definition at line 861 of file exec_helpers.cpp.

References Close(), ERR_POST, and m_Name.

Member Function Documentation

◆ Close()

void CTmpStreamGuard::Close ( void  )
inline

◆ GetOStream()

CNcbiOstream& CTmpStreamGuard::GetOStream ( )
inline

Definition at line 872 of file exec_helpers.cpp.

References m_Stream.

Referenced by CRemoteAppLauncher::ExecRemoteApp().

Member Data Documentation

◆ m_Name

string CTmpStreamGuard::m_Name
private

Definition at line 895 of file exec_helpers.cpp.

Referenced by Close(), CTmpStreamGuard(), and ~CTmpStreamGuard().

◆ m_OrigStream

CNcbiOstream& CTmpStreamGuard::m_OrigStream
private

Definition at line 891 of file exec_helpers.cpp.

Referenced by Close(), and CTmpStreamGuard().

◆ m_ReaderWriter

unique_ptr<CFileReaderWriter> CTmpStreamGuard::m_ReaderWriter
private

Definition at line 892 of file exec_helpers.cpp.

Referenced by Close(), and CTmpStreamGuard().

◆ m_Stream

CNcbiOstream* CTmpStreamGuard::m_Stream
private

Definition at line 894 of file exec_helpers.cpp.

Referenced by CTmpStreamGuard(), and GetOStream().

◆ m_StreamGuard

unique_ptr<CNcbiOstream> CTmpStreamGuard::m_StreamGuard
private

Definition at line 893 of file exec_helpers.cpp.

Referenced by Close(), and CTmpStreamGuard().


The documentation for this class was generated from the following file:
Modified on Fri Sep 20 14:58:27 2024 by modify_doxy.py rev. 669887