LibreOffice Module configmgr (master) 1
Public Member Functions | Public Attributes | Private Member Functions | List of all members
configmgr::TempFile Struct Reference

#include <writemodfile.hxx>

Public Member Functions

 TempFile ()
 
 ~TempFile ()
 
void closeAndRename (const OUString &url)
 
oslFileError flush ()
 
void writeString (std::string_view text)
 

Public Attributes

OUString url
 
oslFileHandle handle
 
bool closed
 
OStringBuffer buffer
 

Private Member Functions

 TempFile (const TempFile &)=delete
 
TempFileoperator= (const TempFile &)=delete
 

Detailed Description

Definition at line 35 of file writemodfile.hxx.

Constructor & Destructor Documentation

◆ TempFile() [1/2]

configmgr::TempFile::TempFile ( )
inline

Definition at line 41 of file writemodfile.hxx.

◆ ~TempFile()

configmgr::TempFile::~TempFile ( )

Definition at line 77 of file writemodfile.cxx.

References closed, handle, SAL_WARN, and url.

◆ TempFile() [2/2]

configmgr::TempFile::TempFile ( const TempFile )
privatedelete

Member Function Documentation

◆ closeAndRename()

void configmgr::TempFile::closeAndRename ( const OUString &  url)

Definition at line 105 of file writemodfile.cxx.

References closed, flush(), handle, and url.

Referenced by configmgr::writeModFile().

◆ flush()

oslFileError configmgr::TempFile::flush ( )

Definition at line 124 of file writemodfile.cxx.

References buffer, and handle.

Referenced by closeAndRename(), and writeString().

◆ operator=()

TempFile & configmgr::TempFile::operator= ( const TempFile )
privatedelete

◆ writeString()

void configmgr::TempFile::writeString ( std::string_view  text)

Member Data Documentation

◆ buffer

OStringBuffer configmgr::TempFile::buffer

Definition at line 39 of file writemodfile.hxx.

Referenced by flush(), and writeString().

◆ closed

bool configmgr::TempFile::closed

Definition at line 38 of file writemodfile.hxx.

Referenced by closeAndRename(), and ~TempFile().

◆ handle

oslFileHandle configmgr::TempFile::handle

◆ url

OUString configmgr::TempFile::url

The documentation for this struct was generated from the following files: