CustusX  22.04-rc2
An IGT application
cx::EmbeddedFilepath Class Reference

#include <cxFilePathPropertyBase.h>

Public Member Functions

void appendRootPath (QString path)
 
void setFilepath (QString filename)
 relative to one of the root paths or absolute More...
 
QString getRelativeFilepath () const
 return filepath relative to root. More...
 
QString getAbsoluteFilepath () const
 return absolute filepath, select the existing root More...
 
bool exists () const
 
QString getRootPath () const
 return the root of the existing root, first if no existing. More...
 
QStringList getRootPaths () const
 return the root of the existing root, first if no existing. More...
 

Detailed Description

Represent a file that is located in a location relative to a root folder or one of several root folders.

Examples are

  • relative to the executable,
  • relative to one of several configuration roots: the factory root and the custom root

Definition at line 31 of file cxFilePathPropertyBase.h.

Member Function Documentation

void cx::EmbeddedFilepath::appendRootPath ( QString  path)

Definition at line 17 of file cxFilePathPropertyBase.cpp.

bool cx::EmbeddedFilepath::exists ( ) const

Definition at line 78 of file cxFilePathPropertyBase.cpp.

QString cx::EmbeddedFilepath::getAbsoluteFilepath ( ) const

return absolute filepath, select the existing root

Definition at line 69 of file cxFilePathPropertyBase.cpp.

QString cx::EmbeddedFilepath::getRelativeFilepath ( ) const

return filepath relative to root.

Definition at line 60 of file cxFilePathPropertyBase.cpp.

QString cx::EmbeddedFilepath::getRootPath ( ) const

return the root of the existing root, first if no existing.

Definition at line 87 of file cxFilePathPropertyBase.cpp.

QStringList cx::EmbeddedFilepath::getRootPaths ( ) const

return the root of the existing root, first if no existing.

Definition at line 96 of file cxFilePathPropertyBase.cpp.

void cx::EmbeddedFilepath::setFilepath ( QString  filename)

relative to one of the root paths or absolute

Definition at line 22 of file cxFilePathPropertyBase.cpp.


The documentation for this class was generated from the following files: