|
Isis 3 Programmer Reference
|
10 #include <QSharedData>
16 template<
typename A,
typename B>
struct QPair;
115 QString
path()
const;
118 QString
name()
const;
216 QString
original(
bool includeAttributes)
const;
218 QString
expanded(
bool includeAttributes)
const;
222 QString *m_originalFileNameString;
226 QString *m_expandedFileNameString;
230 QSharedDataPointer<Data> m_d;
QString originalPath() const
Returns the path of the original file name.
QString fileNameQDatePattern() const
This changes the files format.
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
File name manipulation and expansion.
bool fileExists() const
Returns true if the file exists; false otherwise.
bool isDateVersioned() const
Checks if the file name is versioned by date.
QPair< QString, QString > splitNameAroundVersionNum() const
This returns a QPair of the text (before, after) a version number in a file.
~Data()
Destroys the Data object.
QString original(bool includeAttributes) const
Returns the original file name, stored in m_originalFileNameString.
FileName & operator=(const FileName &rhs)
Clears the current contents of the FileName object and reinitializes it with the argument.
static FileName createTempFile(FileName templateFileName="$TEMPORARY/temp")
Creates a temporary file and returns a FileName object created using the temporary file.
FileName newVersion() const
Updates the file name to be the latest version.
QString baseName() const
Returns the name of the file without the path and without extensions.
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
QString expanded(bool includeAttributes) const
Returns the expanded file name, stored in m_expandedFileNameString.
FileName addExtension(const QString &extension) const
Adds a new extension to the file name.
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
FileName()
Constructs an empty FileName object.
QDate highestVersionDate() const
This looks through the directory of the file and checks for the highest version date of the file that...
bool operator!=(const FileName &rhs)
Compares equality of two FileName objects.
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
~FileName()
Destroys the FileName object.
long highestVersionNum() const
This looks through the directory of the file and checks for the highest version number of the file th...
bool operator==(const FileName &rhs)
Compares equality of two FileName objects.
FileName removeExtension() const
Removes all extensions in the file name.
QString extension() const
Returns the last extension of the file name.
bool isNumericallyVersioned() const
Checks if the file name is versioned numerically.
This is free and unencumbered software released into the public domain.
Data()
Data constructor, creates a new Data object.
bool isVersioned() const
Checks to see if a file name is versioned by date or numerically.
FileName highestVersion() const
Searches the directory specified in the file name for the highest version of the file name.
QString original() const
Returns the full file name including the file path.
This is the reference-counted data for FileName.
FileName setExtension(const QString &extension) const
Sets all current file extensions to a new extension in the file name.
void setOriginal(const QString &originalStr)
Sets the original file name, stored in m_originalFileNameString.
QString path() const
Returns the path of the file name.
QString attributes() const
Returns a QString of the attributes in a filename, attributes are expected to be of type CubeAttribut...
This is free and unencumbered software released into the public domain.
void validateVersioningState() const
This verifies the class invariant when using versioning - that the FileName is in an acceptable state...
FileName version(long versionNumber) const
Returns a FileName object of the same file name but versioned numerically by the number passed in as ...