CS::NumberedFilenameHelper Class Reference
Helper to deal with numbered filename. More...
|csString||FindNextFilename (iVFS *vfs=0)|
|Returns the next unused filename. |
|Returns the filename with the next higher number. |
|NumberedFilenameHelper (const char *mask=0)|
|Initialize helper. |
|Resets the counter to 0. |
|void||SetMask (const char *mask)|
|Set the mask for the filename. |
Helper to deal with numbered filename.
Takes a mask for a filename, which can contain digits, as input and returns filenames with subsequently increasing numbers. Also can automatically pick an unused filename.
Constructor & Destructor Documentation
|CS::NumberedFilenameHelper::NumberedFilenameHelper||(||const char *|| mask =
Member Function Documentation
Returns the next unused filename.
vfs Pointer to VFS interface which is used to test for file existance. If 0, the real filesystem is used.
|void CS::NumberedFilenameHelper::SetMask||(||const char *||mask||)|
Set the mask for the filename.
The rightmost cluster of digits in the filename is replaced with the value of the counter. The format is chosen such that the digits are filled up with leading zeroes. If the filename does not contain any digits, the counter is inserted before the last dot or appended to the end of the name.
The documentation for this class was generated from the following file:
Generated for Crystal Space 1.4.1 by doxygen 1.7.1