⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tempfilestrm.tex

📁 很牛的GUI源码wxWidgets-2.8.0.zip 可在多种平台下运行.
💻 TEX
字号:
%% automatically generated by HelpGen $Revision: 1.2 $ from% wx/wfstream.h at 07/Mar/05 20:45:33%\section{\class{wxTempFileOutputStream}}\label{wxtempfileoutputstream}wxTempFileOutputStream is an output stream based on \helpref{wxTempFile}{wxtempfile}. Itprovides a relatively safe way to replace the contents of theexisting file.\wxheading{Derived from}\helpref{wxOutputStream}{wxoutputstream}\wxheading{Include files}<wx/wfstream.h>\wxheading{See also}\helpref{wxTempFile}{wxtempfile}\latexignore{\rtfignore{\wxheading{Members}}}\membersection{wxTempFileOutputStream::wxTempFileOutputStream}\label{wxtempfileoutputstreamwxtempfileoutputstream}\func{}{wxTempFileOutputStream}{\param{const wxString\& }{fileName}}Associates wxTempFileOutputStream with the file to be replaced and opens it. You should use \helpref{IsOk}{wxstreambaseisok} to verify if the constructor succeeded.Call \helpref{Commit()}{wxtempfileoutputstreamcommit} or \helpref{Close()}{wxoutputstreamclose} toreplace the old file and close this one. Calling \helpref{Discard()}{wxtempfileoutputstreamdiscard} (or allowing the destructor to do it) will discard the changes.\membersection{wxTempFileOutputStream::Commit}\label{wxtempfileoutputstreamcommit}\func{bool}{Commit}{\void}Validate changes: deletes the old file of the given name and renames the newfile to the old name. Returns {\tt true} if both actions succeeded. If {\tt false} isreturned it may unfortunately mean two quite different things: either thateither the old file couldn't be deleted or that the new file couldn't be renamedto the old name.\membersection{wxTempFileOutputStream::Discard}\label{wxtempfileoutputstreamdiscard}\func{void}{Discard}{\void}Discard changes: the old file contents are not changed, the temporary file isdeleted.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -