Crossfire Server, Trunk
AssetWriter< T > Class Template Referenceabstract

#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
 
virtual ~AssetWriter ()
 

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(), and write_load().

+ Here is the caller graph for this function:

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