|
Isis 3.0 Object Programmers' Reference |
Home |
File name manipulation and expansion. More...
#include <FileName.h>

Classes | |
| class | Data |
| This is the reference-counted data for FileName. More... | |
Public Member Functions | |
| FileName () | |
| Constructs an empty FileName object. | |
| FileName (const char *fileName) | |
| FileName (const QString &fileName) | |
| FileName (const FileName &other) | |
| ~FileName () | |
| Destroys the FileName object. | |
| QString | originalPath () const |
| QString | path () const |
| Returns the path. | |
| QString | attributes () const |
| QString | baseName () const |
| QString | name () const |
| QString | extension () const |
| QString | expanded () const |
| QString | original () const |
| FileName | addExtension (const QString &extension) const |
| FileName | removeExtension () const |
| FileName | setExtension (const QString &extension) const |
| bool | isVersioned () const |
| bool | isNumericallyVersioned () const |
| bool | isDateVersioned () const |
| FileName | highestVersion () const |
| FileName | newVersion () const |
| FileName | version (long versionNumber) const |
| FileName | version (QDate versionDate) const |
| bool | fileExists () const |
| QDir | dir () const |
| QString | toString () const |
| FileName & | operator= (const FileName &rhs) |
| Clears the current contents of the FileName object and reinitializes it with the argument. | |
| bool | operator== (const FileName &rhs) |
| bool | operator!= (const FileName &rhs) |
Static Public Member Functions | |
| static FileName | createTempFile (FileName templateFileName="$TEMPORARY/temp") |
Private Member Functions | |
| QDate | highestVersionDate () const |
| long | highestVersionNum () const |
| void | validateVersioningState () const |
| This verifies the class invariant when using versioning - that the FileName is in an acceptable state to find file version numbers. | |
| QString | fileNameQDatePattern () const |
| QPair< QString, QString > | splitNameAroundVersionNum () const |
Private Attributes | |
| QSharedDataPointer< Data > | m_d |
File name manipulation and expansion.
This class is used for manipulating filenames. It allows access to the path, extension, base name and Isis attributes. A standard Isis filename takes the form of
For example:
/work1/mars.cub:5
For internal use only.
Definition at line 109 of file FileName.h.
| Isis::FileName::FileName | ( | ) |
Constructs an empty FileName object.
Definition at line 44 of file FileName.cpp.
References m_d.
Referenced by validateVersioningState().
| Isis::FileName::~FileName | ( | ) |
Destroys the FileName object.
Definition at line 66 of file FileName.cpp.
Clears the current contents of the FileName object and reinitializes it with the argument.
| file | File name to replace the current contents of the object. |
Definition at line 340 of file FileName.cpp.
References m_d.
| QString Isis::FileName::path | ( | ) | const |
Returns the path.
for a full file specification of: "/home/me/img/picture.jpg" path() gives: "/home/me/img"
Definition at line 88 of file FileName.cpp.
Referenced by Isis::ProcessPolygons::AppendOutputCube(), Isis::ImportPdsTable::load(), Isis::Cube::open(), Isis::ProcessImportPds::ProcessDataFilePointer(), Isis::ProcessPolygons::SetOutputCube(), Isis::ProcessGroundPolygons::SetOutputCube(), Isis::ProcessImportPds::SetPdsFile(), Isis::MeasureTool::updateDist(), and Isis::AdvancedTrackTool::updateRow().
| void Isis::FileName::validateVersioningState | ( | ) | const [private] |
This verifies the class invariant when using versioning - that the FileName is in an acceptable state to find file version numbers.
Definition at line 471 of file FileName.cpp.
References _FILEINFO_, FileName(), and Isis::IException::Unknown.
QSharedDataPointer<Data> Isis::FileName::m_d [private] |
Definition at line 191 of file FileName.h.
Referenced by FileName(), and operator=().