26 #include <QSharedData> 32 template<
typename A,
typename B>
struct QPair;
131 QString
path()
const;
134 QString
name()
const;
203 FileName version(
long versionNumber)
const;
204 FileName version(QDate versionDate)
const;
205 QDate highestVersionDate()
const;
206 long highestVersionNum()
const;
207 void validateVersioningState()
const;
208 QString fileNameQDatePattern()
const;
226 Data(
const Data &other);
232 QString
original(
bool includeAttributes)
const;
233 void setOriginal(
const QString &originalStr);
234 QString
expanded(
bool includeAttributes)
const;
238 QString *m_originalFileNameString;
242 QString *m_expandedFileNameString;
246 QSharedDataPointer<Data> m_d;
QString path() const
Returns the path of the file name.
Definition: FileName.cpp:119
File name manipulation and expansion.
Definition: FileName.h:116
FileName newVersion() const
Updates the file name to be the latest version.
Definition: FileName.cpp:364
FileName addExtension(const QString &extension) const
Adds a new extension to the file name.
Definition: FileName.cpp:241
QString name() const
Returns the name of the file excluding the path and the attributes in the file name.
Definition: FileName.cpp:178
bool isDateVersioned() const
Checks if the file name is versioned by date.
Definition: FileName.cpp:319
QString originalPath() const
Returns the path of the original file name.
Definition: FileName.cpp:100
QString expanded() const
Returns a QString of the full file name including the file path, excluding the attributes.
Definition: FileName.cpp:212
QString original() const
Returns the full file name including the file path.
Definition: FileName.cpp:228
QDir dir() const
Returns the path of the file's parent directory as a QDir object.
Definition: FileName.cpp:481
FileName & operator=(const FileName &rhs)
Clears the current contents of the FileName object and reinitializes it with the argument.
Definition: FileName.cpp:543
bool operator!=(const FileName &rhs)
Compares equality of two FileName objects.
Definition: FileName.cpp:584
QString baseName() const
Returns the name of the file without the path and without extensions.
Definition: FileName.cpp:161
QString toString() const
Returns a QString of the full file name including the file path, excluding the attributes with any Is...
Definition: FileName.cpp:531
FileName highestVersion() const
Searches the directory specified in the file name for the highest version of the file name...
Definition: FileName.cpp:329
~FileName()
Destroys the FileName object.
Definition: FileName.cpp:82
FileName setExtension(const QString &extension) const
Sets all current file extensions to a new extension in the file name.
Definition: FileName.cpp:281
FileName()
Constructs an empty FileName object.
Definition: FileName.cpp:47
Namespace for ISIS/Bullet specific routines.
Definition: Apollo.h:31
bool operator==(const FileName &rhs)
Compares equality of two FileName objects.
Definition: FileName.cpp:556
QString extension() const
Returns the last extension of the file name.
Definition: FileName.cpp:194
bool isNumericallyVersioned() const
Checks if the file name is versioned numerically.
Definition: FileName.cpp:309
QString attributes() const
Returns a QString of the attributes in a filename, attributes are expected to be of type CubeAttribut...
Definition: FileName.cpp:137
Definition: CubeIoHandler.h:39
bool fileExists() const
Returns true if the file exists; false otherwise.
Definition: FileName.cpp:465
static FileName createTempFile(FileName templateFileName="$TEMPORARY/temp")
Creates a temporary file and returns a FileName object created using the temporary file...
Definition: FileName.cpp:494
bool isVersioned() const
Checks to see if a file name is versioned by date or numerically.
Definition: FileName.cpp:297
FileName removeExtension() const
Removes all extensions in the file name.
Definition: FileName.cpp:262