Feature #1599
Add GFilename class
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assigned To: | Knödlseder Jürgen | % Done: | 100% | |
Category: | - | |||
Target version: | - | |||
Duration: |
Description
Add GFilename
class to replace ultimately all std::string
argument used for filenames.
std::string
constructor and implement at least the following methods:
empty
: true if filename is empty, false otherwise (to emulatestd::string
)size
: length of the filename (to emulatestd::string
)length
: length of the filename (to emulatestd::string
)clear
: length of the filename (to emulatestd::string
)filename
: return filename partextname
: return extname part (empty is it does not exist)extno
: return extno part (-1 if it does not exist)extver
: return extvar part (-1 if it does not exist)has_extname
: true if extname was foundhas_extno
: true if extno was foundhas_extver
: true if extver was founddefault_extname
: set default extname if no extname par was found (allows setting default extname and have it ovrewritten by the user choice)
The goal of the emulation methods is to not alter the user interface when replacing std::string
by GFilename
.
I do not propose to replace std::string
by GFilename
in release 1.0, but I propose to implement the class and use it internally to handle the CTA response files.
Recurrence
No recurrence.
History
#1 Updated by Knödlseder Jürgen almost 9 years ago
- Status changed from New to Closed
- Assigned To set to Knödlseder Jürgen
- % Done changed from 0 to 100
Implemented and merged into devel
.