ManiVault 1.0.0
A Flexible and Extensible Visual Analytics Framework for High-Dimensional Data
Loading...
Searching...
No Matches
hdps::WorkspaceLocation Class Referencefinal

#include <AbstractWorkspaceManager.h>

Public Types

enum  Type { BuiltIn = 0x0001 , Path = 0x0002 , Recent = 0x0004 , All = BuiltIn | Path | Recent }
 

Public Member Functions

 WorkspaceLocation (const QString &title, const QString &filePath, const Type &type)
 
QString getTitle () const
 
QString getFilePath () const
 
Type getType () const
 
QString getTypeName () const
 

Static Public Member Functions

static QString getTypeName (const Type &type)
 

Static Public Attributes

static QMap< Type, QString > typeNames
 

Detailed Description

Workspace location which consists of a workspace title, file path and location type

Member Enumeration Documentation

◆ Type

Enum determining the type of workspace location

Enumerator
BuiltIn 
Path 

Built-in workspaces (located in /workspaces in the application dir)

Recent 

Workspaces on the global workspaces path

All 

Recent workspaces

Constructor & Destructor Documentation

◆ WorkspaceLocation()

hdps::WorkspaceLocation::WorkspaceLocation ( const QString &  title,
const QString &  filePath,
const Type type 
)
inlineexplicit

Construct workspace location with filePath and type

Parameters
titleTitle of the workspace
filePathLocation of the workspace on disk
typeLocation type of the workspace

Member Function Documentation

◆ getFilePath()

QString hdps::WorkspaceLocation::getFilePath ( ) const
inline

Get file path of the workspace

Returns
File path of the workspace

◆ getTitle()

QString hdps::WorkspaceLocation::getTitle ( ) const
inline

Get file path of the workspace

Returns
File path of the workspace

◆ getType()

Type hdps::WorkspaceLocation::getType ( ) const
inline

Get type of workspace location

Returns
Type

◆ getTypeName() [1/2]

QString hdps::WorkspaceLocation::getTypeName ( ) const
inline

Get type name of workspace location

Returns
Type name

◆ getTypeName() [2/2]

static QString hdps::WorkspaceLocation::getTypeName ( const Type type)
inlinestatic

Get name of type

Returns
Type name

Member Data Documentation

◆ typeNames

QMap<Type, QString> hdps::WorkspaceLocation::typeNames
inlinestatic
Initial value:
{
{ Type::BuiltIn, "Built-in" },
{ Type::Path, "Path" },
{ Type::Recent, "Recent" },
{ Type::All, "All" }
}
@ All
Definition AbstractWorkspaceManager.h:31
@ Recent
Definition AbstractWorkspaceManager.h:29
@ Path
Definition AbstractWorkspaceManager.h:28
@ BuiltIn
Definition AbstractWorkspaceManager.h:27

Map enum type to name


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