]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/filename.tex
Removed Aqua style from docs.
[wxWidgets.git] / docs / latex / wx / filename.tex
CommitLineData
2569938d
VZ
1%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
2%% Name: filename.tex
3%% Purpose: wxFileName documentation
4%% Author: Vadim Zeitlin
5%% Modified by:
6%% Created: 30.11.01
7%% RCS-ID: $Id$
8%% Copyright: (c) 2001 Vadim Zeitlin
9%% License: wxWindows license
10%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
11
12\section{\class{wxFileName}}\label{wxfilename}
13
14wxFileName encapsulates a file name. This class serves two purposes: first, it
15provides the functions to split the file names into components and to recombine
16these components in the full file name which can then be passed to the OS file
17functions (and \helpref{wxWindows functions}{filefunctions} wrapping them).
18Second, it includes the functions for working with the files itself. Note that
19to change the file data you should use \helpref{wxFile}{wxfile} class instead,
20wxFileName provides functions for working with the file attributes.
21
22\wxheading{Derived from}
23
24No base class
25
26\wxheading{Data structures}
27
28Many wxFileName methods accept the path format argument which is by\rtfsp
29{\tt wxPATH\_NATIVE} by default meaning to use the path format native for the
30current platform.
31
32The path format affects the operation of wxFileName functions in several ways:
33first and foremost, it defines the path separator character to use, but it also
34affects other things such as whether the path has the drive part or not.
35
36\begin{verbatim}
37enum wxPathFormat
38{
39 wxPATH_NATIVE = 0, // the path format for the current platform
40 wxPATH_UNIX,
41 wxPATH_MAC,
42 wxPATH_DOS,
43 wxPATH_VMS,
44
45 wxPATH_BEOS = wxPATH_UNIX,
46 wxPATH_WIN = wxPATH_DOS,
47 wxPATH_OS2 = wxPATH_DOS
48}
49\end{verbatim}
50
51The kind of normalization to do with the file name: these values can be
52or'd together to perform several operations at once in\rtfsp
53\helpref{Normalize}{wxfilenamenormalize}.
54
55\begin{verbatim}
56enum wxPathNormalize
57{
58 wxPATH_NORM_ENV_VARS = 0x0001, // replace env vars with their values
59 wxPATH_NORM_DOTS = 0x0002, // squeeze all .. and . and prepend cwd
60 wxPATH_NORM_TILDE = 0x0004, // Unix only: replace ~ and ~user
61 wxPATH_NORM_CASE = 0x0008, // if case insensitive => tolower
62 wxPATH_NORM_ABSOLUTE = 0x0010, // make the path absolute
63 wxPATH_NORM_LONG = 0x0020, // make the path the long form
64 wxPATH_NORM_ALL = 0x003f
65}
66\end{verbatim}
67
6f91bc33
VZ
68\latexignore{\rtfignore{\wxheading{Function groups}}}
69
70\membersection{File name format}
71
72wxFileName currently supports the file names in the Unix, DOS/Windows, Mac OS
73and VMS formats. Although these formats are quite different, wxFileName tries
74to treat them all in the sam generic way. It supposes that all file names
75consist of the following parts: the volume (also known as drive under Windows
76or device under VMS), the path which is a sequence of directory names separated
77by the \helpref{path separators}{wxfilenamegetpathseparators} and the full
78filename itself which, in turn, is composed from the base file name and the
79extension. All of the individual components of the file name may be empty and,
80for example, the volume name is always empty under Unix, but if they are all
81empty simultaneously, the filename object is considered to be in an invalid
82state and \helpref{IsOk}{wxfilenameisok} returns {\tt FALSE} for it.
83
84File names can be case-sensitive or not, the function\rtfsp
85\helpref{IsCaseSensitive}{wxfilenameiscasesensitive} allows to determine this.
86
87The rules for determining if the file name is absolute or relative also depends
88on the file name format and the only portable way to answer to this question is
89to use \helpref{IsAbsolute}{wxfilenameisabsolute} method. To ensure that the
f7d886af
VZ
90filename is absolute you may use \helpref{Normalize}{wxfilenamenormalize}. There
91is also an inverse function \helpref{MakeRelativeTo}{wxfilenamemakerelativeto}
92which undoes what \helpref{Normalize(wxPATH\_NORM\_DOTS}{wxfilenamenormalize}
93does.
6f91bc33
VZ
94
95Other functions returning information about the file format provided by this
96class are \helpref{GetVolumeSeparator}{wxfilenamegetvolumeseparator},\rtfsp
97\helpref{IsPathSeparator}{wxfilenameispathseparator} and\rtfsp
98\helpref{IsWild}{wxfilenameiswild}.
99
100\helpref{IsRelative}{wxfilenameisrelative}
101
102\membersection{File name construction}
103
104TODO.
105
106\membersection{File tests}
107
108Before doing the other tests you should use \helpref{IsOk}{wxfilenameisok} to
109verify that the filename is well defined. If it is,
110\helpref{FileExists}{wxfilenamefileexists} can be used to test if a file with
111such name exists and \helpref{DirExists}{wxfilenamedirexists} - if a directory
112with this name exists.
113
114File names should be compared using \helpref{SameAs}{wxfilenamesameas} method
115or \helpref{$==$}{wxfilenameoperatorequal}.
116
117\membersection{File name components}
118
119These functions allow to examine and modify the directories of the path:
120
121\helpref{AppendDir}{wxfilenameappenddir}\\
122\helpref{InsertDir}{wxfilenameinsertdir}\\
123\helpref{GetDirCount}{wxfilenamegetdircount}
124\helpref{PrependDir}{wxfilenameprependdir}\\
125\helpref{RemoveDir}{wxfilenameremovedir}
126
127To change the components of the file name individually you can use the
128following functions:
129
130\helpref{GetExt}{wxfilenamegetext}\\
131\helpref{GetName}{wxfilenamegetname}\\
132\helpref{GetVolume}{wxfilenamegetvolume}\\
133\helpref{HasExt}{wxfilenamehasext}\\
134\helpref{HasName}{wxfilenamehasname}\\
135\helpref{HasVolume}{wxfilenamehasvolume}\\
136\helpref{SetExt}{wxfilenamesetext}\\
137\helpref{SetName}{wxfilenamesetname}\\
138\helpref{SetVolume}{wxfilenamesetvolume}\\
139
140\membersection{Operations}
141
142These methods allow to work with the file creation, access and modification
143times:
144
145\helpref{GetModificationTime}{wxfilenamegetmodificationtime}\\
146\helpref{GetTimes}{wxfilenamegettimes}\\
147\helpref{SetTimes}{wxfilenamesettimes}\\
148\helpref{Touch}{wxfilenametouch}
149
150Other file system operations functions are:
151
152\helpref{Mkdir}{wxfilenamemkdir}\\
153\helpref{Rmdir}{wxfilenamermdir}
154
2569938d
VZ
155\latexignore{\rtfignore{\wxheading{Members}}}
156
6f91bc33 157\membersection{wxFileName::wxFileName}\label{wxfilenamewxfilename}
2569938d
VZ
158
159\func{}{wxFileName}{\void}
160
161Default constructor.
162
2569938d
VZ
163\func{}{wxFileName}{\param{const wxFileName\& }{filename}}
164
165Copy constructor.
166
2569938d
VZ
167\func{}{wxFileName}{\param{const wxString\& }{fullpath}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
168
6f91bc33 169From a full filename: if it terminates with a '/', a directory path
2569938d
VZ
170is contructed (the name will be empty), otherwise a file name and
171extension are extracted from it
172
2569938d
VZ
173\func{}{wxFileName}{\param{const wxString\& }{path}, \param{const wxString\& }{name}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
174
6f91bc33 175Constructor from a directory name and a file name.
2569938d
VZ
176
177\func{}{wxFileName}{\param{const wxString\& }{path}, \param{const wxString\& }{name}, \param{const wxString\& }{ext}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
178
81f25632
VZ
179Constructor from a directory name, base file name and extension
180
181\func{}{wxFileName}{\param{const wxString\& }{volume}, \param{const wxString\& }{path}, \param{const wxString\& }{name}, \param{const wxString\& }{ext}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
182
183Constructor from a volume name, a directory name, base file name and extension
2569938d
VZ
184
185\membersection{wxFileName::AppendDir}\label{wxfilenameappenddir}
186
187\func{void}{AppendDir}{\param{const wxString\& }{dir}}
188
189
190\membersection{wxFileName::Assign}\label{wxfilenameassign}
191
192\func{void}{Assign}{\param{const wxFileName\& }{filepath}}
193
2569938d
VZ
194\func{void}{Assign}{\param{const wxString\& }{fullpath}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
195
2569938d
VZ
196\func{void}{Assign}{\param{const wxString\& }{volume}, \param{const wxString\& }{path}, \param{const wxString\& }{name}, \param{const wxString\& }{ext}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
197
2569938d
VZ
198\func{void}{Assign}{\param{const wxString\& }{path}, \param{const wxString\& }{name}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
199
2569938d
VZ
200\func{void}{Assign}{\param{const wxString\& }{path}, \param{const wxString\& }{name}, \param{const wxString\& }{ext}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
201
202
203\membersection{wxFileName::AssignCwd}\label{wxfilenameassigncwd}
204
6f91bc33
VZ
205\func{void}{AssignCwd}{\param{const wxString\& }{volume = ""}}
206
207Makes this object refer to the current working directory on the specified
208volume (or current volume if {\it volume} is empty).
2569938d 209
6f91bc33 210\wxheading{See also}
2569938d 211
6f91bc33 212\helpref{GetCwd}{wxfilenamegetcwd}
2569938d
VZ
213
214\membersection{wxFileName::AssignDir}\label{wxfilenameassigndir}
215
216\func{void}{AssignDir}{\param{const wxString\& }{dir}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
217
81f25632
VZ
218Set this file name object to the given directory name. The name and extension
219will be empty.
2569938d
VZ
220
221\membersection{wxFileName::AssignHomeDir}\label{wxfilenameassignhomedir}
222
223\func{void}{AssignHomeDir}{\void}
224
81f25632 225Set this file name object to the home directory.
2569938d
VZ
226
227\membersection{wxFileName::AssignTempFileName}\label{wxfilenameassigntempfilename}
228
229\func{void}{AssignTempFileName}{\param{const wxString\& }{prefix}}
230
ade35f11
VZ
231The function calls \helpref{CreateTempFileName}{wxfilenamecreatetempfilename} to
232create a temporary file and sets this object to the name of the file. If a
233temporary file couldn't be created, the object is put into the\rtfsp
234\helpref{invalid}{wxfilenameisok} state.
2569938d
VZ
235
236\membersection{wxFileName::Clear}\label{wxfilenameclear}
237
238\func{void}{Clear}{\void}
239
ade35f11
VZ
240Reset all components to default, uninitialized state.
241
02a3b391 242\membersection{wxFileName::CreateTempFileName}\label{wxfilenamecreatetempfilename}
ade35f11
VZ
243
244\func{static wxString}{CreateTempFileName}{\param{const wxString\& }{prefix}}
245
246Returns a temporary file name starting with the given {\it prefix}. If
247the {\it prefix} is an absolute path, the temporary file is created in this
248directory, otherwise it is created in the default system directory for the
249temporary files or in the current directory.
2569938d 250
ade35f11
VZ
251If the function succeeds, the temporary file is actually created (but not
252opened) as well. Under Unix, it will have read and write permissions for the
253owner only.
254
255\wxheading{Return value}
256
257The full temporary file name or an empty string on error.
2569938d
VZ
258
259\membersection{wxFileName::DirExists}\label{wxfilenamedirexists}
260
261\func{bool}{DirExists}{\void}
262
2569938d
VZ
263\func{bool}{DirExists}{\param{const wxString\& }{dir}}
264
02a3b391 265Does the directory with this name exists?
2569938d
VZ
266
267\membersection{wxFileName::DirName}\label{wxfilenamedirname}
268
269\func{wxFileName}{DirName}{\param{const wxString\& }{dir}}
270
2569938d
VZ
271\membersection{wxFileName::FileExists}\label{wxfilenamefileexists}
272
273\func{bool}{FileExists}{\void}
274
2569938d
VZ
275\func{bool}{FileExists}{\param{const wxString\& }{file}}
276
02a3b391 277Does the file with this name exists?
2569938d
VZ
278
279\membersection{wxFileName::FileName}\label{wxfilenamefilename}
280
281\func{wxFileName}{FileName}{\param{const wxString\& }{file}}
282
283static pseudo constructors
284
2569938d
VZ
285\membersection{wxFileName::GetCwd}\label{wxfilenamegetcwd}
286
6f91bc33
VZ
287\func{wxString}{GetCwd}{\param{const wxString\& }{volume = ""}}
288
289Retrieve the value of the current working directory on the specified volume. If
290the volume is empty, the programs current working directory is returned for the
291current volume.
292
293\wxheading{Return value}
294
295The string containing the current working directory or an empty string on
296error.
2569938d 297
6f91bc33
VZ
298\wxheading{See also}
299
300\helpref{AssignCwd}{wxfilenameassigncwd}
2569938d
VZ
301
302\membersection{wxFileName::GetDirCount}\label{wxfilenamegetdircount}
303
304\constfunc{size\_t}{GetDirCount}{\void}
305
306
307\membersection{wxFileName::GetDirs}\label{wxfilenamegetdirs}
308
309\constfunc{const wxArrayString\&}{GetDirs}{\void}
310
311
312\membersection{wxFileName::GetExt}\label{wxfilenamegetext}
313
314\constfunc{wxString}{GetExt}{\void}
315
316
317\membersection{wxFileName::GetFormat}\label{wxfilenamegetformat}
318
319\func{wxPathFormat}{GetFormat}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
320
321various helpers
322get the canonical path format for this platform
323
324
325\membersection{wxFileName::GetFullName}\label{wxfilenamegetfullname}
326
327\constfunc{wxString}{GetFullName}{\void}
328
329
330\membersection{wxFileName::GetFullPath}\label{wxfilenamegetfullpath}
331
332\constfunc{wxString}{GetFullPath}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
333
334add separator Construct full path with name and ext
335
336
337\membersection{wxFileName::GetHomeDir}\label{wxfilenamegethomedir}
338
339\func{wxString}{GetHomeDir}{\void}
340
341
342\membersection{wxFileName::GetLongPath}\label{wxfilenamegetlongpath}
343
344\constfunc{wxString}{GetLongPath}{\void}
345
346Return the long form of the path (returns identity on non-Windows platforms)
347
348
349\membersection{wxFileName::GetModificationTime}\label{wxfilenamegetmodificationtime}
350
351\constfunc{wxDateTime}{GetModificationTime}{\void}
352
353convenience wrapper: get just the last mod time of the file
354
355
356\membersection{wxFileName::GetName}\label{wxfilenamegetname}
357
358\constfunc{wxString}{GetName}{\void}
359
360
361\membersection{wxFileName::GetPath}\label{wxfilenamegetpath}
362
363\constfunc{wxString}{GetPath}{\param{bool }{add\_separator = FALSE}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
364
365Construct path only - possibly with the trailing separator
366
367
368\membersection{wxFileName::GetPathSeparators}\label{wxfilenamegetpathseparators}
369
370\func{wxString}{GetPathSeparators}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
371
372get the string of path separators for this format
373
374
375\membersection{wxFileName::GetPathWithSep}\label{wxfilenamegetpathwithsep}
376
377\constfunc{wxString}{GetPathWithSep}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
378
379more readable synonym
380
381
382\membersection{wxFileName::GetShortPath}\label{wxfilenamegetshortpath}
383
384\constfunc{wxString}{GetShortPath}{\void}
385
386Return the short form of the path (returns identity on non-Windows platforms)
387
388
389\membersection{wxFileName::GetTimes}\label{wxfilenamegettimes}
390
391\constfunc{bool}{GetTimes}{\param{wxDateTime* }{dtAccess}, \param{wxDateTime* }{dtMod}, \param{wxDateTime* }{dtChange}}
392
393return the last access, last modification and last change times
394(any of the pointers may be NULL)
395
396
397\membersection{wxFileName::GetVolume}\label{wxfilenamegetvolume}
398
399\constfunc{wxString}{GetVolume}{\void}
400
401
402\membersection{wxFileName::GetVolumeSeparator}\label{wxfilenamegetvolumeseparator}
403
404\func{wxString}{GetVolumeSeparator}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
405
406get the string separating the volume from the path for this format
407
408
409\membersection{wxFileName::HasExt}\label{wxfilenamehasext}
410
411\constfunc{bool}{HasExt}{\void}
412
413
414\membersection{wxFileName::HasName}\label{wxfilenamehasname}
415
416\constfunc{bool}{HasName}{\void}
417
418
419\membersection{wxFileName::HasVolume}\label{wxfilenamehasvolume}
420
421\constfunc{bool}{HasVolume}{\void}
422
423
424\membersection{wxFileName::InsertDir}\label{wxfilenameinsertdir}
425
426\func{void}{InsertDir}{\param{int }{before}, \param{const wxString\& }{dir}}
427
428
429\membersection{wxFileName::IsAbsolute}\label{wxfilenameisabsolute}
430
431\func{bool}{IsAbsolute}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
432
433is this filename absolute?
434
435
436\membersection{wxFileName::IsCaseSensitive}\label{wxfilenameiscasesensitive}
437
438\func{bool}{IsCaseSensitive}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
439
440Tests
441are the file names of this type cases sensitive?
442
443
444\membersection{wxFileName::IsOk}\label{wxfilenameisok}
445
446\constfunc{bool}{IsOk}{\void}
447
ade35f11
VZ
448Returns {\tt TRUE} if the filename is valid, {\tt FALSE} if it is not
449initialized yet. The assignment functions and
450\helpref{Clear}{wxfilenameclear} may reset the object to the uninitialized,
451invalid state (the former only do it on failure).
2569938d
VZ
452
453\membersection{wxFileName::IsPathSeparator}\label{wxfilenameispathseparator}
454
455\func{bool}{IsPathSeparator}{\param{wxChar }{ch}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
456
f7d886af 457Returns {\tt TRUE} if the char is a path separator for this format.
2569938d
VZ
458
459\membersection{wxFileName::IsRelative}\label{wxfilenameisrelative}
460
461\func{bool}{IsRelative}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
462
f7d886af 463Returns {\tt TRUE} if this filename is not absolute.
2569938d
VZ
464
465\membersection{wxFileName::IsWild}\label{wxfilenameiswild}
466
467\func{bool}{IsWild}{\param{wxPathFormat }{format = wxPATH\_NATIVE}}
468
469FIXME: what exactly does this do?
470
f7d886af
VZ
471\membersection{wxFileName::MakeRelativeTo}\label{wxfilenamemakerelativeto}
472
473\func{bool}{MakeRelativeTo}{\param{const wxString\& }{pathBase = ""}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
474
475This function tries to put this file name in a form relative to {\it pathBase}.
476In other words, it returns the file name which should be used to access this
477file if the current directory were {\it pathBase}.
478
479\docparam{pathBase}{the directory to use as root, current directory is used by
480default}
481
482\docparam{format}{the file name format, native by default}
483
484\wxheading{Return value}
485
486{\tt TRUE} if the file name has been changed, {\tt FALSE} if we failed to do
487anything with it (currently this only happens if the file name is on a volume
488different from the volume specified by {\it pathBase}).
489
490\wxheading{See also}
491
492\helpref{Normalize}{wxfilenamenormalize}
2569938d
VZ
493
494\membersection{wxFileName::Mkdir}\label{wxfilenamemkdir}
495
496\func{bool}{Mkdir}{\param{int }{perm = 0777}, \param{bool }{full = FALSE}}
497
6f91bc33 498\func{static bool}{Mkdir}{\param{const wxString\& }{dir}, \param{int }{perm = 0777}, \param{bool }{full = FALSE}}
2569938d 499
6f91bc33 500\docparam{dir}{the directory to create}
2569938d 501
6f91bc33
VZ
502\docparam{parm}{the permissions for the newly created directory}
503
504\docparam{full}{if {\tt TRUE}, will try to make each directory in the path}
2569938d 505
6f91bc33 506\wxheading{Return value}
2569938d 507
6f91bc33
VZ
508Returns {\tt TRUE} if the directory was successfully created, {\tt FALSE}
509otherwise.
2569938d
VZ
510
511\membersection{wxFileName::Normalize}\label{wxfilenamenormalize}
512
513\func{bool}{Normalize}{\param{wxPathNormalize }{flags = wxPATH\_NORM\_ALL}, \param{const wxString\& }{cwd = wxEmptyString}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
514
515operations on the path
516normalize the path: with the default flags value, the path will be
517made absolute, without any ".." and "." and all environment
518variables will be expanded in it
519this may be done using another (than current) value of cwd
520
521
522\membersection{wxFileName::PrependDir}\label{wxfilenameprependdir}
523
524\func{void}{PrependDir}{\param{const wxString\& }{dir}}
525
526
527\membersection{wxFileName::RemoveDir}\label{wxfilenameremovedir}
528
529\func{void}{RemoveDir}{\param{int }{pos}}
530
531
532\membersection{wxFileName::Rmdir}\label{wxfilenamermdir}
533
534\func{bool}{Rmdir}{\void}
535
6f91bc33 536\func{static bool}{Rmdir}{\param{const wxString\& }{dir}}
2569938d 537
6f91bc33 538Deletes the specified directory.
2569938d
VZ
539
540
541\membersection{wxFileName::SameAs}\label{wxfilenamesameas}
542
543\func{bool}{SameAs}{\param{const wxFileName\& }{filepath}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
544
6f91bc33 545Compares the filename using the rules of this platform
2569938d
VZ
546
547
548\membersection{wxFileName::SetCwd}\label{wxfilenamesetcwd}
549
550\func{bool}{SetCwd}{\void}
551
6f91bc33 552\func{static bool}{SetCwd}{\param{const wxString\& }{cwd}}
2569938d 553
6f91bc33 554change the current working directory
2569938d
VZ
555
556\membersection{wxFileName::SetExt}\label{wxfilenamesetext}
557
558\func{void}{SetExt}{\param{const wxString\& }{ext}}
559
560
561\membersection{wxFileName::SetFullName}\label{wxfilenamesetfullname}
562
563\func{void}{SetFullName}{\param{const wxString\& }{fullname}}
564
565full name is the file name + extension (but without the path)
566
567
568\membersection{wxFileName::SetName}\label{wxfilenamesetname}
569
570\func{void}{SetName}{\param{const wxString\& }{name}}
571
572
573\membersection{wxFileName::SetTimes}\label{wxfilenamesettimes}
574
575\func{bool}{SetTimes}{\param{const wxDateTime* }{dtCreate}, \param{const wxDateTime* }{dtAccess}, \param{const wxDateTime* }{dtMod}}
576
577set the file creation and last access/mod times
578(any of the pointers may be NULL)
579
580
581\membersection{wxFileName::SetVolume}\label{wxfilenamesetvolume}
582
583\func{void}{SetVolume}{\param{const wxString\& }{volume}}
584
585
586\membersection{wxFileName::SplitPath}\label{wxfilenamesplitpath}
587
588\func{void}{SplitPath}{\param{const wxString\& }{fullpath}, \param{wxString* }{volume}, \param{wxString* }{path}, \param{wxString* }{name}, \param{wxString* }{ext}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
589
590\func{void}{SplitPath}{\param{const wxString\& }{fullpath}, \param{wxString* }{path}, \param{wxString* }{name}, \param{wxString* }{ext}, \param{wxPathFormat }{format = wxPATH\_NATIVE}}
591
592split a fullpath into the volume, path, (base) name and extension
593(all of the pointers can be NULL)
594
595\membersection{wxFileName::Touch}\label{wxfilenametouch}
596
597\func{bool}{Touch}{\void}
598
599set the access and modification times to the current moment
600
601
602\membersection{wxFileName::operator=}\label{wxfilenameoperatorassign}
603
604\func{wxFileName\& operator}{operator=}{\param{const wxFileName\& }{filename}}
605
2569938d
VZ
606\func{wxFileName\& operator}{operator=}{\param{const wxString\& }{filename}}
607
6f91bc33 608Assigns the new value to this filename object.
2569938d
VZ
609
610\membersection{wxFileName::operator==}\label{wxfilenameoperatorequal}
611
612\func{bool operator}{operator==}{\param{const wxFileName\& }{filename}}
613
2569938d
VZ
614\func{bool operator}{operator==}{\param{const wxString\& }{filename}}
615
6f91bc33
VZ
616Returns {\tt TRUE} if the filenames are equal for the native file format.
617