Crossfire Server, Trunk
AssetWriter.h
Go to the documentation of this file.
1 /*
2  * Crossfire -- cooperative multi-player graphical RPG and adventure game
3  *
4  * Copyright (c) 2020-2021 the Crossfire Development Team
5  *
6  * Crossfire is free software and comes with ABSOLUTELY NO WARRANTY. You are
7  * welcome to redistribute it under certain conditions. For details, please
8  * see COPYING and LICENSE.
9  *
10  * The authors can be reached via e-mail at <crossfire@metalforge.org>.
11  */
12 
13 #ifndef ASSETWRITER_H
14 #define ASSETWRITER_H
15 
16 #include "global.h"
17 
21 template<class T>
22 class AssetWriter {
23  public:
25  virtual ~AssetWriter() { }
31  virtual void write(const T *asset, StringBuffer *buf) = 0;
32 };
33 
34 #endif /* ASSETWRITER_H */
global.h
buf
StringBuffer * buf
Definition: readable.cpp:1565
StringBuffer
Definition: stringbuffer.cpp:25
AssetWriter::write
virtual void write(const T *asset, StringBuffer *buf)=0
AssetWriter::~AssetWriter
virtual ~AssetWriter()
Definition: AssetWriter.h:25
AssetWriter
Definition: AssetWriter.h:22