struct
ProjectLibraryResourceEntry
Inherits:
ProjectLibraryEntry
A library entry representing a single resource.
Public
Constructors
ProjectLibraryResourceEntry
ProjectLibraryResourceEntry() = default
ProjectLibraryResourceEntry
ProjectLibraryResourceEntry(const Path &relativePath, const String &name, const WeakSPtr<ProjectLibraryContainerEntry> &parent)
Methods
staticCreate
static SPtr<ProjectLibraryResourceEntry> Create(const Path &relativePath, const SPtr<ProjectLibraryContainerEntry> &parent)
Creates a new resource entry.
- relativePath
- Path to the entry, relative to the project library imported resources folder.
- parent
- Container in which to place the created resource entry in.
Returns: Newly created entry.
GetProjectLibraryMetaData
SPtr<ProjectLibraryResourceMetaData> GetProjectLibraryMetaData() const
Returns meta-data specific to the project library.
GetUserLibraryMetaData
SPtr<IReflectable> GetUserLibraryMetaData() const
Returns optional meta-data that was assigned by the user.
staticGetRttiStatic
static RTTIType *GetRttiStatic()
IsReadOnly
bool IsReadOnly() const
Returns true if entry cannot be modified, moved or deleted.
Entry will be read-only if it is read only, or its parent is read only.
GetParent
SPtr<ProjectLibraryContainerEntry> GetParent() const
Returns the parent of this library entry, unless this is root entry, in which case it is null.
IsPartOfSynchronizedPackage
virtual bool IsPartOfSynchronizedPackage() const
Returns true if this entry is synchronized with a source resource.
Such entries cannot be modified and can only be re-imported from their associated source resource.
GetParentSynchronizedPackage
Gets the parent synchronized package, if this entry is part of one.
Or null otherwise.