|
Isis Developer Reference
|
Go to the documentation of this file.
10 #include <QSharedData>
16 template<
typename A,
typename B>
struct QPair;
115 QString
path()
const;
118 QString
name()
const;
187 FileName version(
long versionNumber)
const;
188 FileName version(QDate versionDate)
const;
189 QDate highestVersionDate()
const;
190 long highestVersionNum()
const;
191 void validateVersioningState()
const;
192 QString fileNameQDatePattern()
const;
210 Data(
const Data &other);
216 QString
original(
bool includeAttributes)
const;
217 void setOriginal(
const QString &originalStr);
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.
Definition: FileName.cpp:84
PvlGroupIterator findGroup(const QString &name, PvlGroupIterator beg, PvlGroupIterator end)
Find a group with the specified name, within these indexes.
Definition: PvlObject.h:129
@ Io
A type of error that occurred when performing an actual I/O operation.
Definition: IException.h:155
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:162
File name manipulation and expansion.
Definition: FileName.h:100
@ Unknown
A type of error that cannot be classified as any of the other error types.
Definition: IException.h:118
bool fileExists() const
Returns true if the file exists; false otherwise.
Definition: FileName.cpp:449
bool isDateVersioned() const
Checks if the file name is versioned by date.
Definition: FileName.cpp:303
FileName & operator=(const FileName &rhs)
Clears the current contents of the FileName object and reinitializes it with the argument.
Definition: FileName.cpp:527
static FileName createTempFile(FileName templateFileName="$TEMPORARY/temp")
Creates a temporary file and returns a FileName object created using the temporary file.
Definition: FileName.cpp:478
FileName newVersion() const
Updates the file name to be the latest version.
Definition: FileName.cpp:348
QString baseName() const
Returns the name of the file without the path and without extensions.
Definition: FileName.cpp:145
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:196
FileName addExtension(const QString &extension) const
Adds a new extension to the file name.
Definition: FileName.cpp:225
#define _FILEINFO_
Macro for the filename and line number.
Definition: IException.h:24
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:465
FileName()
Constructs an empty FileName object.
Definition: FileName.cpp:31
Isis exception class.
Definition: IException.h:91
bool operator!=(const FileName &rhs)
Compares equality of two FileName objects.
Definition: FileName.cpp:568
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:515
~FileName()
Destroys the FileName object.
Definition: FileName.cpp:66
bool operator==(const FileName &rhs)
Compares equality of two FileName objects.
Definition: FileName.cpp:540
FileName removeExtension() const
Removes all extensions in the file name.
Definition: FileName.cpp:246
QString extension() const
Returns the last extension of the file name.
Definition: FileName.cpp:178
bool isNumericallyVersioned() const
Checks if the file name is versioned numerically.
Definition: FileName.cpp:293
Namespace for the standard library.
This is free and unencumbered software released into the public domain.
Definition: CubeIoHandler.h:23
bool isVersioned() const
Checks to see if a file name is versioned by date or numerically.
Definition: FileName.cpp:281
static Preference & Preferences(bool unitTest=false)
Definition: Preference.cpp:86
FileName highestVersion() const
Searches the directory specified in the file name for the highest version of the file name.
Definition: FileName.cpp:313
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:212
FileName setExtension(const QString &extension) const
Sets all current file extensions to a new extension in the file name.
Definition: FileName.cpp:265
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:103
QString attributes() const
Returns a QString of the attributes in a filename, attributes are expected to be of type CubeAttribut...
Definition: FileName.cpp:121
This is free and unencumbered software released into the public domain.
Definition: Apollo.h:16