Castor3D 0.16.0
Multiplatform 3D engine
Public Member Functions | Protected Types | List of all members
castor::Loader< T, FT > Class Template Reference

Main resource loader class. More...

#include <Loader.hpp>

Inheritance diagram for castor::Loader< T, FT >:
Inheritance graph
[legend]
Collaboration diagram for castor::Loader< T, FT >:
Collaboration graph
[legend]

Public Member Functions

 Loader ()=default
 Constructor.
 
virtual ~Loader () noexcept=default
 Destructor.
 
virtual bool operator() (T &object, Type &file)
 Reads a resource from a file.
 

Protected Types

using Type = typename FileTyper< FT >::Type
 

Additional Inherited Members

- Protected Member Functions inherited from castor::NonMovable
 NonMovable ()=default
 Constructor.
 
 ~NonMovable () noexcept=default
 Destructor.
 

Detailed Description

template<class T, FileType FT>
class castor::Loader< T, FT >

Main resource loader class.

Remarks
Holds the two functions needed for a resource loader : Load and Save.

Member Typedef Documentation

◆ Type

template<class T , FileType FT>
using castor::Loader< T, FT >::Type = typename FileTyper< FT >::Type
protected

Constructor & Destructor Documentation

◆ Loader()

template<class T , FileType FT>
castor::Loader< T, FT >::Loader ( )
default

Constructor.

◆ ~Loader()

template<class T , FileType FT>
virtual castor::Loader< T, FT >::~Loader ( )
virtualdefaultnoexcept

Destructor.

Member Function Documentation

◆ operator()()

template<class T , FileType FT>
virtual bool castor::Loader< T, FT >::operator() ( T & object,
Type & file )
inlinevirtual

Reads a resource from a file.

Parameters
[in,out]objectThe object to read.
[in,out]fileThe file where to read the object.

References CU_LoaderError.


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