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

Main resource writer class. More...

#include <Writer.hpp>

Inheritance diagram for castor::Writer< DataT, StreamT >:
Inheritance graph
[legend]
Collaboration diagram for castor::Writer< DataT, StreamT >:
Collaboration graph
[legend]

Public Member Functions

virtual ~Writer () noexcept=default
 
virtual bool operator() (DataT const &object, Type &file)
 Writes a resource to a file.
 

Protected Types

using Type = StreamT
 

Additional Inherited Members

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

Detailed Description

template<class DataT, typename StreamT>
class castor::Writer< DataT, StreamT >

Main resource writer class.

Member Typedef Documentation

◆ Type

template<class DataT , typename StreamT >
using castor::Writer< DataT, StreamT >::Type = StreamT
protected

Constructor & Destructor Documentation

◆ ~Writer()

template<class DataT , typename StreamT >
virtual castor::Writer< DataT, StreamT >::~Writer ( )
virtualdefaultnoexcept

Member Function Documentation

◆ operator()()

template<class DataT , typename StreamT >
virtual bool castor::Writer< DataT, StreamT >::operator() ( DataT const & object,
Type & file )
inlinevirtual

Writes a resource to a file.

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

References CU_LoaderError.


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