Fraxinus  16.5.0-fx-rc1
An IGT application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 56 of file cxFilePathProperty.h.

Member Function Documentation

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

Definition at line 46 of file cxFilePathProperty.cpp.

bool cx::EmbeddedFilepath::exists ( ) const

Definition at line 107 of file cxFilePathProperty.cpp.

QString cx::EmbeddedFilepath::getAbsoluteFilepath ( ) const

return absolute filepath, select the existing root

Definition at line 98 of file cxFilePathProperty.cpp.

QString cx::EmbeddedFilepath::getRelativeFilepath ( ) const

return filepath relative to root.

Definition at line 89 of file cxFilePathProperty.cpp.

QString cx::EmbeddedFilepath::getRootPath ( ) const

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

Definition at line 116 of file cxFilePathProperty.cpp.

QStringList cx::EmbeddedFilepath::getRootPaths ( ) const

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

Definition at line 125 of file cxFilePathProperty.cpp.

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

relative to one of the root paths or absolute

Definition at line 51 of file cxFilePathProperty.cpp.


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