Skip to main content
Project storage settings, control folder management, folder names, etc. #include "ProjectStoragePolicy.hpp"

Public Member Functions

Detailed Description

Project storage settings, control folder management, folder names, etc. The storage policy is to be set before creating a new project, or the read project settings can be retrieved after opening an existing project. The policy is saved in the project file itself. Default policies:
  • Managed project (a project folder is created and managed aside the project file)
  • Project folder suffix: .cffdb
  • Project lock: disabled
  • Automatic upgrades: enabled

Constructor & Destructor Documentation

ProjectStoragePolicy()

Constructor - default storage policies.

Member Function Documentation

getApplicationName()

return the application owner of this project (optional - default is empty)

getAttr()

getAutoUpgradeEnabled()

getLockInfoFilename()

if project lock is enabled, returns the lock filename for the specified project location

getProjectSubfolderCustomName()

indicates if the project folder has a specific name - default is none (will use project index filename + suffix)

getProjectSubfolderSuffix()

indicates the the filename suffix added to a project folder (default is .cffdb)

getSimFolderName()

returns the name of the simulation folder in the current policy (default is none)

getSubProjectMode()

indicates the type of the subproject (the type of the head node of the subproject) - default state is none (empty string)

isLockInfoEnabled()

indicates if project lock feature is enabled

isLockInfoOnReadOnlyEnabled()

indicates if project lock will prevent reading even in read-only mode

isProjectSubfolderEnabled()

indicates if the project is a managed project (with a sidecard folder to store files)

isReadOnly()

indicates if the project is read-only, cannot be saved back and many operations will fail

loadFromMeta()

saveToMeta()

setApplicationName()

setAttr()

setAutoUpgradeEnabled()

setProjectSubfolderCustomName()

setProjectSubfolderEnabled()

setProjectSubfolderSuffix()

setReadOnly()

setSimFolderName()

setSubProjectMode()

setUseLockInfo()