AddAssetDepencendyStruct Class Reference

#include <base_preset_asset.h>

Inheritance diagram for AddAssetDepencendyStruct:

Detailed Description

Helper class to pass additional data into asset creation functions.

Public Member Functions

 AddAssetDepencendyStruct ()
 
 AddAssetDepencendyStruct (const Id &parentCategory, const AssetRepositoryRef &saveRepository, const AssetRepositoryRef &lookupRepository)
 
 AddAssetDepencendyStruct (AddAssetDepencendyStruct &&src)=default
 
 MAXON_OPERATOR_MOVE_ASSIGNMENT (AddAssetDepencendyStruct)
 
maxon::Result< void > CopyFrom (const AddAssetDepencendyStruct &src)
 
Result< void > AddDependency (AssetDependencyStruct &&assetDependency)
 
Result< void > AddDependency (const AssetDescription &depAsset)
 
Result< AssetDescription > AddDependency (const Id &depAssetId)
 
const HashSet< AssetDependencyStruct > & GetDependencies () const
 
- Public Member Functions inherited from StoreAssetStruct
 StoreAssetStruct ()
 
 StoreAssetStruct (const Id &parentCategory, const AssetRepositoryRef &saveRepository, const AssetRepositoryRef &lookupRepository)
 

Private Attributes

HashSet< AssetDependencyStruct_dependencies
 

Additional Inherited Members

- Public Attributes inherited from StoreAssetStruct
Id _parentCategory
 
AssetRepositoryRef _saveRepository
 
AssetRepositoryRef _lookupRepository
 

Constructor & Destructor Documentation

◆ AddAssetDepencendyStruct() [1/3]

◆ AddAssetDepencendyStruct() [2/3]

AddAssetDepencendyStruct ( const Id parentCategory,
const AssetRepositoryRef &  saveRepository,
const AssetRepositoryRef &  lookupRepository 
)

◆ AddAssetDepencendyStruct() [3/3]

Member Function Documentation

◆ MAXON_OPERATOR_MOVE_ASSIGNMENT()

MAXON_OPERATOR_MOVE_ASSIGNMENT ( AddAssetDepencendyStruct  )

◆ CopyFrom()

maxon::Result<void> CopyFrom ( const AddAssetDepencendyStruct src)

◆ AddDependency() [1/3]

Result<void> AddDependency ( AssetDependencyStruct &&  assetDependency)

AddDependency adds a dependency using the AssetDependencyStruct.

Parameters
[in]assetDependencyDependencies to add.
Returns
OK on success.

◆ AddDependency() [2/3]

Result<void> AddDependency ( const AssetDescription &  depAsset)

AddDependency adds the given asset as dependency.

Parameters
[in]depAssetAsset to add.
Returns
OK on success.

◆ AddDependency() [3/3]

Result<AssetDescription> AddDependency ( const Id depAssetId)

AddDependency description.

Parameters
[in]depAssetId?
Returns
AssetDescription if asset could be found in the lookuprepository. nullptr if asset was not found. otherwise error.

◆ GetDependencies()

const HashSet<AssetDependencyStruct>& GetDependencies ( ) const

GetDependencies returns the collected dependencies.

Member Data Documentation

◆ _dependencies

HashSet<AssetDependencyStruct> _dependencies
private