struct ProjectLibrarySynchronizedPackageEntry

Represents a package containing all resources from a single source resource.

Public

Constructors

ProjectLibrarySynchronizedPackageEntry

ProjectLibrarySynchronizedPackageEntry() = default

ProjectLibrarySynchronizedPackageEntry

ProjectLibrarySynchronizedPackageEntry(const Path &relativePath, const String &name, const WeakSPtr<ProjectLibraryContainerEntry> &parent)

Methods

IsPartOfSynchronizedPackage

bool IsPartOfSynchronizedPackage() const override

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

SPtr<ProjectLibrarySynchronizedPackageEntry> GetParentSynchronizedPackage() const override

Gets the parent synchronized package, if this entry is part of one.

Or null otherwise.

staticCreate

static SPtr<ProjectLibrarySynchronizedPackageEntry> Create(const Path &relativePath, const SPtr<ProjectLibraryContainerEntry> &parent)

Creates a new synchronized package entry.

relativePath
Path to the entry, relative to the project library imported resources folder.
parent
Container in which to place the created entry in.

Returns: Newly created entry.

staticGetRttiStatic

static RTTIType *GetRttiStatic()

GetRtti

RTTIType *GetRtti() const override

Returns an interface you can use to access class' Run Time Type Information.

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.

Fields

MetaData

Meta file containing information about the resource.

Children

Child entries.

RelativePath

Path RelativePath

Path to the entry, relative to project library imported resources folder., e.g. '/path/to/resource'.

Name

String Name

Name of the entry.

Case sensitive.

NameHash

size_t NameHash

Hash of , used for faster comparisons.

Parent

Container this entry is located in.