CResource

class Lib3MF::CResource : public CBase
Lib3MF_uint32 GetResourceID()

Retrieves the unique id of this resource within a package. This function will be removed in a later release in favor of GetUniqueResourceID

Returns

Retrieves the unique id of this resource within a package.

Lib3MF_uint32 GetUniqueResourceID()

Retrieves the unique id of this resource within a package.

Returns

Retrieves the unique id of this resource within a package.

PPackagePart PackagePart()

Returns the PackagePart within which this resource resides

Returns

the PackagePart within which this resource resides.

void SetPackagePart(CPackagePart *pPackagePart)

Sets the new PackagePart within which this resource resides

Parameters

pPackagePart – the new PackagePart within which this resource resides.

Lib3MF_uint32 GetModelResourceID()

Retrieves the id of this resource within a model.

Returns

Retrieves the id of this resource within a model.

typedef std::shared_ptr<CResource> Lib3MF::PResource

Shared pointer to CResource to easily allow reference counting.