VR-Engage  2.2
Loading...
Searching...
No Matches
makVre::DtFileEntry Class Reference

Detailed Description

DtFileEntry encapsulates information about a single file in the file selection lists, storing both the display name and the full path. This is used for scenarios and terrain files displayed in the start page.

#include <vreStartPage.h>

Public Member Functions

 DtFileEntry ()
 
 DtFileEntry (const QString &fileName, const QString &filePath)
 
QString getFileName () const
 
void setFileName (const QString &name)
 
QString getFilePath () const
 
void setFilePath (const QString &name)
 

Protected Attributes

QString myFileName
 
QString myFilePath
 

Constructor & Destructor Documentation

◆ DtFileEntry() [1/2]

makVre::DtFileEntry::DtFileEntry ( )

Default constructor.

Creates an empty file entry with blank name and path.

◆ DtFileEntry() [2/2]

makVre::DtFileEntry::DtFileEntry ( const QString & fileName,
const QString & filePath )

Constructor with name and path.

Parameters
fileNameDisplay name of the file
filePathFull path to the file

Creates a file entry with the specified name and path.

Member Function Documentation

◆ getFileName()

QString makVre::DtFileEntry::getFileName ( ) const

Gets the display name of the file.

Returns
File name as a QString

Returns the display name of this file entry.

◆ setFileName()

void makVre::DtFileEntry::setFileName ( const QString & name)

Sets the display name of the file.

Parameters
nameNew file name

Updates the display name of this file entry.

◆ getFilePath()

QString makVre::DtFileEntry::getFilePath ( ) const

Gets the full path to the file.

Returns
File path as a QString

Returns the full path to this file entry.

◆ setFilePath()

void makVre::DtFileEntry::setFilePath ( const QString & name)

Sets the full path to the file.

Parameters
nameNew file path

Updates the full path to this file entry.

Member Data Documentation

◆ myFileName

QString makVre::DtFileEntry::myFileName
protected

Display name of the file.

◆ myFilePath

QString makVre::DtFileEntry::myFilePath
protected

Full path to the file.


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