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
extern
"C"
{
17
#include "
global.h
"
18
}
19
23
template
<
class
T>
24
class
AssetWriter
{
25
public
:
27
virtual
~AssetWriter
() { }
33
virtual
void
write
(
const
T *asset,
StringBuffer
*
buf
) = 0;
34
};
35
36
#endif
/* ASSETWRITER_H */
global.h
StringBuffer
Definition:
stringbuffer.c:25
AssetWriter::write
virtual void write(const T *asset, StringBuffer *buf)=0
buf
StringBuffer * buf
Definition:
readable.c:1610
AssetWriter::~AssetWriter
virtual ~AssetWriter()
Definition:
AssetWriter.h:27
AssetWriter
Definition:
AssetWriter.h:24
crossfire-crossfire-server
include
AssetWriter.h
Generated by
1.8.17