📄 fileconf.tex
字号:
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Name: fileconf.tex%% Purpose: wxFileConfig documentation%% Author: Vadim Zeitlin%% Modified by:%% Created: 2004-10-04%% RCS-ID: $Id: fileconf.tex,v 1.3 2005/02/22 15:09:50 ABX Exp $%% Copyright: (c) 2004 Vadim Zeitlin%% License: wxWindows license%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%\section{\class{wxFileConfig}}\label{wxfileconfig}wxFileConfig implements \helpref{wxConfigBase}{wxconfigbase} interface forstoring and retrieving configuration information using plain text files. Thefiles have a simple format reminiscent of Windows INI files with lines of theform \texttt{key = value} defining the keys and lines of special form\texttt{$[$group$]$} indicating the start of each group.This class is used by default for wxConfig on Unix platforms but may also beused explicitly if you want to use files and not the registry even underWindows.\wxheading{Derived from}\helpref{wxConfigBase}{wxconfigbase}\wxheading{Include files}<wx/fileconf.h>\helponly{\insertatlevel{2}{\wxheading{Members}}}\membersection{wxFileConfig::wxFileConfig}\label{wxfileconfigctor}\func{}{wxFileConfig}{\param{wxInputStream\& }{is}, \param{wxMBConv\& }{conv = wxConvUTF8}}Read the config data from the specified stream instead of the associated file,as usual.\wxheading{See also}\helpref{Save}{wxfileconfigsave}\membersection{wxFileConfig::Save}\label{wxfileconfigsave}\func{bool}{Save}{\param{wxOutputStream\& }{os}, \param{wxMBConv\& }{conv = wxConvUTF8}}Saves all config data to the given stream, returns \true if data was savedsuccessfully or \false on error.Note the interaction of this function with the internal ``dirty flag'': thedata is saved unconditionally, i.e. even if the object is not dirty. Howeverafter saving it successfully, the dirty flag is reset so no changes will bewritten back to the file this object is associated with until you change itscontents again.\wxheading{See also}\helpref{Flush}{wxconfigbaseflush}\membersection{wxFileConfig::SetUmask}\label{wxfileconfigsetumask}\func{void}{SetUmask}{\param{int }{mode}}Allows to set the mode to be used for the config file creation. For example, tocreate a config file which is not readable by other users (useful if it storessome sensitive information, such as passwords), you could use {\tt SetUmask(0077)}.This function doesn't do anything on non-Unix platforms.\wxheading{See also}\helpref{wxCHANGE\_UMASK}{wxchangeumask}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -