Crossfire Server, Trunk  1.75.0
AssetWriter< T > Class Template Referenceabstract

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

#include <AssetWriter.h>

+ Inheritance diagram for AssetWriter< T >:
+ Collaboration diagram for AssetWriter< T >:

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 TreasureWriter, FormulaeWriter, QuestWriter, MessageWriter, FacesetWriter, FaceWriter, ArtifactWriter, ArchetypeWriter, and AnimationWriter.

Referenced by do_pack().

+ Here is the caller graph for this function:

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