Fraxinus  18.10
An IGT application
cx::EmbeddedFilepath Class Reference

#include <cxFilePathProperty.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 35 of file cxFilePathProperty.h.

Member Function Documentation

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

Definition at line 25 of file cxFilePathProperty.cpp.

bool cx::EmbeddedFilepath::exists ( ) const

Definition at line 86 of file cxFilePathProperty.cpp.

QString cx::EmbeddedFilepath::getAbsoluteFilepath ( ) const

return absolute filepath, select the existing root

Definition at line 77 of file cxFilePathProperty.cpp.

QString cx::EmbeddedFilepath::getRelativeFilepath ( ) const

return filepath relative to root.

Definition at line 68 of file cxFilePathProperty.cpp.

QString cx::EmbeddedFilepath::getRootPath ( ) const

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

Definition at line 95 of file cxFilePathProperty.cpp.

QStringList cx::EmbeddedFilepath::getRootPaths ( ) const

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

Definition at line 104 of file cxFilePathProperty.cpp.

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

relative to one of the root paths or absolute

Definition at line 30 of file cxFilePathProperty.cpp.


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