Atoms Crowd  7.0.0
Atoms::SkeletonLoaderFactory Class Reference

AnimLoader factory. More...

#include <SkeletonLoaderFactory.h>

Public Types

typedef AtomsPtr< BaseSkeletonLoader >(* creatorFn) ()
 

Public Member Functions

AtomsPtr< BaseSkeletonLoadercreateSkeletonLoader (const std::string &typeName)
 Creates an anim loader. More...
 
void registerSkeletonLoader (const std::string &name, creatorFn funct)
 Registers a new anim loader type in the factory. More...
 
void deregisterSkeletonLoader (const std::string &name)
 Deregisters an anim loader type from the factory. More...
 
std::vector< std::string > getRegisteredSkeletonLoaders ()
 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 SkeletonLoaderFactoryinstance ()
 Singleton access.
 

Detailed Description

AnimLoader factory.

AnimLoader factory used to create anim loaders.

Member Function Documentation

◆ createSkeletonLoader()

AtomsPtr<BaseSkeletonLoader> Atoms::SkeletonLoaderFactory::createSkeletonLoader ( const std::string &  typeName)

Creates an anim loader.

Parameters
typeNameanim loader type
Returns
Pointer to the anim loader

◆ deregisterSkeletonLoader()

void Atoms::SkeletonLoaderFactory::deregisterSkeletonLoader ( const std::string &  name)

Deregisters an anim loader type from the factory.

Parameters
nameBaseAnimLoader type name

◆ getRegisteredSkeletonLoaders()

std::vector<std::string> Atoms::SkeletonLoaderFactory::getRegisteredSkeletonLoaders ( )

Gets all registered anim loader.

Returns
List of all anim loader type registered

◆ isRegistered()

bool Atoms::SkeletonLoaderFactory::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

◆ registerSkeletonLoader()

void Atoms::SkeletonLoaderFactory::registerSkeletonLoader ( 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: