Atoms Crowd  7.0.0
Atoms::AnimLoaderFactory Class Reference

AnimLoader factory. More...

#include <AnimLoaderFactory.h>

Public Types

typedef AtomsPtr< BaseAnimLoader >(* creatorFn) ()
 

Public Member Functions

AtomsPtr< BaseAnimLoadercreateAnimLoader (const std::string &typeName)
 Creates an anim loader. More...
 
void registerAnimLoader (const std::string &name, creatorFn funct)
 Registers a new anim loader type in the factory. More...
 
void deregisterAnimLoader (const std::string &name)
 Deregisters an anim loader type from the factory. More...
 
std::vector< std::string > getRegisteredAnimLoaders ()
 Gets all registered anim loader. More...
 
bool isRegistered (const std::string &name)
 Checks if an anim loader type with the given name is registered. More...
 

Static Public Member Functions

static AnimLoaderFactoryinstance ()
 Singleton access.
 

Detailed Description

AnimLoader factory.

AnimLoader factory used to create anim loaders.

Member Function Documentation

◆ createAnimLoader()

AtomsPtr<BaseAnimLoader> Atoms::AnimLoaderFactory::createAnimLoader ( const std::string &  typeName)

Creates an anim loader.

Parameters
typeNameanim loader type
Returns
Pointer to the anim loader

◆ deregisterAnimLoader()

void Atoms::AnimLoaderFactory::deregisterAnimLoader ( const std::string &  name)

Deregisters an anim loader type from the factory.

Parameters
nameBaseAnimLoader type name

◆ getRegisteredAnimLoaders()

std::vector<std::string> Atoms::AnimLoaderFactory::getRegisteredAnimLoaders ( )

Gets all registered anim loader.

Returns
List of all anim loader type registered

◆ isRegistered()

bool Atoms::AnimLoaderFactory::isRegistered ( const std::string &  name)

Checks if an anim loader type with the given name is registered.

Parameters
nameBaseAnimLoader type name
Returns
Return true if the type is already registered

◆ registerAnimLoader()

void Atoms::AnimLoaderFactory::registerAnimLoader ( const std::string &  name,
creatorFn  funct 
)

Registers a new anim loader type in the factory.

Parameters
nameBaseAnimLoader type name \patam funct creator function

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