Crossfire Server  1.75.0
AssetWriter< T > Class Template Referenceabstract

Abstract writer of an asset to a StringBuffer. More...

#include <AssetWriter.h>

Public Member Functions

virtual void write (const T *asset, StringBuffer *buf)=0
 Write the specified asset to the StringBuffer. More...
 
virtual ~AssetWriter ()
 Destructor in case inherited classes need it. More...
 

Detailed Description

template<class T>
class AssetWriter< T >

Abstract writer of an asset to a StringBuffer.

Definition at line 22 of file AssetWriter.h.

Constructor & Destructor Documentation

◆ ~AssetWriter()

template<class T>
virtual AssetWriter< T >::~AssetWriter ( )
inlinevirtual

Destructor in case inherited classes need it.

Definition at line 25 of file AssetWriter.h.

Member Function Documentation

◆ write()

template<class T>
virtual void AssetWriter< T >::write ( const T *  asset,
StringBuffer buf 
)
pure virtual

Write the specified asset to the StringBuffer.

Parameters
assetasset to write.
bufwhere to write.

Implemented in FacesetWriter, AnimationWriter, ArchetypeWriter, ArtifactWriter, FaceWriter, FormulaeWriter, MessageWriter, QuestWriter, and TreasureWriter.

Referenced by do_pack(), and AssetWriter< Animations >::~AssetWriter().


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