Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
CreateAsset_test Class Reference

Description

Test:
creating new Assets and registering them with the AssetManager.
See also
proc_interface::AssetManager::reg

Definition at line 58 of file create-asset-test.cpp.

Private Types

using PM = lib::P< Media >
 

Private Member Functions

virtual void run (Arg arg)
 
void createMedia ()
 
void factoryVariants ()
 
bool checkProperties (PM object, Asset::Ident identity, string filename)
 
void createMetaAssets ()
 

Member Typedef Documentation

◆ PM

using PM = lib::P<Media>
private

Definition at line 75 of file create-asset-test.cpp.

Member Function Documentation

◆ run()

virtual void run ( Arg  arg)
inlineprivatevirtual

Definition at line 60 of file create-asset-test.cpp.

References CreateAsset_test::createMedia(), CreateAsset_test::createMetaAssets(), steam::asset::dumpAssetManager(), and CreateAsset_test::factoryVariants().

+ Here is the call graph for this function:

◆ createMedia()

void createMedia ( )
inlineprivate
Test:
Creating and automatically registering Asset instances. Re-Retrieving the newly created objects from AssetManager. Checking AssetManager access functions, esp. getting different kinds of Assets by ID, querying with the wrong Category and querying unknown IDs.

Definition at line 84 of file create-asset-test.cpp.

References steam::asset::AUDIO, Media::create, AssetManager::getAsset(), AssetManager::instance, AssetManager::known(), VERIFY_ERROR, and steam::asset::VIDEO.

Referenced by CreateAsset_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ factoryVariants()

void factoryVariants ( )
inlineprivate
Test:
different variants of calling the MediaFactory, with focus on the behaviour of the basic Asset creation machinery. Covers filling out Asset's datafields, amending missing pieces of information.

Definition at line 166 of file create-asset-test.cpp.

References steam::asset::AUDIO, CreateAsset_test::checkProperties(), Media::create, and Asset::Ident::name.

Referenced by CreateAsset_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ checkProperties()

bool checkProperties ( PM  object,
Asset::Ident  identity,
string  filename 
)
inlineprivate

Definition at line 199 of file create-asset-test.cpp.

Referenced by CreateAsset_test::factoryVariants().

+ Here is the caller graph for this function:

◆ createMetaAssets()

void createMetaAssets ( )
inlineprivate

Definition at line 207 of file create-asset-test.cpp.

References Meta::create, ErrorLog::global(), AssetManager::instance, and steam::asset::meta::theErrorLog_ID.

Referenced by CreateAsset_test::run().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:
+ Inheritance diagram for CreateAsset_test:
+ Collaboration diagram for CreateAsset_test:

The documentation for this class was generated from the following file: