#include "Project.hpp"
Inheritance diagram for ansys::Project::Project:

Classes
Public Member Functions
Static Public Member Functions
Protected Member Functions
Static Protected Member Functions
Static Protected Attributes
Detailed Description
Base class for Project API, also see SimProject. To use the concepts of Simulation, Run, Output, and Result, a SimProject should be used to create/load the files. The Project object is the low-level service, offering only the File, Folder, and Link capabilities. The project concept is detailed in Project API.Constructor & Destructor Documentation
Project()
~Project()
virtual
Destructor - Will close the project and release the lock (if any).
Member Function Documentation
archiveProject() [1/2]
archiveProject() [2/2]
checkProject()
virtual
Check if a Project is valid.
Parameters
Reimplemented in ansys::Project::SimProject.
closeProject()
copyItemTo()
copyMetadata()
virtual
Copy all metadata values from source to target iterator.
Reimplemented in ansys::Project::SimProject.
copyProjectContent()
protected virtual
Internal function - Copy a folder iterator content files from a source directory to target.
Parameters
copyRuntimeMetadata()
virtual
Copy all runtime metadata values from source to target iterator.
eraseProjectLock()
executeCallback()
exportProject()
forkProject()
get()
getDir()
getInheritedMetadata()
virtual
Return the metadata for the current iterator and include relevant data from parent iterators.
In Project this only returns the metadata for the current iterator, unless the parent item is a Transparent item, the data is then also included. Used in some UI elements.
Reimplemented in ansys::Project::SimProject.
getIteratorForURL()
getProjectFolder()
getProjectId()
getProjectLocation()
getProjectLockInfo()
Returns
Error if the lock info cannot be retrieved.
getRelativePathToFile()
getReleaseId()
static protected
getStoragePolicy() [1/2]
getStoragePolicy() [2/2]
getSubProjects()
isLoaded()
isLocalToProject()
isOwnedByProject()
isProject()
virtual
Check if a filename is a project file (fast read, not entirely checked)
isSubProject()
join()
loadAllSubProjects()
loadSubProject()
newProject()
virtual
Create a project at the specified URL.
The URL is a folder with a *.flprj filename, the location must be writeable. A Storage plug-in must be loaded to accommodate the URL type. ( StorageFilesystem is always available for local file storage).
The Project is created from the currently configured ProjectStoragePolicy and a new folder is created alongside the *.flprj file, if applicable.
openProject()
virtual
Open a project at the specified URL.
From the storage policies, opening the project might fail if the project is locked, or read-only not permitted if locked.
Parameters
openProjectFromString()
virtual
Open a project by reading its data from a string.
Parameters
projectObjectFactory()
protected virtual
Create a new object of the current effective project type.
Overridden at the SimProject level
Reimplemented in ansys::Project::SimProject.
registerCallback()
root()
saveAsProject()
saveProject()
saveProjectToString()
setDir()
setupNewProject()
protected virtual
Reimplemented in ansys::Project::SimProject.
unarchiveProject()
static
Extract the project to an from an archive,.
It will extract/overwrite the project files in the specified folder
updateFromPolicy()
inline protected virtual
Reimplemented in ansys::Project::SimProject.
upgradeProject()
virtual
Upgrade project to current version.
Upgrading a project might make it incompatible with earlier versions of the software. Some metadata definitions might not be useable with the current software version until the project is updated.
See also ProjectStorageManager::setAutoUpgradesEnabled(bool). If automatic upgrades are enabled in the project policy, the project is upgraded when it is read.
Reimplemented in ansys::Project::SimProject.
Member Data Documentation
sFormatVersion
static protected